This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix x86-64 gcc.dg/simd-2.c


Blah.  Typo when changing things around to handle negv4sf.
No idea why this didn't crash for i686 too.


r~


        * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
        for converting the mask.

Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/i386.c,v
retrieving revision 1.775
diff -c -p -d -u -r1.775 i386.c
--- config/i386/i386.c	13 Jan 2005 17:51:30 -0000	1.775
+++ config/i386/i386.c	13 Jan 2005 18:06:40 -0000
@@ -8031,8 +8031,8 @@ ix86_expand_fp_absneg_operator (enum rtx
         lo = ~lo, hi = ~hi;
 
       /* Force this value into the low part of a fp vector constant.  */
-      mask = immed_double_const (lo, hi, mode == SFmode ? SImode : DImode);
-      mask = gen_lowpart (mode, mask);
+      mask = immed_double_const (lo, hi, elt_mode == SFmode ? SImode : DImode);
+      mask = gen_lowpart (elt_mode, mask);
 
       switch (mode)
 	{


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]