[PATCH] D29219: [AArch64][TableGen] Skip tied result operands for InstAlias
Renato Golin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 27 07:20:36 PST 2017
rengolin added inline comments.
================
Comment at: lib/Target/AArch64/AArch64InstrInfo.td:455
// First group of aliases covers an implicit "lsl #0".
-def : InstAlias<"movk $dst, $imm", (MOVKWi GPR32:$dst, imm0_65535:$imm, 0)>;
-def : InstAlias<"movk $dst, $imm", (MOVKXi GPR64:$dst, imm0_65535:$imm, 0)>;
+def : InstAlias<"movk $dst, $imm", (MOVKWi GPR32:$dst, imm0_65535:$imm, 0), 0>;
+def : InstAlias<"movk $dst, $imm", (MOVKXi GPR64:$dst, imm0_65535:$imm, 0), 0>;
----------------
huntergr wrote:
> rengolin wrote:
> > If I read `Target.td` correctly, this completely disables the printing in all cases, not just the one you're testing.
> That's my understanding as well. In this case, imm0_65535 printed in hex, whereas the unit tests are in decimal. The alternative is to change the tests to expect hex.
No, decimals are fine.
It may be that the other encodings are also just for the assembler, not code generation, so would be better to have the explicit 0.
But I don't think this is worth doing in this patch. It would be better for someone to look at that later with more extensive testing, to make sure nothing is lost in translation.
https://reviews.llvm.org/D29219
More information about the llvm-commits
mailing list