1# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck %s
2--- |
3  define float @entry_callee_wait(float %arg) #0 {
4    ret float %arg
5  }
6
7  attributes #0 = { nounwind }
8...
9---
10# CHECK-LABEL: name: entry_callee_wait{{$}}
11# CHECK: bb.0:
12# CHECK-NEXT: S_WAITCNT 0{{$}}
13# CHECK-NEXT: V_ADD_F32
14# CHECK-NEXT: S_SETPC_B64
15liveins:
16  - { reg: '$sgpr0_sgpr1' }
17  - { reg: '$vgpr0' }
18
19name: entry_callee_wait
20body:             |
21  bb.0:
22    $vgpr0 = V_ADD_F32_e32 $vgpr0, $vgpr0, implicit $mode, implicit $exec
23    S_SETPC_B64 killed $sgpr0_sgpr1
24
25...
26