aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-11-28 14:54:42 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2024-11-28 15:00:40 +0100
commit32a3f46ca543726196371a6f2a5d06feb31aa92d (patch)
tree8ffdb1de291a39059bd8919a18358bc1fd9a5fc8 /gcc
parent3e8d3079c31567d3e9f43cc2cb100ddef25f48a2 (diff)
downloadgcc-32a3f46ca543726196371a6f2a5d06feb31aa92d.zip
gcc-32a3f46ca543726196371a6f2a5d06feb31aa92d.tar.gz
gcc-32a3f46ca543726196371a6f2a5d06feb31aa92d.tar.bz2
testsuite: Fix up pr116675.c test [PR116675]
The test uses dg-do run and scan-assembler* at the same time, that obviously doesn't work when pr116675.s isn't created at all, so one gets PASS: gcc.target/i386/pr116675.c execution test gcc.target/i386/pr116675.c: output file does not exist UNRESOLVED: gcc.target/i386/pr116675.c scan-assembler-times pand 4 gcc.target/i386/pr116675.c: output file does not exist UNRESOLVED: gcc.target/i386/pr116675.c scan-assembler-times pandn 4 gcc.target/i386/pr116675.c: output file does not exist UNRESOLVED: gcc.target/i386/pr116675.c scan-assembler-times por 4 The usual way to handle that is adding -save-temps option. The test FAILs after that change though, for simple reason, the pand regex doesn't match just pand instructions, but also the pandn ones. I've added \t there to make sure it matches only pand. Though, wonder if it wouldn't be safer to split the test into two, one with just the 4 functions (why noinline, noclone rather than noipa, btw?), that one would be dg-do compile and have the scan-assembler* directives, and then another one which includes the first one and is dg-do run and contains the runtime checking of those. In any case, I've committed this as obvious. 2024-11-28 Jakub Jelinek <jakub@redhat.com> PR target/116675 * gcc.target/i386/pr116675.c: Add -save-temps to dg-options. Scan for pand\t rather than pand.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/i386/pr116675.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr116675.c b/gcc/testsuite/gcc.target/i386/pr116675.c
index e463dd8..f108b68 100644
--- a/gcc/testsuite/gcc.target/i386/pr116675.c
+++ b/gcc/testsuite/gcc.target/i386/pr116675.c
@@ -1,6 +1,6 @@
/* { dg-do run } */
-/* { dg-options "-O2 -msse2 -mno-ssse3" } */
-/* { dg-final { scan-assembler-times "pand" 4 } } */
+/* { dg-options "-O2 -msse2 -mno-ssse3 -save-temps" } */
+/* { dg-final { scan-assembler-times "pand\t" 4 } } */
/* { dg-final { scan-assembler-times "pandn" 4 } } */
/* { dg-final { scan-assembler-times "por" 4 } } */