diff options
author | Michael Meissner <meissner@linux.ibm.com> | 2019-09-11 18:20:57 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2019-09-11 18:20:57 +0000 |
commit | 19e057e7cc47115ea89f5d222baaae41e0084f50 (patch) | |
tree | 200abfbcd725dde46f75f17baaf7a2f3699f566b /gcc | |
parent | a387d636cda7df27df2ad52c3947ef8d37f7aa46 (diff) | |
download | gcc-19e057e7cc47115ea89f5d222baaae41e0084f50.zip gcc-19e057e7cc47115ea89f5d222baaae41e0084f50.tar.gz gcc-19e057e7cc47115ea89f5d222baaae41e0084f50.tar.bz2 |
Simplify the code.
2019-09-11 Michael Meissner <meissner@linux.ibm.com>
* config/rs6000/predicates.md (non_add_cint_operand): Simplify the
code.
From-SVN: r275652
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/predicates.md | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 608f3b9..7f7f651 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-09-11 Michael Meissner <meissner@linux.ibm.com> + + * config/rs6000/predicates.md (non_add_cint_operand): Simplify the + code. + 2019-09-11 Nathan Sidwell <nathan@acm.org> * tree.h (MARK_TS_TYPE_NON_COMMON): New. diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md index 4e77063..9368bdd 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. |