From: dje Date: Thu, 8 Aug 2002 01:23:01 +0000 (+0000) Subject: * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0. X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=14c03a873ffe390858ea8584cb3fe462a8094543;p=pf3gnuchains%2Fgcc-fork.git * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0. (TARGET_ALTIVEC_ABI): Same. (TARGET_ALTIVEC_VRSAVE): Same. * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check icode not CODE_FOR_nothing. Change switch to if. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56115 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 65dd603852d..18ffc97cba6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2002-08-08 David Edelsohn + + * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0. + (TARGET_ALTIVEC_ABI): Same. + (TARGET_ALTIVEC_VRSAVE): Same. + + * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check + icode not CODE_FOR_nothing. Change switch to if. + 2002-08-08 Alan Modra * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4. diff --git a/gcc/config/rs6000/aix.h b/gcc/config/rs6000/aix.h index b639025c9cb..592ca555de2 100644 --- a/gcc/config/rs6000/aix.h +++ b/gcc/config/rs6000/aix.h @@ -21,8 +21,25 @@ Boston, MA 02111-1307, USA. */ /* Yes! We are AIX! */ #define DEFAULT_ABI ABI_AIX -#undef TARGET_AIX +#undef TARGET_AIX #define TARGET_AIX 1 + +/* AIX always has a TOC. */ +#define TARGET_NO_TOC 0 +#define TARGET_TOC 1 +#define FIXED_R2 1 + +/* AIX allows r13 to be used in 32-bit mode. */ +#define FIXED_R13 0 + +/* AIX does not support Altivec. */ +#undef TARGET_ALTIVEC +#define TARGET_ALTIVEC 0 +#undef TARGET_ALTIVEC_ABI +#define TARGET_ALTIVEC_ABI 0 +#undef TARGET_ALTIVEC_VRSAVE +#define TARGET_ALTIVEC_VRSAVE 0 + /* The AIX linker will discard static constructors in object files before collect has a chance to see them, so scan the object files directly. */ #define COLLECT_EXPORT_LIST @@ -122,8 +139,6 @@ Boston, MA 02111-1307, USA. */ ? MAX (MAX ((COMPUTED), (SPECIFIED)), 64) \ : MAX ((COMPUTED), (SPECIFIED))) - - /* Indicate that jump tables go in the text section. */ #define JUMP_TABLES_IN_TEXT_SECTION 1 @@ -177,14 +192,6 @@ Boston, MA 02111-1307, USA. */ } \ } while (0) -/* AIX always has a TOC. */ -#define TARGET_NO_TOC 0 -#define TARGET_TOC 1 - -#define FIXED_R2 1 -/* AIX allows r13 to be used. */ -#define FIXED_R13 0 - /* __throw will restore its own return address to be the same as the return address of the function that the throw is being made to. This is unfortunate, because we want to check the original diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 382f47bc224..46b9161e5c4 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -4368,28 +4368,28 @@ rs6000_expand_ternop_builtin (icode, arglist, target) enum machine_mode mode1 = insn_data[icode].operand[2].mode; enum machine_mode mode2 = insn_data[icode].operand[3].mode; + if (icode == CODE_FOR_nothing) + /* Builtin not supported on this processor. */ + return 0; + /* If we got invalid arguments bail out before generating bad rtl. */ if (arg0 == error_mark_node || arg1 == error_mark_node || arg2 == error_mark_node) return const0_rtx; - switch (icode) + if (icode == CODE_FOR_altivec_vsldoi_4sf + || icode == CODE_FOR_altivec_vsldoi_4si + || icode == CODE_FOR_altivec_vsldoi_8hi + || icode == CODE_FOR_altivec_vsldoi_16qi) { /* Only allow 4-bit unsigned literals. */ - case CODE_FOR_altivec_vsldoi_4sf: - case CODE_FOR_altivec_vsldoi_4si: - case CODE_FOR_altivec_vsldoi_8hi: - case CODE_FOR_altivec_vsldoi_16qi: if (TREE_CODE (arg2) != INTEGER_CST || TREE_INT_CST_LOW (arg2) & ~0xf) { error ("argument 3 must be a 4-bit unsigned literal"); return const0_rtx; } - break; - default: - break; } if (target == 0