[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)
commit9f039304b36a9cd7fe4137f46cc8b57eebbc6e70
treef96fba10323e876857f45aa02a855707ec704274
parent45178b9d60fc06cbd0e3f4aa3d1f2285fdf035ca
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210113 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/AArch64/ldst-opt.ll