diff mbox

[IQ2000] Use match_test rather than eq/ne symbol_ref

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

Commit Message

Richard Sandiford Sept. 13, 2011, 5:53 p.m. UTC
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.

Comments

Nick Clifton Sept. 26, 2011, 12:29 p.m. UTC | #1
Hi Richard,

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

Approved - please apply.

Cheers
   Nick
diff mbox

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"))))