aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2020-05-26 22:14:40 -0600
committerJeff Law <law@redhat.com>2020-05-26 22:17:15 -0600
commitbc48456d085d4ab8be92cf5369624dd86317cecb (patch)
treedcf6cf42164ef1de515a1ed4b2a523b6e338d374
parentbf40f0ba95037f235b007a55a7682646a0578b26 (diff)
downloadgcc-bc48456d085d4ab8be92cf5369624dd86317cecb.zip
gcc-bc48456d085d4ab8be92cf5369624dd86317cecb.tar.gz
gcc-bc48456d085d4ab8be92cf5369624dd86317cecb.tar.bz2
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.
-rw-r--r--gcc/config/h8300/testcompare.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/h8300/testcompare.md b/gcc/config/h8300/testcompare.md
index 2e4cb5a..118db14 100644
--- a/gcc/config/h8300/testcompare.md
+++ b/gcc/config/h8300/testcompare.md
@@ -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