aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-05-29 20:46:07 +0000
committerIan Lance Taylor <ian@airs.com>1996-05-29 20:46:07 +0000
commita40aee3822977452fd67d92ae7254c3de17c7e6b (patch)
tree06a62c944d89f83721789fd276104cedd2f49ad4 /gas/config
parent2183da6aa8a45120d890ce91908803b9c951a949 (diff)
downloadgdb-a40aee3822977452fd67d92ae7254c3de17c7e6b.zip
gdb-a40aee3822977452fd67d92ae7254c3de17c7e6b.tar.gz
gdb-a40aee3822977452fd67d92ae7254c3de17c7e6b.tar.bz2
* config/tc-mips.c (macro): When passing X_add_number to
macro_build, cast it to int first.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 31c856a..649f314 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;