diff --git a/gas/ChangeLog b/gas/ChangeLog index 5cae4d1c0f..99cd42582e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2017-12-12 Alan Modra + + PR 21118 + * config/tc-ppc.c (md_assemble): Don't mask register number. + 2017-12-07 Max Filippov * config/tc-xtensa.c (xg_order_trampoline_chain): Replace diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index d4f3d605ba..d28164ee15 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -3040,7 +3040,7 @@ md_assemble (char *str) && ex.X_add_number != 0 && (operand->flags & PPC_OPERAND_GPR_0) != 0)) as_warn (_("invalid register expression")); - insn = ppc_insert_operand (insn, operand, ex.X_add_number & 0xff, + insn = ppc_insert_operand (insn, operand, ex.X_add_number, ppc_cpu, (char *) NULL, 0); } else if (ex.X_op == O_constant)