diff options
author | Doug Evans <dje@google.com> | 1999-01-06 00:21:27 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 1999-01-06 00:21:27 +0000 |
commit | 5730d39d2cd1974c77899555dac466babc316589 (patch) | |
tree | 4c8d10014875d832282a24342c7418e8284ae859 /opcodes/i960c-dis.c | |
parent | 80909c45f834e334ccf171903911bd5e6cd269b1 (diff) | |
download | gdb-5730d39d2cd1974c77899555dac466babc316589.zip gdb-5730d39d2cd1974c77899555dac466babc316589.tar.gz gdb-5730d39d2cd1974c77899555dac466babc316589.tar.bz2 |
* cgen-asm.in (insert_normal): Use CGEN_BOOL_ATTR.
* cgen-asm.in (extract_normal): Ditto.
* fr30-asm.c,fr30-dis.c,fr30-opc.h,fr30-opc.c: Regenerate.
* i960c-asm.c,i960c-dis.c,i960c-opc.h,i960c-opc.c: Regenerate.
* m32r-asm.c,m32r-dis.c,m32r-opc.h,m32r-opc.c: Regenerate.
Diffstat (limited to 'opcodes/i960c-dis.c')
-rw-r--r-- | opcodes/i960c-dis.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/opcodes/i960c-dis.c b/opcodes/i960c-dis.c index 4985fec..9d6d9e0 100644 --- a/opcodes/i960c-dis.c +++ b/opcodes/i960c-dis.c @@ -136,7 +136,7 @@ i960_cgen_extract_operand (od, opindex, ex_info, insn_value, fields, pc) case I960_OPERAND_BR_DISP : { long value; - length = extract_normal (od, ex_info, insn_value, 0|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), 0, 19, 11, 32, total_length, pc, & value); + length = extract_normal (od, ex_info, insn_value, 0|(1<<CGEN_OPERAND_PCREL_ADDR), 0, 19, 11, 32, total_length, pc, & value); value = ((((value) << (2))) + (pc)); fields->f_br_disp = value; } @@ -147,7 +147,7 @@ i960_cgen_extract_operand (od, opindex, ex_info, insn_value, fields, pc) case I960_OPERAND_CTRL_DISP : { long value; - length = extract_normal (od, ex_info, insn_value, 0|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), 0, 8, 22, 32, total_length, pc, & value); + length = extract_normal (od, ex_info, insn_value, 0|(1<<CGEN_OPERAND_PCREL_ADDR), 0, 8, 22, 32, total_length, pc, & value); value = ((((value) << (2))) + (pc)); fields->f_ctrl_disp = value; } @@ -229,13 +229,13 @@ i960_cgen_print_operand (od, opindex, info, fields, attrs, pc, length) print_keyword (od, info, & i960_cgen_opval_h_gr, fields->f_br_src2, 0|(1<<CGEN_OPERAND_UNSIGNED)); break; case I960_OPERAND_BR_DISP : - print_address (od, info, fields->f_br_disp, 0|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), pc, length); + print_address (od, info, fields->f_br_disp, 0|(1<<CGEN_OPERAND_PCREL_ADDR), pc, length); break; case I960_OPERAND_BR_LIT1 : print_normal (od, info, fields->f_br_src1, 0|(1<<CGEN_OPERAND_UNSIGNED), pc, length); break; case I960_OPERAND_CTRL_DISP : - print_address (od, info, fields->f_ctrl_disp, 0|(1<<CGEN_OPERAND_RELOC)|(1<<CGEN_OPERAND_PCREL_ADDR), pc, length); + print_address (od, info, fields->f_ctrl_disp, 0|(1<<CGEN_OPERAND_PCREL_ADDR), pc, length); break; default : @@ -439,7 +439,7 @@ extract_normal (od, ex_info, insn_value, attrs, word_offset, start, length, value = insn_value >> (word_length - (start + length)); value &= mask; /* sign extend? */ - if (! (attrs & CGEN_ATTR_MASK (CGEN_OPERAND_UNSIGNED)) + if (! CGEN_BOOL_ATTR (attrs, CGEN_OPERAND_UNSIGNED) && (value & (1L << (length - 1)))) value |= ~mask; } |