diff options
Diffstat (limited to 'opcodes/or1k-ibld.c')
-rw-r--r-- | opcodes/or1k-ibld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/or1k-ibld.c b/opcodes/or1k-ibld.c index 6271f5c..57eeb52 100644 --- a/opcodes/or1k-ibld.c +++ b/opcodes/or1k-ibld.c @@ -783,7 +783,7 @@ or1k_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_ABS_ADDR), 0, 20, 21, 32, total_length, pc, & value); - value = ((((value) + (((DI) (pc) >> (13))))) << (13)); + value = ((((value) + (((DI) (pc) >> (13))))) * (MAKEDI (0, 8192))); fields->f_disp21 = value; } break; @@ -791,7 +791,7 @@ or1k_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, 25, 26, 32, total_length, pc, & value); - value = ((((value) << (2))) + (pc)); + value = ((((value) * (MAKEDI (0, 4)))) + (pc)); fields->f_disp26 = value; } break; |