vis3move-3.c expects fsmuld, that is not available on all variants of sparc. Select a cpu that supports it for the test.
Now, -mfix-ut699 irrevocbly disables fsmuld, so skip the test if the test configuration uses that option. Regstrapped on x86_64-linux-gnu, also tested with gcc-14 targeting leon3-elf with -mfix-ut699. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/sparc/vis3move-3.c: Select ultrasparc. Skip with -mfix-ut699. --- gcc/testsuite/gcc.target/sparc/vis3move-3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/sparc/vis3move-3.c b/gcc/testsuite/gcc.target/sparc/vis3move-3.c index 3b2116eec0cb3..f32ca918bac91 100644 --- a/gcc/testsuite/gcc.target/sparc/vis3move-3.c +++ b/gcc/testsuite/gcc.target/sparc/vis3move-3.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target ilp32 } */ -/* { dg-options "-O1 -mvis3" } */ +/* { dg-skip-if "prevents fsmuld" { *-*-* } { "-mfix-ut699" } { "" } } */ +/* { dg-options "-O1 -mvis3 -mcpu=ultrasparc" } */ float fnegs (float a) { -- Alexandre Oliva, happy hacker https://FSFLA.org/blogs/lxo/ Free Software Activist GNU Toolchain Engineer More tolerance and less prejudice are key for inclusion and diversity Excluding neuro-others for not behaving ""normal"" is *not* inclusive