[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
Mon Jun 4 06:21:35 PDT 2018


sdesmalen created this revision.
sdesmalen added reviewers: rengolin, fhahn, SjoerdMeijer, samparker.
Herald added a reviewer: javed.absar.
Herald added subscribers: rkruppe, kristof.beyls, tschuett.

Some instructions require of a limited set of FP immediates as operands,
for example '#0.5 or #1.0' for SVE's FADD instruction.

This patch adds support for parsing and printing such FP immediates as
exact values (e.g. #0.499999 is not accepted for #0.5).


https://reviews.llvm.org/D47711

Files:
  lib/Target/AArch64/AArch64SystemOperands.td
  lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp
  lib/Target/AArch64/InstPrinter/AArch64InstPrinter.h
  lib/Target/AArch64/SVEInstrFormats.td
  lib/Target/AArch64/Utils/AArch64BaseInfo.cpp
  lib/Target/AArch64/Utils/AArch64BaseInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47711.149743.patch
Type: text/x-patch
Size: 10631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180604/e4c28739/attachment.bin>


More information about the llvm-commits mailing list