gcc/
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Sep 2011 18:17:03 +0000 (18:17 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Sep 2011 18:17:03 +0000 (18:17 +0000)
* config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
throughout file.

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

gcc/ChangeLog
gcc/config/v850/v850.md

index 4ab3029..47a09ae 100644 (file)
@@ -1,5 +1,10 @@
 2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
 
+       * config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
+       throughout file.
+
+2011-09-13  Richard Sandiford  <rdsandiford@googlemail.com>
+
        * config/pa/pa.md: Use match_test rather than eq/ne symbol_ref
        throughout file.
 
index cae929d..6fdac70 100644 (file)
   (const_string "other"))
 
 (define_attr "cpu" "none,v850,v850e,v850e1,v850e2,v850e2v3"
-  (cond [(ne (symbol_ref "TARGET_V850") (const_int 0))
+  (cond [(match_test "TARGET_V850")
        (const_string "v850")
-       (ne (symbol_ref "TARGET_V850E") (const_int 0))
+       (match_test "TARGET_V850E")
        (const_string "v850e")
-       (ne (symbol_ref "TARGET_V850E1") (const_int 0))
+       (match_test "TARGET_V850E1")
        (const_string "v850e1")
-       (ne (symbol_ref "TARGET_V850E2") (const_int 0))
+       (match_test "TARGET_V850E2")
        (const_string "v850e2")
-       (ne (symbol_ref "TARGET_V850E2") (const_int 0))
+       (match_test "TARGET_V850E2")
        (const_string "v850e2v3")]
        (const_string "none")))
 
     }
 }"
   [(set (attr "length")
-        (if_then_else (ne (symbol_ref "TARGET_LONG_CALLS") (const_int 0))
+        (if_then_else (match_test "TARGET_LONG_CALLS")
                        (const_int 10)
                        (const_int 34)))
    (set_attr "cc" "clobber")])
     }
 }"
   [(set (attr "length")
-        (if_then_else (ne (symbol_ref "TARGET_LONG_CALLS") (const_int 0))
+        (if_then_else (match_test "TARGET_LONG_CALLS")
                        (const_int 4)
                        (const_int 24)))
    (set_attr "cc" "clobber")])
   return \"\";
 }"
   [(set (attr "length")
-        (if_then_else (ne (symbol_ref "TARGET_LONG_CALLS") (const_int 0))
+        (if_then_else (match_test "TARGET_LONG_CALLS")
                        (const_int 4)
                        (const_int 62)
        ))
   return \"\";
 }"
   [(set (attr "length")
-        (if_then_else (ne (symbol_ref "TARGET_LONG_CALLS") (const_int 0))
+        (if_then_else (match_test "TARGET_LONG_CALLS")
                        (const_int 4)
                        (const_int 62)
        ))