i386.c (ix86_expand_fp_absneg_operator): Use elt_mode for converting the mask.
authorRichard Henderson <rth@redhat.com>
Thu, 13 Jan 2005 18:08:40 +0000 (10:08 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 13 Jan 2005 18:08:40 +0000 (10:08 -0800)
        * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
        for converting the mask.

From-SVN: r93606

gcc/ChangeLog
gcc/config/i386/i386.c

index 9830cf54e3e51d84011b40a614ac43dce83c5161..820c63c1d5d630238130aa8a0eb9079ac189078d 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-13  Richard Henderson  <rth@redhat.com>
+
+       * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
+       for converting the mask.
+
 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
 
        * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
index 5bfa70a0c9f98a87b967ecfb01e1082b329ff28d..cb73a18e9150aa9362e8f5f7daa8e37fe94e507a 100644 (file)
@@ -8031,8 +8031,8 @@ ix86_expand_fp_absneg_operator (enum rtx_code code, enum machine_mode mode,
         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)
        {