re PR middle-end/6205 (-O -fpmath=sse breaks visibility of register accumulated sum)
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Apr 2002 10:22:14 +0000 (12:22 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 18 Apr 2002 10:22:14 +0000 (12:22 +0200)
PR middle-end/6205
* config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
otherwise xorps.

From-SVN: r52464

gcc/ChangeLog
gcc/config/i386/i386.md

index 759efc3ea88e82a45c79105120f6c475e37775c0..b2ba0f77aa8ec1e6b2fd36f3d861ec572a9ac842 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-18  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/6205
+       * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
+       otherwise xorps.
+
 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
 
        * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
index 8b3ee78d78d861a2e43c895c827b3152f167f6dd..06ec26ef3f539cf6d63f67d1f8266c8db3e35a8a 100644 (file)
     case 4:
       return "mov{l}\t{%1, %0|%0, %1}";
     case 5:
-      return "pxor\t%0, %0";
+      if (TARGET_SSE2)
+       return "pxor\t%0, %0";
+      else
+       return "xorps\t%0, %0";
     case 6:
       if (TARGET_PARTIAL_REG_DEPENDENCY)
        return "movaps\t{%1, %0|%0, %1}";