2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr59405.c
blob1136e2e4501773050c2005d95e347ac8a1f904c0
1 /* { dg-do run } */
2 /* { dg-options "-mmmx -mfpmath=387" } */
4 #include "mmx-check.h"
6 #include <mmintrin.h>
8 typedef float float32x2_t __attribute__ ((vector_size (8)));
10 float
11 foo32x2_be (float32x2_t x)
13 _mm_empty ();
14 return x[1];
17 static void
18 mmx_test (void)
20 float32x2_t b = { 0.0f, 1.0f };
22 if (foo32x2_be (b) != 1.0f)
23 abort ();