rs6000: Remove rs6000_cbranch_operator
authorSegher Boessenkool <segher@kernel.crashing.org>
Wed, 7 Jun 2017 15:06:53 +0000 (17:06 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Wed, 7 Jun 2017 15:06:53 +0000 (17:06 +0200)
rs6000_cbranch_operator now is just comparison_operator, so just use
that directly.

* config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
* config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
comparison_operator.

From-SVN: r248977

gcc/ChangeLog
gcc/config/rs6000/predicates.md
gcc/config/rs6000/rs6000.md

index 01c5e4c774afc16eb41e87baeba347d75c3db7ab..bce2601bbc95043ca5f5834c0efbf59e7e419943 100644 (file)
@@ -1,3 +1,9 @@
+2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
+       * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
+       comparison_operator.
+
 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
index dd961a7e9edc08b40bc5415020f326531a05bd72..11aecbd1b89c0cc226dd485da84ea4b7b81255d6 100644 (file)
                                                   GET_MODE (XEXP (op, 0))),
                          1"))))
 
-;; Return 1 if OP is a valid comparison operator for "cbranch" instructions.
-(define_predicate "rs6000_cbranch_operator"
-  (match_operand 0 "comparison_operator"))
-
 ;; Return 1 if OP is an unsigned comparison operator.
 (define_predicate "unsigned_comparison_operator"
   (match_code "ltu,gtu,leu,geu"))
index efca26cfd76a4712efe423e329891bf825e79be3..108ad8fed4dffa3f5ea8891c8846994c5777cdc8 100644 (file)
 ;; insns, and branches.
 
 (define_expand "cbranch<mode>4"
-  [(use (match_operator 0 "rs6000_cbranch_operator"
+  [(use (match_operator 0 "comparison_operator"
          [(match_operand:GPR 1 "gpc_reg_operand" "")
           (match_operand:GPR 2 "reg_or_short_operand" "")]))
    (use (match_operand 3 ""))]
 }")
 
 (define_expand "cbranch<mode>4"
-  [(use (match_operator 0 "rs6000_cbranch_operator"
+  [(use (match_operator 0 "comparison_operator"
          [(match_operand:FP 1 "gpc_reg_operand" "")
           (match_operand:FP 2 "gpc_reg_operand" "")]))
    (use (match_operand 3 ""))]
 })
 
 (define_expand "cstore<mode>4"
-  [(use (match_operator 1 "rs6000_cbranch_operator"
+  [(use (match_operator 1 "comparison_operator"
          [(match_operand:GPR 2 "gpc_reg_operand")
           (match_operand:GPR 3 "reg_or_short_operand")]))
    (clobber (match_operand:GPR 0 "gpc_reg_operand"))]
 })
 
 (define_expand "cstore<mode>4"
-  [(use (match_operator 1 "rs6000_cbranch_operator"
+  [(use (match_operator 1 "comparison_operator"
          [(match_operand:FP 2 "gpc_reg_operand")
           (match_operand:FP 3 "gpc_reg_operand")]))
    (clobber (match_operand:SI 0 "gpc_reg_operand"))]