2018-04-28 01:59:15 +08:00
|
|
|
# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck %s
|
2017-04-12 06:29:31 +08:00
|
|
|
--- |
|
|
|
|
define float @entry_callee_wait(float %arg) #0 {
|
|
|
|
ret float %arg
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { nounwind }
|
|
|
|
...
|
|
|
|
---
|
|
|
|
# CHECK-LABEL: name: entry_callee_wait{{$}}
|
|
|
|
# CHECK: bb.0:
|
|
|
|
# CHECK-NEXT: S_WAITCNT 0{{$}}
|
|
|
|
# CHECK-NEXT: V_ADD_F32
|
|
|
|
# CHECK-NEXT: S_SETPC_B64
|
|
|
|
liveins:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$sgpr0_sgpr1' }
|
|
|
|
- { reg: '$vgpr0' }
|
2017-04-12 06:29:31 +08:00
|
|
|
|
|
|
|
name: entry_callee_wait
|
|
|
|
body: |
|
|
|
|
bb.0:
|
2020-05-28 01:25:37 +08:00
|
|
|
$vgpr0 = V_ADD_F32_e32 $vgpr0, $vgpr0, implicit $mode, implicit $exec
|
2018-02-01 06:04:26 +08:00
|
|
|
S_SETPC_B64 killed $sgpr0_sgpr1
|
2017-04-12 06:29:31 +08:00
|
|
|
|
|
|
|
...
|