From 19e057e7cc47115ea89f5d222baaae41e0084f50 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 11 Sep 2019 18:20:57 +0000 Subject: [PATCH] Simplify the code. 2019-09-11 Michael Meissner * config/rs6000/predicates.md (non_add_cint_operand): Simplify the code. From-SVN: r275652 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/predicates.md | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 608f3b92600..7f7f6514c39 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-09-11 Michael Meissner + + * config/rs6000/predicates.md (non_add_cint_operand): Simplify the + code. + 2019-09-11 Nathan Sidwell * tree.h (MARK_TS_TYPE_NON_COMMON): New. diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md index 4e77063249a..9368bdd5a8f 100644 --- a/gcc/config/rs6000/predicates.md +++ b/gcc/config/rs6000/predicates.md @@ -851,8 +851,7 @@ ;; Return 1 if OP is a constant but not a valid add_operand. (define_predicate "non_add_cint_operand" (and (match_code "const_int") - (match_test "!satisfies_constraint_I (op) - && !satisfies_constraint_L (op)"))) + (not (match_operand 0 "add_operand")))) ;; Return 1 if the operand is a constant that can be used as the operand ;; of an AND, OR or XOR. -- 2.30.2