diff options
author | Anthony Green <green@moxielogic.com> | 2009-06-20 17:08:15 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2009-06-20 17:08:15 +0000 |
commit | 525b459f4d2fa0baba15f39973524cf75abaabf9 (patch) | |
tree | 3f15d3c05800500131e092de87549e2664bfbcbc /gcc/config/moxie | |
parent | 825be69e343144b0608da6056d92dc5b71eb50c2 (diff) | |
download | gcc-525b459f4d2fa0baba15f39973524cf75abaabf9.tar.gz |
Fixes for moxie sfp and memory loads
From-SVN: r148749
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r-- | gcc/config/moxie/moxie.h | 3 | ||||
-rw-r--r-- | gcc/config/moxie/sfp-machine.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h index e63190978f0..73a1a5101e0 100644 --- a/gcc/config/moxie/moxie.h +++ b/gcc/config/moxie/moxie.h @@ -518,6 +518,9 @@ do \ #define MOVE_MAX 4 #define TRULY_NOOP_TRUNCATION(op,ip) 1 +/* All load operations zero extend. */ +#define LOAD_EXTEND_OP(MEM) ZERO_EXTEND + #define RETURN_POPS_ARGS(FUNDECL, FUNTYPE, STACK_SIZE) 0 /* A C expression that is nonzero if X is a legitimate constant for diff --git a/gcc/config/moxie/sfp-machine.h b/gcc/config/moxie/sfp-machine.h index 57f515e9fc6..98f9f1bf491 100644 --- a/gcc/config/moxie/sfp-machine.h +++ b/gcc/config/moxie/sfp-machine.h @@ -3,6 +3,11 @@ #define _FP_WS_TYPE signed long #define _FP_I_TYPE long +/* The type of the result of a floating point comparison. This must + match `__libgcc_cmp_return__' in GCC for the target. */ +typedef int __gcc_CMPtype __attribute__ ((mode (__libgcc_cmp_return__))); +#define CMPtype __gcc_CMPtype + #define _FP_MUL_MEAT_S(R,X,Y) \ _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm) #define _FP_MUL_MEAT_D(R,X,Y) \ |