OSDN Git Service

* config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Jan 2005 18:08:40 +0000 (18:08 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 13 Jan 2005 18:08:40 +0000 (18:08 +0000)
        for converting the mask.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93606 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 9830cf5..820c63c 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 5bfa70a..cb73a18 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)
        {