From: Uros Bizjak Date: Mon, 20 May 2019 22:24:38 +0000 (+0200) Subject: re PR testsuite/90503 (gcc.target/i386/pr22076.c FAILs) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8825d9aa0fb7ff30ce659efb4355cc578664033f;p=gcc.git re PR testsuite/90503 (gcc.target/i386/pr22076.c FAILs) PR testsuite/90503 * gcc.target/i386/pr22076.c (dg-options): Add -mno-sse2. Remove -flax-vector-conversions. (dg-additional-options): Remove. (test): Change to void. Declare m0 and m1 as __m64 and cast initializer in a proper way. Do not return result. (dg-final): Scan for 2 instances of movq. From-SVN: r271445 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dd3ffd4407e..f5174b049e1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -2,6 +2,11 @@ PR testsuite/90503 * gcc.target/i386/pr22076.c (dg-options): Add -mno-sse2. + Remove -flax-vector-conversions. + (dg-additional-options): Remove. + (test): Change to void. Declare m0 and m1 as __m64 and + cast initializer in a proper way. Do not return result. + (dg-final): Scan for 2 instances of movq. 2019-05-20 Marek Polacek diff --git a/gcc/testsuite/gcc.target/i386/pr22076.c b/gcc/testsuite/gcc.target/i386/pr22076.c index 8dbdf5fd403..6ce7696f237 100644 --- a/gcc/testsuite/gcc.target/i386/pr22076.c +++ b/gcc/testsuite/gcc.target/i386/pr22076.c @@ -1,19 +1,17 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fomit-frame-pointer -flax-vector-conversions -mmmx -mno-sse2" } */ -/* { dg-additional-options "-mno-vect8-ret-in-mem" { target *-*-vxworks* } } */ +/* { dg-options "-O2 -fomit-frame-pointer -mmmx -mno-sse2" } */ #include -__v8qi test () +__m64 x; + +void test () { - __v8qi mm0 = {1,2,3,4,5,6,7,8}; - __v8qi mm1 = {11,22,33,44,55,66,77,88}; - volatile __m64 x; + __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); - - return x; } -/* { dg-final { scan-assembler-times "movq" 3 } } */ +/* { dg-final { scan-assembler-times "movq" 2 } } */ /* { dg-final { scan-assembler-not "movl" { target nonpic } } } */