diff options
author | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2017-02-13 17:46:59 +0000 |
---|---|---|
committer | Thomas Preud'homme <thomas.preudhomme@arm.com> | 2017-02-13 17:47:21 +0000 |
commit | 3c6452ae8df5a4707c77aacc514a3a95bf3f24b7 (patch) | |
tree | 7ad42ae65a5eec7ff86ce586cb2409a2e52a11c1 /gas/config/tc-arm.c | |
parent | c12214021dedefcc2320827bcc1751f2d94ca2c6 (diff) | |
download | gdb-3c6452ae8df5a4707c77aacc514a3a95bf3f24b7.zip gdb-3c6452ae8df5a4707c77aacc514a3a95bf3f24b7.tar.gz gdb-3c6452ae8df5a4707c77aacc514a3a95bf3f24b7.tar.bz2 |
[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.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r-- | gas/config/tc-arm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 7947035..a433929 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -4969,9 +4969,13 @@ parse_ifimm_zero (char **in) int error_code; if (!is_immediate_prefix (**in)) - return FALSE; - - ++*in; + { + /* In unified syntax, all prefixes are optional. */ + if (!unified_syntax) + return FALSE; + } + else + ++*in; /* Accept #0x0 as a synonym for #0. */ if (strncmp (*in, "0x", 2) == 0) |