[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 04:21:22 PDT 2018


sdesmalen added a comment.

The k_FPImm case works a little different.. Instead of it storing the APFloat value, it stores the (AArch64_AM) encoded FP imm value. If the value cannot be encoded, the parser throws an error. Also not all values can be encoded, such as '0.0', for which the parser (for k_FPImm) puts in a "#0.0" string literal into the parsed operands list. The two cases can be merged, but I think it may be better to do that in a separate patch as this will require some refactoring and changes to match e.g. the #0.0 case in existing FP instructions.


https://reviews.llvm.org/D47711





More information about the llvm-commits mailing list