diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-02-08 01:12:46 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2018-02-08 01:12:46 +0000 |
| commit | c908e3f77ad425d984dea1f86a7924180da8e9fc (patch) | |
| tree | 02cf16f465539f3cc43d9b721f9686a3a89514e4 /llvm/test/CodeGen | |
| parent | 321b443ef6bde4edd73a4bb621e8d35cf2ed627d (diff) | |
| download | bcm5719-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.mir | 14 |
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 + +... |

