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 <polacek@redhat.com>
/* { 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 <mmintrin.h>
-__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 } } } */