aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2003-05-16 18:15:44 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2003-05-16 18:15:44 +0000
commit804a0655c814e9610eb77ca0a56b5f1fe01687d5 (patch)
tree728ae045ce804fd5d8bd7f0d43bd032d66c7ce1a /gcc/config
parentfdb882bcab5400708389bed0e91c4828f579874d (diff)
downloadgcc-804a0655c814e9610eb77ca0a56b5f1fe01687d5.zip
gcc-804a0655c814e9610eb77ca0a56b5f1fe01687d5.tar.gz
gcc-804a0655c814e9610eb77ca0a56b5f1fe01687d5.tar.bz2
stormy16-protos.h (xs_hi_general_operand, [...]): Prototype.
* stormy16-protos.h (xs_hi_general_operand, xs_hi_nonmemory_operand): Prototype. * stormy16.c (xstormy16_output_shift): Fix format specifier warnings. From-SVN: r66872
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/stormy16/stormy16-protos.h2
-rw-r--r--gcc/config/stormy16/stormy16.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/stormy16/stormy16-protos.h b/gcc/config/stormy16/stormy16-protos.h
index 77ad20a..fafe4c1 100644
--- a/gcc/config/stormy16/stormy16-protos.h
+++ b/gcc/config/stormy16/stormy16-protos.h
@@ -78,6 +78,8 @@ extern int nonimmediate_nonstack_operand PARAMS ((rtx, enum machine_mode));
extern enum reg_class xstormy16_secondary_reload_class
PARAMS ((enum reg_class, enum machine_mode, rtx));
extern int xstormy16_carry_plus_operand PARAMS ((rtx, enum machine_mode));
+extern int xs_hi_general_operand PARAMS ((rtx, enum machine_mode));
+extern int xs_hi_nonmemory_operand PARAMS ((rtx, enum machine_mode));
extern enum reg_class xstormy16_preferred_reload_class
PARAMS ((rtx, enum reg_class));
extern int xstormy16_legitimate_address_p
diff --git a/gcc/config/stormy16/stormy16.c b/gcc/config/stormy16/stormy16.c
index 2979dd0..cd1f66d 100644
--- a/gcc/config/stormy16/stormy16.c
+++ b/gcc/config/stormy16/stormy16.c
@@ -2098,19 +2098,19 @@ xstormy16_output_shift (mode, code, x, size_r, temp)
case ASHIFT:
sprintf (r,
"mov %s,%s | shl %s,#%d | shl %s,#%d | shr %s,#%d | or %s,%s",
- rt, r0, r0, (int) size, r1, (int) size, rt, (int) 16-size,
+ rt, r0, r0, (int) size, r1, (int) size, rt, (int) (16-size),
r1, rt);
break;
case ASHIFTRT:
sprintf (r,
"mov %s,%s | asr %s,#%d | shr %s,#%d | shl %s,#%d | or %s,%s",
- rt, r1, r1, (int) size, r0, (int) size, rt, (int) 16-size,
+ rt, r1, r1, (int) size, r0, (int) size, rt, (int) (16-size),
r0, rt);
break;
case LSHIFTRT:
sprintf (r,
"mov %s,%s | shr %s,#%d | shr %s,#%d | shl %s,#%d | or %s,%s",
- rt, r1, r1, (int) size, r0, (int) size, rt, (int) 16-size,
+ rt, r1, r1, (int) size, r0, (int) size, rt, (int) (16-size),
r0, rt);
break;
default: