rs6000.md: Use match_test rather than eq/ne symbol_ref throughout file.
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 14 Sep 2011 21:16:45 +0000 (21:16 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 14 Sep 2011 21:16:45 +0000 (21:16 +0000)
gcc/
* config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
throughout file.
* config/rs6000/constraints.md: Likewise.

From-SVN: r178866

gcc/ChangeLog
gcc/config/rs6000/constraints.md
gcc/config/rs6000/rs6000.md

index c30ec15d743a15acbd497721fe5278d66bc4a88a..c3888e5cb8575e1b3cd970315e1ac3dc0bf32e49 100644 (file)
@@ -1,3 +1,9 @@
+2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * config/rs6000/rs6000.md: Use match_test rather than eq/ne symbol_ref
+       throughout file.
+       * config/rs6000/constraints.md: Likewise.
+
 2011-09-14  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * config/microblaze/microblaze.md: Use match_test rather than
index 71b3b207ef8724370ce437a41938744119c1b5a2..ef80595f299cc5e925fc6595337827174f8dc9c3 100644 (file)
@@ -198,4 +198,4 @@ usually better to use @samp{m} or @samp{es} in @code{asm} statements)"
 
 (define_constraint "j"
   "Zero vector constant"
-  (match_test "(op == const0_rtx || op == CONST0_RTX (GET_MODE (op)))"))
+  (match_test "op == const0_rtx || op == CONST0_RTX (GET_MODE (op))"))
index 288f291162b5af10fc5d9a01ebdcf15191c517e7..818456f419398297e9c50cd800e2373269c229ae 100644 (file)
                (const_string "load")
            (eq_attr "alternative" "12")
                (const_string "store")
-           (ne (symbol_ref "TARGET_MFCRF") (const_int 0))
+           (match_test "TARGET_MFCRF")
                (const_string "mfcrf")
           ]
        (const_string "mfcr")))
     }
 }"
   [(set_attr "type" "store_ux,store_ux,*,load_ux,load_ux,*")
-   (set (attr "cell_micro") (if_then_else (eq (symbol_ref "TARGET_STRING") (const_int 1))
+   (set (attr "cell_micro") (if_then_else (match_test "TARGET_STRING")
                                          (const_string "always")
                                          (const_string "conditional")))])
 
   ""
   "mfcr %0%Q2\;{rlinm|rlwinm} %0,%0,%J1,1"
   [(set (attr "type")
-     (cond [(ne (symbol_ref "TARGET_MFCRF") (const_int 0))
+     (cond [(match_test "TARGET_MFCRF")
                (const_string "mfcrf")
           ]
        (const_string "mfcr")))
   "TARGET_POWERPC64"
   "mfcr %0%Q2\;{rlinm|rlwinm} %0,%0,%J1,1"
   [(set (attr "type")
-     (cond [(ne (symbol_ref "TARGET_MFCRF") (const_int 0))
+     (cond [(match_test "TARGET_MFCRF")
                (const_string "mfcrf")
           ]
        (const_string "mfcr")))
   return \"mfcr %0%Q2\;{rlinm|rlwinm} %0,%0,%4,%5,%5\";
 }"
   [(set (attr "type")
-     (cond [(ne (symbol_ref "TARGET_MFCRF") (const_int 0))
+     (cond [(match_test "TARGET_MFCRF")
                (const_string "mfcrf")
           ]
        (const_string "mfcr")))