]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix pr101145inf*.c testcases [PR117494]
authorAndrew Pinski <quic_apinski@quicinc.com>
Sun, 17 Nov 2024 21:40:22 +0000 (13:40 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Mon, 18 Nov 2024 07:44:41 +0000 (23:44 -0800)
commit0dc389f21bfd4ee49d57bcfaa1d1936456c55e48
tree7e5ee29ea6056d2c8d1a193a7a895750381d0a68
parent83e86397b0c1d97c24075793cc5311b48baa2907
testsuite: Fix pr101145inf*.c testcases [PR117494]

Instead of doing a dg-run with a specific target check for linux.
Use signal as the effective-target since this requires the use
of ALARM signal to do the testing.
Also use check_vect in the main and renames main to main1 to make sure
we don't use the registers.

Tested on x86_64-linux-gnu.

PR testsuite/117494
gcc/testsuite/ChangeLog:

* gcc.dg/vect/pr101145inf.c: Remove dg-do and replace
with dg-require-effective-target of signal.
* gcc.dg/vect/pr101145inf_1.c: Likewise.
* gcc.dg/vect/pr101145inf.inc: Rename main to main1
and mark as noinline.
Include tree-vect.h. Have main call check_vect and main1.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.dg/vect/pr101145inf.c
gcc/testsuite/gcc.dg/vect/pr101145inf.inc
gcc/testsuite/gcc.dg/vect/pr101145inf_1.c