h8300.md (low byte masking peepholes): Only accept nonimmediate_operand for the to...
authorJeff Law <law@redhat.com>
Mon, 3 Dec 2018 15:21:15 +0000 (08:21 -0700)
committerJeff Law <law@gcc.gnu.org>
Mon, 3 Dec 2018 15:21:15 +0000 (08:21 -0700)
* config/h8300/h8300.md (low byte masking peepholes): Only accept
nonimmediate_operand for the to-be-masked operand.

From-SVN: r266744

gcc/ChangeLog
gcc/config/h8300/h8300.md

index bde3cd4f042a5f0bcff29bc387c281dfd170d0c3..be0aab2c876dcd81b99ea28759ca3f7dbab1fcbc 100644 (file)
@@ -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
index b3ba7e0f7190ccc519399ed69ca142327cc3e8c6..9e8f7159846912eee43f70630c9c4cb7cd36cfb7 100644 (file)
 
 (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)))]
 
 (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" "")))]