[PATCH] D47711: [AArch64][SVE] Asm: Add parsing/printing support for exact FP immediates.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 5 07:47:30 PDT 2018


sdesmalen added a comment.

Hi @olista01 , I just tried merging this change with k_FPImm and one of the problems I'm running into is with the '#0.0' and InstAliases.
For example in SVEInstrFormats.td, class `sve_int_dup_imm`:

  InstAlias<"fmov $Zd, #0.0", (!cast<Instruction>(NAME # _S) ZPR32:$Zd, 0, 0), 1>;

If `#0.0` would be an operand of type fpimm0, say `fpimm0:$imm`, then TableGen tells me the operand needs to be used in the instruction. But not only would we want to pass `0` instead of $imm, the immediate for sve_int_dup_imm is of a completely different type, namely `cpy_imm8_opt_lsl_i32`. Do you have any suggestions how to solve that?

Also which are the other two ways you mention? (I only know of k_FPImm?)


https://reviews.llvm.org/D47711





More information about the llvm-commits mailing list