]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [sparc] select ultrasparc for fsmuld test
authorAlexandre Oliva <oliva@adacore.com>
Fri, 7 Feb 2025 07:14:44 +0000 (04:14 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 7 Feb 2025 07:14:44 +0000 (04:14 -0300)
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.

for  gcc/testsuite/ChangeLog

* gcc.target/sparc/vis3move-3.c: Select ultrasparc.  Skip with
-mfix-ut699.

gcc/testsuite/gcc.target/sparc/vis3move-3.c

index 3b2116eec0cb358e8fa480f010344b094221404b..f32ca918bac913fd571d6e9f19a5961abdbe1a89 100644 (file)
@@ -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)
 {