diff options
author | Alan Modra <amodra@gmail.com> | 2022-05-27 12:37:21 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-05-27 22:08:59 +0930 |
commit | 0e3c1eebb22e0ade28b619fb41f42d66ed6fb145 (patch) | |
tree | 8a886ac9438d7e9268807c07585eef11a146714d /gas/config/tc-tilegx.c | |
parent | aa9b5dbc0f30855aa23034cbd78a1f2025cb9fa9 (diff) | |
download | fsf-binutils-gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.zip fsf-binutils-gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.tar.gz fsf-binutils-gdb-0e3c1eebb22e0ade28b619fb41f42d66ed6fb145.tar.bz2 |
Remove use of bfd_uint64_t and similar
Requiring C99 means that uses of bfd_uint64_t can be replaced with
uint64_t, and similarly for bfd_int64_t, BFD_HOST_U_64_BIT, and
BFD_HOST_64_BIT. This patch does that, removes #ifdef BFD_HOST_*
and tidies a few places that print 64-bit values.
Diffstat (limited to 'gas/config/tc-tilegx.c')
-rw-r--r-- | gas/config/tc-tilegx.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gas/config/tc-tilegx.c b/gas/config/tc-tilegx.c index b627b70..4fcc38c 100644 --- a/gas/config/tc-tilegx.c +++ b/gas/config/tc-tilegx.c @@ -789,16 +789,16 @@ emit_tilegx_instruction (tilegx_bundle_bits bits, static void check_illegal_reg_writes (void) { - BFD_HOST_U_64_BIT all_regs_written = 0; + uint64_t all_regs_written = 0; int j; for (j = 0; j < current_bundle_index; j++) { const struct tilegx_instruction *instr = ¤t_bundle[j]; int k; - BFD_HOST_U_64_BIT regs = - ((BFD_HOST_U_64_BIT)1) << instr->opcode->implicitly_written_register; - BFD_HOST_U_64_BIT conflict; + uint64_t regs = + (uint64_t) 1 << instr->opcode->implicitly_written_register; + uint64_t conflict; for (k = 0; k < instr->opcode->num_operands; k++) { @@ -808,12 +808,12 @@ check_illegal_reg_writes (void) if (operand->is_dest_reg) { int regno = instr->operand_values[k].X_add_number; - BFD_HOST_U_64_BIT mask = ((BFD_HOST_U_64_BIT)1) << regno; + uint64_t mask = (uint64_t) 1 << regno; - if ((mask & ( (((BFD_HOST_U_64_BIT)1) << TREG_IDN1) - | (((BFD_HOST_U_64_BIT)1) << TREG_UDN1) - | (((BFD_HOST_U_64_BIT)1) << TREG_UDN2) - | (((BFD_HOST_U_64_BIT)1) << TREG_UDN3))) != 0 + if ((mask & ( ((uint64_t) 1 << TREG_IDN1) + | ((uint64_t) 1 << TREG_UDN1) + | ((uint64_t) 1 << TREG_UDN2) + | ((uint64_t) 1 << TREG_UDN3))) != 0 && !allow_suspicious_bundles) { as_bad (_("Writes to register '%s' are not allowed."), @@ -825,7 +825,7 @@ check_illegal_reg_writes (void) } /* Writing to the zero register doesn't count. */ - regs &= ~(((BFD_HOST_U_64_BIT)1) << TREG_ZERO); + regs &= ~((uint64_t) 1 << TREG_ZERO); conflict = all_regs_written & regs; if (conflict != 0 && !allow_suspicious_bundles) |