]> git.ipfire.org Git - thirdparty/gcc.git/commit
decay vect tests from run to link for pr95401
authorAlexandre Oliva <oliva@adacore.com>
Sun, 28 Apr 2024 07:29:54 +0000 (04:29 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sun, 28 Apr 2024 07:29:54 +0000 (04:29 -0300)
commit05d83334d5bbeae01d71080f1da524810d6740d9
tree53751056539c0a94a7595f99e5476ccf868a6720
parent83bc41e8364360b63eaa59c88e2fb499a6751233
decay vect tests from run to link for pr95401

When vect.exp finds our configuration disables altivec by default, it
disables the execution of vectorization tests, assuming the test
hardware doesn't support it.

Tests become just compile tests, but compile tests won't work
correctly when additional sources are named, e.g. pr95401.cc, because
GCC refuses to compile multiple files into the same asm output.

With this patch, the default for when execution is not possible
becomes link.

for  gcc/testsuite/ChangeLog

* lib/target-supports.exp (check_vect_support_and_set_flags):
Decay to link rather than compile.
gcc/testsuite/lib/target-supports.exp