public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [SPARC] Use match_test rather than eq/ne symbol_ref
@ 2011-09-13 18:25 Richard Sandiford
  2011-09-13 20:18 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Sandiford @ 2011-09-13 18:25 UTC (permalink / raw)
  To: gcc-patches; +Cc: rth, davem, jakub, ebotcazou

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

Richard


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

Index: gcc/config/sparc/sparc.md
===================================================================
--- gcc/config/sparc/sparc.md	2011-09-13 18:43:39.000000000 +0100
+++ gcc/config/sparc/sparc.md	2011-09-13 19:05:10.000000000 +0100
@@ -218,10 +218,10 @@ (define_attr "length" ""
 	 (eq_attr "branch_type" "fcc")
 	   (if_then_else (match_operand 0 "fcc0_register_operand" "")
 	     (if_then_else (eq_attr "empty_delay_slot" "true")
-	       (if_then_else (eq (symbol_ref "TARGET_V9") (const_int 0))
+	       (if_then_else (not (match_test "TARGET_V9"))
 		 (const_int 3)
 		 (const_int 2))
-	       (if_then_else (eq (symbol_ref "TARGET_V9") (const_int 0))
+	       (if_then_else (not (match_test "TARGET_V9"))
 		 (const_int 2)
 		 (const_int 1)))
 	     (if_then_else (lt (pc) (match_dup 2))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [SPARC] Use match_test rather than eq/ne symbol_ref
  2011-09-13 18:25 [SPARC] Use match_test rather than eq/ne symbol_ref Richard Sandiford
@ 2011-09-13 20:18 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-09-13 20:18 UTC (permalink / raw)
  To: rdsandiford; +Cc: gcc-patches, rth, jakub, ebotcazou

From: Richard Sandiford <rdsandiford@googlemail.com>
Date: Tue, 13 Sep 2011 19:06:20 +0100

> As per the subject.  Tested by making sure that there were no new
> warnings building sparc-linux-gnu, and that there were no changes
> in the assembly output for the C and C++ testsuite.  OK to install?
> 
> Richard
> 
> 
> gcc/
> 	* config/sparc/sparc.md: Use match_test rather than eq/ne symbol_ref
> 	throughout file.

Looks good to me.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-09-13 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-13 18:25 [SPARC] Use match_test rather than eq/ne symbol_ref Richard Sandiford
2011-09-13 20:18 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).