summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AMDGPU/insert-waitcnts-callee.mir
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/insert-waitcnts-callee.mir')
-rw-r--r--llvm/test/CodeGen/AMDGPU/insert-waitcnts-callee.mir25
1 files changed, 25 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/insert-waitcnts-callee.mir b/llvm/test/CodeGen/AMDGPU/insert-waitcnts-callee.mir
new file mode 100644
index 00000000000..b9f6c2f79db
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/insert-waitcnts-callee.mir
@@ -0,0 +1,25 @@
+# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=fiji -verify-machineinstrs -run-pass si-insert-waitcnts -o - %s | FileCheck %s
+--- |
+ 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:
+ - { reg: '$sgpr0_sgpr1' }
+ - { reg: '$vgpr0' }
+
+name: entry_callee_wait
+body: |
+ bb.0:
+ $vgpr0 = V_ADD_F32_e32 $vgpr0, $vgpr0, implicit $exec
+ S_SETPC_B64 killed $sgpr0_sgpr1
+
+...
OpenPOWER on IntegriCloud