[PATCH] D20155: [ARM] PR25722 Support and tests for transform of LDR rt, = to MOV

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 07:28:24 PDT 2016


peter.smith updated this revision to Diff 57036.
peter.smith added a comment.

I've updated the patch to not do any kind of translation when the destination is SP or PC. Now that I think about it I have seen bootcode where the stack pointer has been set using ldr sp,=value so this would have caused problems.

I've added changed the ARM check from hasV8MBaseline to has v6T2Ops as that matches TableGen and befits the ARM presence of MOVW in V6T2 onwards.


http://reviews.llvm.org/D20155

Files:
  lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  test/MC/ARM/ldr-pseudo-cond-darwin.s
  test/MC/ARM/ldr-pseudo-cond.s
  test/MC/ARM/ldr-pseudo-darwin.s
  test/MC/ARM/ldr-pseudo-unpredictable.s
  test/MC/ARM/ldr-pseudo.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20155.57036.patch
Type: text/x-patch
Size: 16493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160512/77e88bbe/attachment.bin>


More information about the llvm-commits mailing list