Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / merge-1.c
blobd52568510965678bf4bf09d2aa47519a76def9b4
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -msse2" } */
4 #include <x86intrin.h>
6 void
7 f (double *r, __m128d x, __m128d y, __m128d z)
9 __m128d t=_mm_move_sd(x,y);
10 __m128d u=_mm_move_sd(t,z);
11 *r = u[0];
14 __m128d
15 g(__m128d x, __m128d y, __m128d z)
17 __m128d t=_mm_move_sd(x,y);
18 __m128d u=_mm_move_sd(t,z);
19 return u;
22 /* { dg-final { scan-assembler-times "movsd" 1 } } */