[MICROBLAZE] Use match_test rather than eq/ne symbol_ref

Richard Sandiford rdsandiford@googlemail.com
Tue Sep 13 18:02:00 GMT 2011


As per the subject.  Tested by making sure that there were no new
warnings building microblaze-elf, and that there were no changes
in the assembly output for the C and C++ testsuite.  OK to install?

Richard


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

Index: gcc/config/microblaze/microblaze.md
===================================================================
--- gcc/config/microblaze/microblaze.md	2011-09-13 18:43:39.000000000 +0100
+++ gcc/config/microblaze/microblaze.md	2011-09-13 18:57:23.000000000 +0100
@@ -351,7 +351,7 @@ (automata_option "progress")
 ;;----------------------------------------------------------------
 (define_delay (eq_attr "type" "branch,call,jump")
   [(and (eq_attr "type" "!branch,call,jump,icmp,multi,no_delay_arith,no_delay_load,no_delay_store,no_delay_imul,no_delay_move,darith") 
-        (ior (eq (symbol_ref "microblaze_no_unsafe_delay") (const_int 0))
+        (ior (not (match_test "microblaze_no_unsafe_delay"))
              (eq_attr "type" "!fadd,frsub,fmul,fdiv,fcmp,store,load")
              ))
   (nil) (nil)])



More information about the Gcc-patches mailing list