diff options
author | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2011-05-12 12:41:45 +0000 |
---|---|---|
committer | Matthew Gretton-Dann <matthew.gretton-dann@arm.com> | 2011-05-12 12:41:45 +0000 |
commit | 58ad575ff3bfa4f1fe93ad68a0660588d54f5b0f (patch) | |
tree | 776cf9e993d4c6511793634d9a5a0ed9057069ef /gas/config/tc-arm.c | |
parent | d248b706a328fbba18c4320880b36df5488b1e91 (diff) | |
download | gdb-58ad575ff3bfa4f1fe93ad68a0660588d54f5b0f.zip gdb-58ad575ff3bfa4f1fe93ad68a0660588d54f5b0f.tar.gz gdb-58ad575ff3bfa4f1fe93ad68a0660588d54f5b0f.tar.bz2 |
PR gas/12715
* gas/config/tc-arm.c (parse_big_immediate): Fix parsing of 64-bit
immediates on 32-bit hosts.
* gas/testsuite/gas/arm/neon-const.s: Add testcase for 64-bit Neon constants.
* gas/testsuite/gas/arm/neon-const.d: Likewise.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r-- | gas/config/tc-arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index a0b31a0..64a71e8 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -4459,7 +4459,7 @@ parse_big_immediate (char **str, int i) /* If we're on a 64-bit host, then a 64-bit number can be returned using O_constant. We have to be careful not to break compilation for 32-bit X_add_number, though. */ - if ((exp.X_add_number & ~0xffffffffl) != 0) + if ((exp.X_add_number & ~(offsetT)(0xffffffffU)) != 0) { /* X >> 32 is illegal if sizeof (exp.X_add_number) == 4. */ inst.operands[i].reg = ((exp.X_add_number >> 16) >> 16) & 0xffffffff; |