ubsan: iq2000: left shift of negative value
[deliverable/binutils-gdb.git] / opcodes / iq2000-ibld.c
index 34482b366a65fa7b535c81d6e937c5a44d18d747..3059fe167a7675c4c729cfbeb8bb3076fdca6f6b 100644 (file)
@@ -838,7 +838,7 @@ iq2000_cgen_extract_operand (CGEN_CPU_DESC cd,
       {
         long value;
         length = extract_normal (cd, ex_info, insn_value, 0|(1<<CGEN_IFLD_SIGNED)|(1<<CGEN_IFLD_PCREL_ADDR), 0, 15, 16, 32, total_length, pc, & value);
-        value = ((((value) << (2))) + (((pc) + (4))));
+        value = ((((value) * (4))) + (((pc) + (4))));
         fields->f_offset = value;
       }
       break;
This page took 0.036508 seconds and 4 git commands to generate.