From 202e762b322444344827acbf98162fcb2910e0dd Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 11 Jan 2020 12:32:11 +1030 Subject: ubsan: fr30: left shift of negative value cpu/ * fr30.cpu (f-disp9, f-disp10, f-s10, f-rel9, f-rel12): Don't left shift signed values. opcodes/ * fr30-ibld.c: Regenerate. --- opcodes/ChangeLog | 4 ++++ opcodes/fr30-ibld.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) (limited to 'opcodes') diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e2e9b10..feeb7c5 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,9 @@ 2020-01-13 Alan Modra + * fr30-ibld.c: Regenerate. + +2020-01-13 Alan Modra + * xgate-dis.c (print_insn): Don't left shift signed value. (ripBits): Formatting, use 1u. diff --git a/opcodes/fr30-ibld.c b/opcodes/fr30-ibld.c index 8f12e4c..ea4ea0a 100644 --- a/opcodes/fr30-ibld.c +++ b/opcodes/fr30-ibld.c @@ -831,7 +831,7 @@ fr30_cgen_extract_operand (CGEN_CPU_DESC cd, { long value; length = extract_normal (cd, ex_info, insn_value, 0|(1<f_disp10 = value; } break; @@ -842,7 +842,7 @@ fr30_cgen_extract_operand (CGEN_CPU_DESC cd, { long value; length = extract_normal (cd, ex_info, insn_value, 0|(1<f_disp9 = value; } break; @@ -867,7 +867,7 @@ fr30_cgen_extract_operand (CGEN_CPU_DESC cd, { long value; length = extract_normal (cd, ex_info, insn_value, 0|(1<f_rel12 = value; } break; @@ -875,7 +875,7 @@ fr30_cgen_extract_operand (CGEN_CPU_DESC cd, { long value; length = extract_normal (cd, ex_info, insn_value, 0|(1<f_rel9 = value; } break; @@ -905,7 +905,7 @@ fr30_cgen_extract_operand (CGEN_CPU_DESC cd, { long value; length = extract_normal (cd, ex_info, insn_value, 0|(1<f_s10 = value; } break; -- cgit v1.1