From a40aee3822977452fd67d92ae7254c3de17c7e6b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 29 May 1996 20:46:07 +0000 Subject: [PATCH] * config/tc-mips.c (macro): When passing X_add_number to macro_build, cast it to int first. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 9edeb20a0cf..e73e0010db7 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Wed May 29 16:43:16 1996 Ian Lance Taylor + + * config/tc-mips.c (macro): When passing X_add_number to + macro_build, cast it to int first. + Tue May 28 13:29:39 1996 Ian Lance Taylor * config/tc-z8k.c (md_apply_fix): Handle fx_r_type of 0, as diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index 31c856a994d..649f31458a0 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -4417,9 +4417,9 @@ macro2 (ip) case M_ROL_I: macro_build ((char *) NULL, &icnt, NULL, "sll", "d,w,<", AT, sreg, - imm_expr.X_add_number & 0x1f); + (int) (imm_expr.X_add_number & 0x1f)); macro_build ((char *) NULL, &icnt, NULL, "srl", "d,w,<", dreg, sreg, - (0 - imm_expr.X_add_number) & 0x1f); + (int) ((0 - imm_expr.X_add_number) & 0x1f)); macro_build ((char *) NULL, &icnt, NULL, "or", "d,v,t", dreg, dreg, AT); break; @@ -4433,9 +4433,9 @@ macro2 (ip) case M_ROR_I: macro_build ((char *) NULL, &icnt, NULL, "srl", "d,w,<", AT, sreg, - imm_expr.X_add_number & 0x1f); + (int) (imm_expr.X_add_number & 0x1f)); macro_build ((char *) NULL, &icnt, NULL, "sll", "d,w,<", dreg, sreg, - (0 - imm_expr.X_add_number) & 0x1f); + (int) ((0 - imm_expr.X_add_number) & 0x1f)); macro_build ((char *) NULL, &icnt, NULL, "or", "d,v,t", dreg, dreg, AT); break; -- 2.30.2