Patchwork [MN10300] Use match_test rather than eq/ne symbol_ref

login
register
mail settings
Submitter Richard Sandiford
Date Sept. 13, 2011, 5:59 p.m.
Message ID <87aaa8727q.fsf@firetop.home>
Download mbox | patch
Permalink /patch/114524/
State New
Headers show

Comments

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

Richard


gcc/
	* config/mn10300/mn10300.md: Use match_test rather than eq/ne
	symbol_ref throughout file.
Jeff Law - Sept. 13, 2011, 6:02 p.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/13/11 11:59, Richard Sandiford wrote:
> As per the subject.  Tested by making sure that there were no new 
> warnings building mn10300-elf, and that there were no changes in
> the assembly output for the C and C++ testsuite.  OK to install?
> 
> Richard
> 
> 
> gcc/ * config/mn10300/mn10300.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/

iQEcBAEBAgAGBQJOb5q+AAoJEBRtltQi2kC7J/oIALlSwY1QYVM2kC2SF+o06hcb
eAQQ2B8gnH/YCOZr5tlMcsXi5/0bwMnEet5EZUBKzUGIN3BQSLiyOXA8pQnXTVOz
kOZwnRh4p1NcxzOQXJSgn+6lkJ52lCCWU9DB4fbTTDu/UXQGLW0L4l7bCgy0pBOr
KswfEndyIdA2sUyArYtRqBMP0BQfPstZFWG6R5rpm3Pv2VjEmUru0yCollmwUv6a
hBeMEvz4KOk6drrST0NYDY384UM08gExUT4g4MUaEio13fTwey8tLYaiGHefaGWa
2RT5hhbPXdC2Av02Qmojttfrbtk3/adiingmVVPTh47BdQjxf5/1IvB9drtdzwo=
=9FGC
-----END PGP SIGNATURE-----

Patch

Index: gcc/config/mn10300/mn10300.md
===================================================================
--- gcc/config/mn10300/mn10300.md	2011-09-13 18:43:39.000000000 +0100
+++ gcc/config/mn10300/mn10300.md	2011-09-13 18:58:33.000000000 +0100
@@ -63,15 +63,15 @@  (define_attr "enabled" ""
          (const_int 1)
 
          (and (eq_attr "isa" "am33")
-	      (ne (symbol_ref "TARGET_AM33") (const_int 0)))
+	      (match_test "TARGET_AM33"))
          (const_int 1)
 
          (and (eq_attr "isa" "am33_2")
-	      (ne (symbol_ref "TARGET_AM33_2") (const_int 0)))
+	      (match_test "TARGET_AM33_2"))
          (const_int 1)
         
          (and (eq_attr "isa" "am34")
-	      (ne (symbol_ref "TARGET_AM34") (const_int 0)))
+	      (match_test "TARGET_AM34"))
          (const_int 1)
 	]
 	(const_int 0))