[PATCH][ARM][gas] Make gas accept vcmp[e].f{32,64} <reg>, #0.0
Kyrill Tkachov
kyrylo.tkachov@arm.com
Mon Aug 4 09:34:00 GMT 2014
Hi all,
The ARM ARM says that the VFP compare with zero instructions (vcmp,
vcmpe) accept the zero in the form of a #0.0 immediate. However, gas
currently only accepts #0. This patch fixes that and some simple tests
are added.
The new parse_ifimm_zerofunction is rather simple and is modelled on the
parse_qfloat_immediate below it and didn't blow up in my testing.
make check on gas passes and a gcc testsuite run doesn't show any problems.
Ok for trunk?
Thanks,
Kyrill
[gas/]
2014-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/tc-arm.c (parse_ifimm_zero): New function.
(enum operand_parse_code): Add OP_RSVD_FI0 value.
(parse_operands): Handle OP_RSVD_FI0.
(asm_opcode_insns): Use RSVD_FI0 for second operand of vcmp, vcmpe.
[gas/testsuite/]
2014-06-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* gas/arm/ual-vcmp.s: New file.
* gas/arm/ual-vcmp.d: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm-gas-vcmp-0.patch
Type: text/x-patch
Size: 3861 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140804/11091715/attachment.bin>
More information about the Binutils
mailing list