[PATCH] D37377: [ARM] Add 2-operand assembly aliases for Thumb1 ADD/SUB
Oliver Stannard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 1 03:06:50 PDT 2017
olista01 created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.
This adds 2-operand assembly aliases for these instructions:
add r0, r1 => add r0, r0, r1
sub r0, r1 => sub r0, r0, r1
Previously this syntax was only accepted for Thumb2 targets, where the
wide versions of the instructions were used.
This patch allows the 2-operand syntax to be used for Thumb1 targets,
and selects the narrow encoding when it is used for Thumb2 targets.
Repository:
rL LLVM
https://reviews.llvm.org/D37377
Files:
lib/Target/ARM/ARMInstrThumb.td
test/MC/ARM/implicit-it-generation.s
test/MC/ARM/thumb-add-sub-width.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37377.113525.patch
Type: text/x-patch
Size: 4552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170901/4beee490/attachment.bin>
More information about the llvm-commits
mailing list