From 6aceeb3fb64b0e82fc3301026669062797ec01a5 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 21 Oct 2021 20:57:38 +0200 Subject: [PATCH] testsuite: Adjust pr22076.c to avoid compile-time optimization [PR102840] MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2021-10-21 Uroš Bizjak PR testsuite/102840 gcc/testsuite/ChangeLog: * gcc.target/i386/pr22076.c: Adjust to avoid compile time optimization. --- 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 427ffcd..766b732 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 +#include __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 } } */ -- 2.7.4