]> gcc.gnu.org Git - gcc.git/commitdiff
i386.md (prefetch): Tidy.
authorRichard Henderson <rth@redhat.com>
Mon, 14 Jan 2002 23:35:28 +0000 (15:35 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 14 Jan 2002 23:35:28 +0000 (15:35 -0800)
        * config/i386/i386.md (prefetch): Tidy.
        (prefetch_3dnow): Fix locality operand.

From-SVN: r48856

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

index 0f70375f877ddf29c3ae3f5e1667f737c8e806a4..2a3fd19aa720479729ac5192259c3e6f4a01245d 100644 (file)
@@ -1,3 +1,8 @@
+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.
index c892fc183ce19517d542a8a6cfc1eadd002b65aa..f43860801cc9b3d42fb39f187887c7165c274797 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)
This page took 0.089544 seconds and 5 git commands to generate.