X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Fmips-formats.h;h=1206d97013aabb500bf0714ed09b451e390abc94;hb=f4791f1afad449b81804cb6b62ed238603592d1b;hp=dc7bfdda22e287107a06a8078e4327276e1ef5b1;hpb=b90efa5b79ac1524ec260f8eb89d1be37e0219a7;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/mips-formats.h b/opcodes/mips-formats.h index dc7bfdda22..1206d97013 100644 --- a/opcodes/mips-formats.h +++ b/opcodes/mips-formats.h @@ -1,5 +1,5 @@ /* mips-formats.h - Copyright (C) 2013-2015 Free Software Foundation, Inc. + Copyright (C) 2013-2020 Free Software Foundation, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,14 +18,17 @@ /* For ARRAY_SIZE. */ #include "libiberty.h" -#define INT_ADJ(SIZE, LSB, MAX_VAL, SHIFT, PRINT_HEX) \ +#define INT_BIAS(SIZE, LSB, MAX_VAL, BIAS, SHIFT, PRINT_HEX) \ { \ static const struct mips_int_operand op = { \ - { OP_INT, SIZE, LSB }, MAX_VAL, 0, SHIFT, PRINT_HEX \ + { OP_INT, SIZE, LSB }, MAX_VAL, BIAS, SHIFT, PRINT_HEX \ }; \ return &op.root; \ } +#define INT_ADJ(SIZE, LSB, MAX_VAL, SHIFT, PRINT_HEX) \ + INT_BIAS(SIZE, LSB, MAX_VAL, 0, SHIFT, PRINT_HEX) + #define UINT(SIZE, LSB) \ INT_ADJ(SIZE, LSB, (1 << (SIZE)) - 1, 0, FALSE)