26 lines · plain
1; RUN: llc -mtriple nvptx64-nvidia-cuda -stop-after machine-cp -o - < %s 2>&1 | FileCheck %s2 3; Check that convergent calls are emitted using convergent MIR instructions,4; while non-convergent calls are not.5 6target triple = "nvptx64-nvidia-cuda"7 8declare void @conv() convergent9declare void @not_conv()10 11define void @test(ptr %f) {12 ; CHECK: CALL_UNI_conv @conv13 call void @conv()14 15 ; CHECK: CALL_UNI @not_conv16 call void @not_conv()17 18 ; CHECK: CALL_conv %{{[0-9]+}}19 call void %f() convergent20 21 ; CHECK: CALL %{{[0-9]+}}22 call void %f()23 24 ret void25}26