aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2018-08-17 19:22:36 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2018-08-17 19:22:36 +0200
commit071db4aa1ff88244d87cb4600f23325c9a92042c (patch)
treebaf81f7cf2b32d0777e14b6a7219a237334be8d3 /gcc
parent10f04917abbc42e3717d33d9b5079aa4f9eb9ac5 (diff)
downloadgcc-071db4aa1ff88244d87cb4600f23325c9a92042c.zip
gcc-071db4aa1ff88244d87cb4600f23325c9a92042c.tar.gz
gcc-071db4aa1ff88244d87cb4600f23325c9a92042c.tar.bz2
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. * config/rs6000/rs6000.md (*cbranch, *creturn): Name these patterns (they were unnamed before). Fix comments. From-SVN: r263623
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.md10
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 17545dc..420b9ad 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-17 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * config/rs6000/rs6000.md (*cbranch, *creturn): Name these patterns
+ (they were unnamed before). Fix comments.
+
2018-08-17 Nathan Sidwell <nathan@acm.org>
* cppbuiltin.c: Include "cpplib.h", not "cpp-id-data.h".
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index c691952..d34fcf0 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -12254,11 +12254,10 @@
(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")
@@ -12278,7 +12277,8 @@
(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")