[PATCH] D47310: [AArch64][SVE] Asm: Support for ADD (immediate) instructions.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 24 00:14:17 PDT 2018
sdesmalen created this revision.
sdesmalen added reviewers: rengolin, fhahn, samparker, SjoerdMeijer.
Herald added a reviewer: javed.absar.
Herald added subscribers: rkruppe, kristof.beyls, tschuett.
This patch adds addsub_imm8_opt_lsl_(i8|i16|i32|i64) operands
that are unsigned values in the range 0 to 255. For element widths of
16 bits or higher it may also be a signed multiple of 256 in the
range 0 to 65280.
Note: This also does some refactoring to reuse convenience function
getShiftedVal<shift>(), and now allows AArch64 scalar 'ADD #-4096' to be
accepted to be mapped to SUB #4096.
https://reviews.llvm.org/D47310
Files:
lib/Target/AArch64/AArch64SVEInstrInfo.td
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
lib/Target/AArch64/MCTargetDesc/AArch64AddressingModes.h
lib/Target/AArch64/SVEInstrFormats.td
test/MC/AArch64/SVE/add-diagnostics.s
test/MC/AArch64/SVE/add.s
test/MC/AArch64/SVE/sub-diagnostics.s
test/MC/AArch64/SVE/sub.s
test/MC/AArch64/alias-addsubimm.s
test/MC/AArch64/basic-a64-diagnostics.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47310.148344.patch
Type: text/x-patch
Size: 23283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/b8d4206c/attachment.bin>
More information about the llvm-commits
mailing list