Files
clang-p2996/llvm/test/CodeGen/ARM/load_store_opt_kill.mir
Puyan Lotfi 43e94b15ea Followup on Proposal to move MIR physical register namespace to '$' sigil.
Discussed here:

http://lists.llvm.org/pipermail/llvm-dev/2018-January/120320.html

In preparation for adding support for named vregs we are changing the sigil for
physical registers in MIR to '$' from '%'. This will prevent name clashes of
named physical register with named vregs.

llvm-svn: 323922
2018-01-31 22:04:26 +00:00

13 lines
435 B
YAML

# 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, $noreg
# CHECK-NEXT: $r0 = LDRi12 $r0, 8, 14, $noreg
body: |
bb.0:
liveins: $r0, $r3
$r0, $r3 = LDRD $r0, $noreg, 8, 14, $noreg
...