This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] rs6000: Give names to cbranch/creturn patterns

This gives a name to the conditional branch and conditional return
patterns, so that it looks neater in dumps and verbose asm.  Also, the
comment for conditional branch was out of date; this fixes it.



2018-08-17  Segher Boessenkool  <>

	* config/rs6000/ (*cbranch, *creturn): Name these patterns
	(they were unnamed before).  Fix comments.

 gcc/config/rs6000/ | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/gcc/config/rs6000/ b/gcc/config/rs6000/
index 57ee6d8..3f145f7 100644
--- a/gcc/config/rs6000/
+++ b/gcc/config/rs6000/
@@ -12315,11 +12315,10 @@ (define_insn_and_split "*nesi3_ext<mode>"
 		      (const_string "12")
 		      (const_string "16")))])
-;; Define both directions of branch and return.  If we need a reload
-;; register, we'd rather use CR0 since it is much easier to copy a
-;; register CC value to there.
+;; Conditional branches.
+;; These either are a single bc insn, or a bc around a b.
-(define_insn ""
+(define_insn "*cbranch"
   [(set (pc)
 	(if_then_else (match_operator 1 "branch_comparison_operator"
 				      [(match_operand 2 "cc_reg_operand" "y")
@@ -12339,7 +12338,8 @@ (define_insn ""
 		      (const_int 4)
 		      (const_int 8)))])
-(define_insn ""
+;; Conditional return.
+(define_insn "*creturn"
   [(set (pc)
 	(if_then_else (match_operator 0 "branch_comparison_operator"
 				      [(match_operand 1 "cc_reg_operand" "y")

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]