From 58ad575ff3bfa4f1fe93ad68a0660588d54f5b0f Mon Sep 17 00:00:00 2001 From: Matthew Gretton-Dann Date: Thu, 12 May 2011 12:41:45 +0000 Subject: 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. --- gas/config/tc-arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gas/config/tc-arm.c') 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; -- cgit v1.1