aboutsummaryrefslogtreecommitdiff
path: root/opcodes/bpf-ibld.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-12-17 14:26:39 +1030
committerAlan Modra <amodra@gmail.com>2019-12-17 14:32:23 +1030
commit62e6599087efba193e0156d89ee65fb74fc99cb2 (patch)
treee6316a78fdde602c597410a4dfa4b09815c6724a /opcodes/bpf-ibld.c
parent45d735237b7edf282131d570a7a9f6aa9ee1bd9c (diff)
downloadbinutils-62e6599087efba193e0156d89ee65fb74fc99cb2.zip
binutils-62e6599087efba193e0156d89ee65fb74fc99cb2.tar.gz
binutils-62e6599087efba193e0156d89ee65fb74fc99cb2.tar.bz2
ubsan: bpf: left shift cannot be represented in type 'DI' (aka 'long')
cpu/ * bpf.cpu (f-imm64): Avoid signed overflow. opcodes/ * bpf-ibld.c: Regenerate.
Diffstat (limited to 'opcodes/bpf-ibld.c')
-rw-r--r--opcodes/bpf-ibld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/bpf-ibld.c b/opcodes/bpf-ibld.c
index b14c28b..e2601dd 100644
--- a/opcodes/bpf-ibld.c
+++ b/opcodes/bpf-ibld.c
@@ -689,7 +689,7 @@ bpf_cgen_extract_operand (CGEN_CPU_DESC cd,
length = extract_normal (cd, ex_info, insn_value, 0, 96, 31, 32, 32, total_length, pc, & fields->f_imm64_c);
if (length <= 0) break;
{
- FLD (f_imm64) = ((((((DI) (UINT) (FLD (f_imm64_c)))) << (32))) | (((DI) (UINT) (FLD (f_imm64_a)))));
+ FLD (f_imm64) = ((((((UDI) (UINT) (FLD (f_imm64_c)))) << (32))) | (((UDI) (UINT) (FLD (f_imm64_a)))));
}
}
break;