diff mbox

[V850] Use match_test rather than eq/ne symbol_ref

Message ID 87k49c5naf.fsf@firetop.home
State New
Headers show

Commit Message

Richard Sandiford Sept. 13, 2011, 6:07 p.m. UTC
As per the subject.  Tested by making sure that there were no new
warnings building v850-elf, and that there were no changes in the
assembly output for the C and C++ testsuite.  OK to install?

Richard


gcc/
	* config/v850/v850.md: Use match_test rather than eq/ne symbol_ref
	throughout file.

Comments

Jeff Law Sept. 13, 2011, 6:14 p.m. UTC | #1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/13/11 12:07, Richard Sandiford wrote:
> As per the subject.  Tested by making sure that there were no new 
> warnings building v850-elf, and that there were no changes in the 
> assembly output for the C and C++ testsuite.  OK to install?
> 
> Richard
> 
> 
> gcc/ * config/v850/v850.md: Use match_test rather than eq/ne
> symbol_ref throughout file.
OK.
jeff
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOb52cAAoJEBRtltQi2kC7ltQH/RpEt6FYhh5SCFpY/AKVrF5n
eOENOV8OB7tGF4+2nwgokUF/5bzY3ETLW/LOOD3bNxi6mKTgVUtf5M9NdNzYMHO5
W5quRMSp1cNlgnj/8Yjrp6l4PZlQejz/Tr3HrzHTdTU16Z9rpO4dKTzxDqaj55ih
dp9G/nzvrpT9o1zjcpNNt6sN4rlLbmojAPGONRxD2vshQRp0u/9ijZVk4SkNrMn9
Y8BwmvWAM3zpKyoZfPoi4qNWiMRaROz8/cv4uZy0RQMpHWb6xCTWkzdy7/c374kx
8JC3NmpilGGaFcn3wEELJzOQFAJSj4S63Hu2e+62vZhTOK3QJP+iFiHd/Tsy8vE=
=q+Gd
-----END PGP SIGNATURE-----
diff mbox

Patch

Index: gcc/config/v850/v850.md
===================================================================
--- gcc/config/v850/v850.md	2011-09-13 18:43:39.000000000 +0100
+++ gcc/config/v850/v850.md	2011-09-13 19:06:27.000000000 +0100
@@ -61,15 +61,15 @@  (define_attr "type" "load,store,bit1,mul
   (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")))
 
@@ -2460,7 +2460,7 @@  (define_insn "save_interrupt"
     }
 }"
   [(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")])
@@ -2492,7 +2492,7 @@  (define_insn "return_interrupt"
     }
 }"
   [(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")])
@@ -2586,7 +2586,7 @@  (define_insn "save_all_interrupt"
   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)
 	))
@@ -2685,7 +2685,7 @@  (define_insn "restore_all_interrupt"
   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)
 	))