diff options
author | Nick Clifton <nickc@redhat.com> | 2013-08-28 10:25:36 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-08-28 10:25:36 +0000 |
commit | 7e1050317266448c0496db46eadd546410b07c0a (patch) | |
tree | b9c181902dad85234034b701858441d264f127bd /opcodes/aarch64-opc.c | |
parent | fe6d7d6aa2c337beb63b7214e669be68284fc1c2 (diff) | |
download | gdb-7e1050317266448c0496db46eadd546410b07c0a.zip gdb-7e1050317266448c0496db46eadd546410b07c0a.tar.gz gdb-7e1050317266448c0496db46eadd546410b07c0a.tar.bz2 |
* aarch64-opc.c (aarch64_logical_immediate_p): Return FALSE if the
immediate is not suitable for the 32-bit ABI.
* gas/aarch64/illegal.s: Add illegal constant for logical
operation.
* gas/aarch64/illegal.l: Add expected error message.
Diffstat (limited to 'opcodes/aarch64-opc.c')
-rw-r--r-- | opcodes/aarch64-opc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opcodes/aarch64-opc.c b/opcodes/aarch64-opc.c index 74f2826..f32ee5e 100644 --- a/opcodes/aarch64-opc.c +++ b/opcodes/aarch64-opc.c @@ -1063,7 +1063,8 @@ aarch64_logical_immediate_p (uint64_t value, int is32, aarch64_insn *encoding) /* Allow all zeros or all ones in top 32-bits, so that constant expressions like ~1 are permitted. */ if (value >> 32 != 0 && value >> 32 != 0xffffffff) - return 0xffffffff; + return FALSE; + /* Replicate the 32 lower bits to the 32 upper bits. */ value &= 0xffffffff; value |= value << 32; |