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

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

Comments

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

Richard


gcc/
	* config/iq2000/iq2000.md: Use match_test rather than eq/ne symbol_ref
	throughout file.
Nick Clifton - Sept. 26, 2011, 12:29 p.m.
Hi Richard,

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

Approved - please apply.

Cheers
   Nick

Patch

Index: gcc/config/iq2000/iq2000.md
===================================================================
--- gcc/config/iq2000/iq2000.md	2011-09-13 18:43:40.000000000 +0100
+++ gcc/config/iq2000/iq2000.md	2011-09-13 18:52:13.000000000 +0100
@@ -161,7 +161,7 @@  (define_attr "dslot" "has_dslot,ok_in_ds
 
 (define_attr "branch_likely" "no,yes"
   (const
-   (if_then_else (ne (symbol_ref "GENERATE_BRANCHLIKELY") (const_int 0))
+   (if_then_else (match_test "GENERATE_BRANCHLIKELY")
 		 (const_string "yes")
 		 (const_string "no"))))