The selftest doesn't actually need the subreg and
on some targets where QI and HI are not tiable
the selftest ICEs.
Fix bootstrap for those targets by just not using
a subreg.
Bootstrapped Regtested on aarch64-none-linux-gnu,
arm-none-linux-gnueabihf, x86_64-pc-linux-gnu
-m32, -m64 and no issues.
Pushed as obvious (and it's a testcase)
Thanks,
Tamar
gcc/ChangeLog:
PR middle-end/128620
* final.cc (test_output_operand_modifier_operand): Remove subreg.
---
--
diff --git a/gcc/final.cc b/gcc/final.cc
index
224f0835a266a93d0a49d5e54f0b83aa8fd7e3ee..1ca754146e47659cf4a0dee3eeaae37e2ae8267f
100644
--- a/gcc/final.cc
+++ b/gcc/final.cc
@@ -4794,8 +4794,7 @@ test_referenced_operands ()
static void
test_output_operand_modifier_operand ()
{
- rtx operands[] = { GEN_INT (10),
- gen_lowpart_SUBREG (QImode, gen_rtx_REG (HImode, 0)) };
+ rtx operands[] = { GEN_INT (10), gen_rtx_REG (QImode, 0) };
auto_vec<unsigned long, 2> opnums;
opnums.safe_push (1);
opnums.safe_push (0);