OSDN Git Service

48371978a9884376398c400a2b56d6718847c699
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / other / i386-1.C
1 /* { dg-do run { target i?86-*-* } } */
2 /* { dg-options "-march=pentium4" } */
3
4 #include <xmmintrin.h>
5 #include <stdio.h>
6
7 int main(int argc, char** argv) {
8   float a = 1.0f;
9   float b = 2.0f;
10   float c = 3.0f;
11   float r;
12   
13   __m128 v = _mm_set_ps(a, b, c, 0);
14   
15   v = (__m128)_mm_srli_si128((__m128i)v, 4);
16   _mm_store_ss(&r, v);
17   if (r != 3.0f)
18     abort ();
19   exit (0);
20 }