Fix pr20601-1.c on the H8

gcc/
	* config/h8300/testcompare.md (tst_extzv_1_n): Do not accept constants
	for the primary input operand.
	(tstsi_variable_bit_qi): Similarly.
This commit is contained in:
Jeff Law 2020-05-26 22:14:40 -06:00
parent bf40f0ba95
commit bc48456d08

View 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