mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
[ARM] Allow immediate without prefix in unified syntax for VCMP
2017-02-13 Thomas Preud'homme <thomas.preudhomme@arm.com> gas/ * config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified syntax. * testsuite/gas/arm/vcmp-noprefix-imm.d: New file. * testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2017-02-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||||||
|
|
||||||
|
* config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified
|
||||||
|
syntax.
|
||||||
|
* testsuite/gas/arm/vcmp-noprefix-imm.d: New file.
|
||||||
|
* testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
|
||||||
|
|
||||||
2017-02-10 Nicholas Piggin <npiggin@gmail.com>
|
2017-02-10 Nicholas Piggin <npiggin@gmail.com>
|
||||||
|
|
||||||
* testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
|
* testsuite/gas/ppc/power9.d <scv, rfscv>: New tests.
|
||||||
|
@ -4969,8 +4969,12 @@ parse_ifimm_zero (char **in)
|
|||||||
int error_code;
|
int error_code;
|
||||||
|
|
||||||
if (!is_immediate_prefix (**in))
|
if (!is_immediate_prefix (**in))
|
||||||
|
{
|
||||||
|
/* In unified syntax, all prefixes are optional. */
|
||||||
|
if (!unified_syntax)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
else
|
||||||
++*in;
|
++*in;
|
||||||
|
|
||||||
/* Accept #0x0 as a synonym for #0. */
|
/* Accept #0x0 as a synonym for #0. */
|
||||||
|
8
gas/testsuite/gas/arm/vcmp-noprefix-imm.d
Normal file
8
gas/testsuite/gas/arm/vcmp-noprefix-imm.d
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#name: VCMP immediate without prefix
|
||||||
|
#as:
|
||||||
|
#objdump: -dr --prefix-addresses --show-raw-insn
|
||||||
|
|
||||||
|
.*: +file format .*arm.*
|
||||||
|
|
||||||
|
Disassembly of section .text:
|
||||||
|
0[0-9a-f]+ <[^>]+> eeb5 0a40 vcmp.f32 s0, #0.0
|
7
gas/testsuite/gas/arm/vcmp-noprefix-imm.s
Normal file
7
gas/testsuite/gas/arm/vcmp-noprefix-imm.s
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.syntax unified
|
||||||
|
.arch armv7e-m
|
||||||
|
.fpu fpv5-d16
|
||||||
|
.thumb
|
||||||
|
.thumb_func
|
||||||
|
|
||||||
|
vcmp.f32 s0, 0.0
|
Reference in New Issue
Block a user