[AArch64] Add regression tests for the load/store optimizer which cover post-index...
authorTilmann Scheller <t.scheller@samsung.com>
Tue, 3 Jun 2014 16:03:00 +0000 (16:03 +0000)
committerTilmann Scheller <t.scheller@samsung.com>
Tue, 3 Jun 2014 16:03:00 +0000 (16:03 +0000)
commit2a7efeb7b7d8d55dcbeb2e08b6bbd52f9aa7e213
tree2274573c56ed6789adb2f6f9037df4af6f898248
parentf3943efe171fc5363bbe22804fc5b8a7ffcbb4f9
[AArch64] Add regression tests for the load/store optimizer which cover post-index update folding with sub rather than add.

The tests check that the following transform happens:

  (ldr|str) X, [x20]
   ...
  sub x20, x20, #16
   ->
  (ldr|str) X, [x20], #-16

with X being either w0, x0, s0, d0 or q0.

llvm-svn: 210113
llvm/test/CodeGen/AArch64/ldst-opt.ll