[Bug testsuite/117494] pr101145inf.c fails on RISC-V without V extension (and maybe other architectures with a CPU lacking vector extension)

2024-11-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117494

--- Comment #5 from GCC Commits  ---
The trunk branch has been updated by Andrew Pinski :

https://gcc.gnu.org/g:0dc389f21bfd4ee49d57bcfaa1d1936456c55e48

commit r15-5377-g0dc389f21bfd4ee49d57bcfaa1d1936456c55e48
Author: Andrew Pinski 
Date:   Sun Nov 17 13:40:22 2024 -0800

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 

[Bug testsuite/117494] pr101145inf.c fails on RISC-V without V extension (and maybe other architectures with a CPU lacking vector extension)

2024-11-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117494

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |FIXED
   Target Milestone|--- |15.0
 Status|ASSIGNED|RESOLVED

--- Comment #6 from Andrew Pinski  ---
Fixed.

[Bug testsuite/117494] pr101145inf.c fails on RISC-V without V extension (and maybe other architectures with a CPU lacking vector extension)

2024-11-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117494

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||patch
URL||https://gcc.gnu.org/piperma
   ||il/gcc-patches/2024-Novembe
   ||r/669206.html

--- Comment #4 from Andrew Pinski  ---
Patch submitted:
https://gcc.gnu.org/pipermail/gcc-patches/2024-November/669206.html

I made sure it was still working correctly on x86_64.

[Bug testsuite/117494] pr101145inf.c fails on RISC-V without V extension (and maybe other architectures with a CPU lacking vector extension)

2024-11-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117494

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
 Ever confirmed|0   |1
   Last reconfirmed||2024-11-17

--- Comment #3 from Andrew Pinski  ---
Mine. Well at least I have a fix for the `dg-do run`. I will file a seperate
bug for the check_vect issue.

[Bug testsuite/117494] pr101145inf.c fails on RISC-V without V extension (and maybe other architectures with a CPU lacking vector extension)

2024-11-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117494

--- Comment #2 from Andrew Pinski  ---
Created attachment 59614
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59614&action=edit
Fix I think

This should fix it. signal is the check that is needed here rather than
`*-*-linux* *-*-gnu* *-*-uclinux* `.

Plus I added check_vect. Note riscv didn't update tree-vect.h's check_vect ...

[Bug testsuite/117494] pr101145inf.c fails on RISC-V without V extension (and maybe other architectures with a CPU lacking vector extension)

2024-11-08 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117494

Richard Biener  changed:

   What|Removed |Added

 CC||guojiufu at gcc dot gnu.org

--- Comment #1 from Richard Biener  ---
the main() lacks a check_vect() call and /* { dg-do run } */ shouldn't be used
in vect.exp