diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-17 22:48:48 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-17 22:58:19 +1030 |
commit | 29298bf66f62f2f6c1efb0685623fbc29dfade90 (patch) | |
tree | d30bbc387cd9f20882f5111afc901ec64d9ab5ad /opcodes/aarch64-opc.h | |
parent | e46d79a76ea748165a3ecd1102dd10498d089a49 (diff) | |
download | binutils-gdb-29298bf66f62f2f6c1efb0685623fbc29dfade90.tar.gz |
ubsan: aarch64: left shift cannot be represented in type 'int64_t'
* aarch64-opc.c (value_fit_signed_field_p): Avoid signed overflow.
(value_fit_unsigned_field_p): Likewise.
(aarch64_wide_constant_p): Likewise.
(operand_general_constraint_met_p): Likewise.
* aarch64-opc.h (aarch64_wide_constant_p): Update prototype.
Diffstat (limited to 'opcodes/aarch64-opc.h')
-rw-r--r-- | opcodes/aarch64-opc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/aarch64-opc.h b/opcodes/aarch64-opc.h index bb0a50892b2..e0d4f5bae25 100644 --- a/opcodes/aarch64-opc.h +++ b/opcodes/aarch64-opc.h @@ -485,7 +485,7 @@ enum aarch64_modifier_kind aarch64_get_operand_modifier_from_value (aarch64_insn, bfd_boolean); -bfd_boolean aarch64_wide_constant_p (int64_t, int, unsigned int *); +bfd_boolean aarch64_wide_constant_p (uint64_t, int, unsigned int *); bfd_boolean aarch64_logical_immediate_p (uint64_t, int, aarch64_insn *); int aarch64_shrink_expanded_imm8 (uint64_t); |