From 525b459f4d2fa0baba15f39973524cf75abaabf9 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Sat, 20 Jun 2009 17:08:15 +0000 Subject: [PATCH] Fixes for moxie sfp and memory loads From-SVN: r148749 --- gcc/ChangeLog | 5 +++++ gcc/config/moxie/moxie.h | 3 +++ gcc/config/moxie/sfp-machine.h | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d25a5d06033..50f17b78fa1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-06-20 Anthony Green + + * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define. + * config/moxie/moxie.h (LOAD_EXTEND_OP): Define. + 2009-06-20 Richard Guenther * tree-ssa-structalias.c (find_func_aliases): For memset use 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) \ -- 2.30.2