1 ; RUN: llc -mtriple nvptx64-nvidia-cuda -stop-after machine-cp -o - < %s 2>&1 | FileCheck %s
3 ; Check that convergent calls are emitted using convergent MIR instructions,
4 ; while non-convergent calls are not.
6 target triple = "nvptx64-nvidia-cuda"
8 declare void @conv() convergent
9 declare void @not_conv()
11 define void @test(void ()* %f) {
12 ; CHECK: ConvergentCallUniPrintCall
16 ; CHECK: CallUniPrintCall
17 ; CHECK-NEXT: @not_conv
20 ; CHECK: ConvergentCallPrintCall
21 call void %f() convergent
23 ; CHECK: CallPrintCall