diff options
Diffstat (limited to 'llvm/test/CodeGen/ARM')
| -rw-r--r-- | llvm/test/CodeGen/ARM/load_store_opt_kill.mir | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/load_store_opt_kill.mir b/llvm/test/CodeGen/ARM/load_store_opt_kill.mir new file mode 100644 index 00000000000..4c210eaf8e9 --- /dev/null +++ b/llvm/test/CodeGen/ARM/load_store_opt_kill.mir @@ -0,0 +1,12 @@ +# RUN: llc -mtriple=armv7-none-eabi -verify-machineinstrs -run-pass arm-ldst-opt %s -o - | FileCheck %s +--- +# CHECK-LABEL: name: f +name: f +# Make sure the load into %r0 doesn't clobber the base register before the second load uses it. +# CHECK: %r3 = LDRi12 %r0, 12, 14, _ +# CHECK-NEXT: %r0 = LDRi12 %r0, 8, 14, _ +body: | + bb.0: + liveins: %r0, %r3 + %r0, %r3 = LDRD %r0, %noreg, 8, 14, %noreg +... |

