Fix pr20601-1.c on the H8
authorJeff Law <law@redhat.com>
Wed, 27 May 2020 04:14:40 +0000 (22:14 -0600)
committerJeff Law <law@redhat.com>
Wed, 27 May 2020 04:17:15 +0000 (22:17 -0600)
gcc/
* config/h8300/testcompare.md (tst_extzv_1_n): Do not accept constants
for the primary input operand.
(tstsi_variable_bit_qi): Similarly.

gcc/config/h8300/testcompare.md

index 2e4cb5afee746f8458b5c67931538913fb6230db..118db145a8aa67b55e4acd08adf6d6ed95168869 100644 (file)
@@ -9,7 +9,7 @@
                                  (match_operand 1 "const_int_operand" "n,n,n"))
                 (const_int 0)))
    (clobber (match_scratch:QI 2 "=X,X,&r"))]
-  ""
+  "!CONSTANT_P (operands[0])"
   "@
    btst\\t%Z1,%Y0
    btst\\t%Z1,%Y0
@@ -82,7 +82,7 @@
                                          (const_int 7)))
                 (const_int 0)))
    (clobber (match_scratch:QI 2 "=X,X,&r"))]
-  ""
+  "!CONSTANT_P (operands[0])"
   "@
    btst\\t%w1,%X0
    btst\\t%w1,%X0