You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
620 B
28 lines
620 B
4 months ago
|
; RUN: llc -mtriple nvptx64-nvidia-cuda -stop-after machine-cp -o - < %s 2>&1 | FileCheck %s
|
||
|
|
||
|
; Check that convergent calls are emitted using convergent MIR instructions,
|
||
|
; while non-convergent calls are not.
|
||
|
|
||
|
target triple = "nvptx64-nvidia-cuda"
|
||
|
|
||
|
declare void @conv() convergent
|
||
|
declare void @not_conv()
|
||
|
|
||
|
define void @test(void ()* %f) {
|
||
|
; CHECK: ConvergentCallUniPrintCall
|
||
|
; CHECK-NEXT: @conv
|
||
|
call void @conv()
|
||
|
|
||
|
; CHECK: CallUniPrintCall
|
||
|
; CHECK-NEXT: @not_conv
|
||
|
call void @not_conv()
|
||
|
|
||
|
; CHECK: ConvergentCallPrintCall
|
||
|
call void %f() convergent
|
||
|
|
||
|
; CHECK: CallPrintCall
|
||
|
call void %f()
|
||
|
|
||
|
ret void
|
||
|
}
|