]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/config/tc-arm.c
Allow integer immediate for VFP vmov instructions.
authorTamar Christina <tamar.christina@arm.com>
Thu, 10 May 2018 15:22:32 +0000 (16:22 +0100)
committerTamar Christina <tamar.christina@arm.com>
Thu, 10 May 2018 15:43:28 +0000 (16:43 +0100)
commit58ed5c38f52511e73c9748b86c319320177fb0ca
treed6a80c5b465e846aba3589a55b27503e4cdded35
parent190852c8ac75cb62a737c58edfadfb0e1fcef78a
Allow integer immediate for VFP vmov instructions.

This patch fixes the case where you want to use an integer value the
floating point immediate to a VFP vmov instruction such as
vmovmi.f32 s27, #11.

If the immediate is not a float we convert it and copy it's representation
into the imm field and then carry on validating as if we originally entered
a floating point immediate.

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

gas/
* gas/config/tc-arm.c (do_neon_mov): Allow integer literal for float
immediate.
* testsuite/gas/arm/vfp-mov-enc.s: New.
* testsuite/gas/arm/vfp-mov-enc.d: New.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/vfp-mov-enc.d [new file with mode: 0644]
gas/testsuite/gas/arm/vfp-mov-enc.s [new file with mode: 0644]