diff options
author | Jeff Law <law@redhat.com> | 2018-12-03 08:21:15 -0700 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-12-03 08:21:15 -0700 |
commit | 509f987074e247f84afbd37af0d13a9179870d74 (patch) | |
tree | 6e23cba8be567da93ada7e118a2a5fc3d8f55e61 | |
parent | bbb10360f33fe69c249ea6d4d4e734cb408bac61 (diff) | |
download | gcc-509f987074e247f84afbd37af0d13a9179870d74.zip gcc-509f987074e247f84afbd37af0d13a9179870d74.tar.gz gcc-509f987074e247f84afbd37af0d13a9179870d74.tar.bz2 |
h8300.md (low byte masking peepholes): Only accept nonimmediate_operand for the to-be-masked operand.
* config/h8300/h8300.md (low byte masking peepholes): Only accept
nonimmediate_operand for the to-be-masked operand.
From-SVN: r266744
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.md | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bde3cd4..be0aab2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-03 Jeff Law <law@redhat.com> + + * config/h8300/h8300.md (low byte masking peepholes): Only accept + nonimmediate_operand for the to-be-masked operand. + 2018-12-03 Richard Biener <rguenther@suse.de> * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Only diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index b3ba7e0..9e8f715 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -4647,7 +4647,7 @@ (define_peephole2 [(set (match_operand:SI 0 "register_operand" "") - (match_operand:SI 1 "general_operand" "")) + (match_operand:SI 1 "nonimmediate_operand" "")) (set (match_dup 0) (and:SI (match_dup 0) (const_int 255)))] @@ -4666,7 +4666,7 @@ (define_peephole2 [(set (match_operand 0 "register_operand" "") - (match_operand 1 "general_operand" "")) + (match_operand 1 "nonimmediate_operand" "")) (set (match_operand:SI 2 "register_operand" "") (and:SI (match_dup 2) (match_operand:SI 3 "const_int_qi_operand" "")))] |