public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-4618] testsuite: Adjust pr22076.c to avoid compile-time optimization [PR102840]
@ 2021-10-21 18:58 Uros Bizjak
0 siblings, 0 replies; only message in thread
From: Uros Bizjak @ 2021-10-21 18:58 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:6aceeb3fb64b0e82fc3301026669062797ec01a5
commit r12-4618-g6aceeb3fb64b0e82fc3301026669062797ec01a5
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Thu Oct 21 20:57:38 2021 +0200
testsuite: Adjust pr22076.c to avoid compile-time optimization [PR102840]
2021-10-21 Uroš Bizjak <ubizjak@gmail.com>
PR testsuite/102840
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr22076.c: Adjust to avoid compile time optimization.
Diff:
---
gcc/testsuite/gcc.target/i386/pr22076.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/testsuite/gcc.target/i386/pr22076.c b/gcc/testsuite/gcc.target/i386/pr22076.c
index 427ffcd4920..766b732c681 100644
--- a/gcc/testsuite/gcc.target/i386/pr22076.c
+++ b/gcc/testsuite/gcc.target/i386/pr22076.c
@@ -1,9 +1,9 @@
/* { dg-do compile } */
-/* { dg-options "-O2 -fomit-frame-pointer -mmmx -mno-sse2" } */
+/* { dg-options "-O2 -fomit-frame-pointer -mmmx -msse -mno-sse2" } */
/* { dg-additional-options "-fno-common" { target *-*-darwin* } } */
/* { dg-additional-options "-mdynamic-no-pic" { target { ia32 && *-*-darwin* } } } */
-#include <mmintrin.h>
+#include <xmmintrin.h>
__m64 x;
@@ -12,7 +12,7 @@ void test ()
__m64 mm0 = (__m64)(__v8qi) {1,2,3,4,5,6,7,8};
__m64 mm1 = (__m64)(__v8qi) {11,22,33,44,55,66,77,88};
- x = _mm_add_pi8 (mm0, mm1);
+ x = _mm_sad_pu8 (mm0, mm1);
}
/* { dg-final { scan-assembler-times "movq" 2 } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-10-21 18:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-21 18:58 [gcc r12-4618] testsuite: Adjust pr22076.c to avoid compile-time optimization [PR102840] Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).