summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2018-02-08 01:12:46 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2018-02-08 01:12:46 +0000
commitc908e3f77ad425d984dea1f86a7924180da8e9fc (patch)
tree02cf16f465539f3cc43d9b721f9686a3a89514e4 /llvm/test/CodeGen
parent321b443ef6bde4edd73a4bb621e8d35cf2ed627d (diff)
downloadbcm5719-llvm-c908e3f77ad425d984dea1f86a7924180da8e9fc.tar.gz
bcm5719-llvm-c908e3f77ad425d984dea1f86a7924180da8e9fc.zip
AMDGPU: Don't crash when trying to fold implicit operands
llvm-svn: 324550
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/AMDGPU/fold-implicit-operand.mir14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/fold-implicit-operand.mir b/llvm/test/CodeGen/AMDGPU/fold-implicit-operand.mir
new file mode 100644
index 00000000000..4dec859f0ba
--- /dev/null
+++ b/llvm/test/CodeGen/AMDGPU/fold-implicit-operand.mir
@@ -0,0 +1,14 @@
+# RUN: llc -march=amdgcn -run-pass si-fold-operands -verify-machineinstrs -o - %s | FileCheck %s
+---
+# Make sure there is no crash when trying to fold an immediate into an
+# implicit use
+
+# CHECK: %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
+# CHECK-NEXT: S_ENDPGM implicit %0
+name: fold_imm_implicit_operand
+body: |
+ bb.0:
+ %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
+ S_ENDPGM implicit %0
+
+...
OpenPOWER on IntegriCloud