Allow integer immediates for AArch64 fmov instructions.
authorTamar Christina <tamar.christina@arm.com>
Thu, 10 May 2018 15:24:58 +0000 (16:24 +0100)
committerTamar Christina <tamar.christina@arm.com>
Thu, 10 May 2018 15:43:28 +0000 (16:43 +0100)
commit6688183925d82d4049931e95bc4e963ab66e770d
tree21c93647ee8709a0fe97dea475307e6cd5891bb2
parent58ed5c38f52511e73c9748b86c319320177fb0ca
Allow integer immediates for AArch64 fmov instructions.

This patch makes it possible to use an integer immediate with the fmov instructions
allowing you to simply write fmov d0, #2 instead of needing fmov d0, #2.0.

The parse double function already know to deal with this so we just need to list the
restriction put in place in parser.

The is considered a QoL improvement for hand assembly writers and allows more
code portability between assembler.

gas/

* config/tc-aarch64.c (parse_aarch64_imm_float): Remove restrictions.
* testsuite/gas/aarch64/diagnostic.s: Move fmov int test to..
* testsuite/gas/aarch64/fpmov.s: Here.
* testsuite/gas/aarch64/fpmov.d: Update results with fmov.
* testsuite/gas/aarch64/diagnostic.l: Remove fmov values.
* testsuite/gas/aarch64/sve-invalid.s: Update test files.
* testsuite/gas/aarch64/sve-invalid.l: Likewise
gas/ChangeLog
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/diagnostic.l
gas/testsuite/gas/aarch64/diagnostic.s
gas/testsuite/gas/aarch64/fpmov.d
gas/testsuite/gas/aarch64/fpmov.s
gas/testsuite/gas/aarch64/sve-invalid.l
gas/testsuite/gas/aarch64/sve-invalid.s
This page took 0.026277 seconds and 4 git commands to generate.