]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
SPARC: Make target-specific test more robust
authorEric Botcazou <ebotcazou@adacore.com>
Sun, 2 Nov 2025 21:21:49 +0000 (22:21 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Sun, 2 Nov 2025 21:22:55 +0000 (22:22 +0100)
The test is expected to pass on Solaris only.

gcc/testsuite/
* gcc.target/sparc/small-struct-1.c: Run only on Solaris.

gcc/testsuite/gcc.target/sparc/small-struct-1.c

index 4897288766b83b0443b08a5e83de99476c18bf13..1ceccd530449bb7e34d926d84108c41c9a3d6bea 100644 (file)
@@ -42,5 +42,5 @@ double get2x (struct vec2x v)
   return v.x + v.y;
 }
 
-/* { dg-final { scan-assembler-not "ldx" } } */
-/* { dg-final { scan-assembler-not "stx" } } */
+/* { dg-final { scan-assembler-not "ldx" { target *-*-solaris* } } } */
+/* { dg-final { scan-assembler-not "stx" { target *-*-solaris* } } } */