]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa.md: Revert change to use ordered_comparison_operator instead of...
authorJohn David Anglin <danglin@gcc.gnu.org>
Mon, 6 Jan 2020 23:52:55 +0000 (23:52 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Mon, 6 Jan 2020 23:52:55 +0000 (23:52 +0000)
* config/pa/pa.md: Revert change to use ordered_comparison_operator
instead of cmpib_comparison_operator in cmpib patterns.
* config/pa/predicates.md (cmpib_comparison_operator): Revert removal
of cmpib_comparison_operator.  Revise comment.

From-SVN: r279928

gcc/ChangeLog
gcc/config/pa/pa.md
gcc/config/pa/predicates.md

index 6c0c09d7dca93a7fc88cdfc2e529ac8e70df2925..8118f90bae3a1cc01454bff8a20d108ded7450ce 100644 (file)
@@ -1,3 +1,10 @@
+2020-01-06  John David Anglin  <danglin@gcc.gnu.org>
+
+       * config/pa/pa.md: Revert change to use ordered_comparison_operator
+       instead of cmpib_comparison_operator in cmpib patterns.
+       * config/pa/predicates.md (cmpib_comparison_operator): Revert removal
+       of cmpib_comparison_operator.  Revise comment.
+
 2020-01-01  John David Anglin  <danglin@gcc.gnu.org>
 
        PR target/67834
index aa18937bea9db1151330b9ef179c51f6a4a852eb..18f8e127d3d4725181eafd8c9a48bb985a05a2ec 100644 (file)
 (define_insn ""
   [(set (pc)
        (if_then_else
-        (match_operator 3 "ordered_comparison_operator"
+        (match_operator 3 "cmpib_comparison_operator"
                         [(match_operand:DI 1 "reg_or_0_operand" "rM")
                          (match_operand:DI 2 "arith5_operand" "rL")])
         (label_ref (match_operand 0 "" ""))
 (define_insn ""
   [(set (pc)
        (if_then_else
-        (match_operator 3 "ordered_comparison_operator"
+        (match_operator 3 "cmpib_comparison_operator"
                         [(match_operand:DI 1 "reg_or_0_operand" "rM")
                          (match_operand:DI 2 "arith5_operand" "rL")])
         (pc)
index 70824b96bbe756bd60b8f057fae100ad265e594f..25247f1f0e89854d8fa18765263043bc43c3614a 100644 (file)
   (and (match_code "symbol_ref")
        (match_test "SYMBOL_REF_TLS_MODEL (op) == TLS_MODEL_LOCAL_EXEC")))
 
+;; True iff OP is an operator suitable for use in a double-word cmpib
+;; instruction.
+
+(define_predicate "cmpib_comparison_operator"
+  (match_code "eq,ne,lt,le,leu,gt,gtu,ge"))
+
 ;; True iff OP is an operator suitable for use in a movb instruction.
 
 (define_predicate "movb_comparison_operator"