OSDN Git Service

* config/i386/i386.md (prefetch): Tidy.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jan 2002 23:35:28 +0000 (23:35 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jan 2002 23:35:28 +0000 (23:35 +0000)
        (prefetch_3dnow): Fix locality operand.

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

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

index 0f70375..2a3fd19 100644 (file)
@@ -1,5 +1,10 @@
 2002-01-14  Richard Henderson  <rth@redhat.com>
 
+       * config/i386/i386.md (prefetch): Tidy.
+       (prefetch_3dnow): Fix locality operand.
+
+2002-01-14  Richard Henderson  <rth@redhat.com>
+
        * config/mips/mips.h (HI_AND_FP_REGS): New register class.
        (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
 
index c892fc1..f438608 100644 (file)
 {
   int rw = INTVAL (operands[1]);
   int locality = INTVAL (operands[2]);
+
   if (rw != 0 && rw != 1)
     abort ();
   if (locality < 0 || locality > 3)
      (K6 machines).  Otherwise use SSE prefetch as it allows specifying
      of locality.  */
   if (TARGET_3DNOW && (!TARGET_PREFETCH_SSE || rw))
-    {
-      operands[2] = GEN_INT (3);
-    }
+    operands[2] = GEN_INT (3);
   else
-    {
-      operands[1] = const0_rtx;
-    }
+    operands[1] = const0_rtx;
 })
 
 (define_insn "*prefetch_sse"
 (define_insn "*prefetch_3dnow"
   [(prefetch (match_operand:SI 0 "address_operand" "p")
             (match_operand:SI 1 "const_int_operand" "n")
-            (const_int 0))]
+            (const_int 3))]
   "TARGET_3DNOW"
 {
   if (INTVAL (operands[1]) == 0)