[llvm-commits] [llvm-gcc-4.2] r46834 - /llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.c
Dale Johannesen
dalej at apple.com
Wed Feb 6 15:26:23 PST 2008
Author: johannes
Date: Wed Feb 6 17:26:23 2008
New Revision: 46834
URL: http://llvm.org/viewvc/llvm-project?rev=46834&view=rev
Log:
Make TARGET_PIM_ALTIVEC actually reflect -mpim-altivec.
This means vector constants using the PIM syntax will be
splatted as they're supposed to be, rather than zero-filled.
Modified:
llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.c
Modified: llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.c?rev=46834&r1=46833&r2=46834&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/rs6000/rs6000.c Wed Feb 6 17:26:23 2008
@@ -1486,8 +1486,11 @@
{
flag_disable_opts_for_faltivec = 1;
/* APPLE LOCAL radar 4161346 */
- target_flags |= (MASK_ALTIVEC | MASK_PIM_ALTIVEC);
+/* LLVM LOCAL begin handle -mpim-altivec correctly */
+ target_flags |= MASK_ALTIVEC;
}
+ target_flags |= MASK_PIM_ALTIVEC;
+/* LLVM LOCAL begin handle -mpim-altivec correctly */
}
/* APPLE LOCAL end AltiVec */
More information about the llvm-commits
mailing list