Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr59405.c

raw
1 /* { dg-do run } */
2 /* { dg-options "-mmmx -mfpmath=387" } */
3
4 #include "mmx-check.h"
5
6 #include <mmintrin.h>
7
8 typedef float float32x2_t __attribute__ ((vector_size (8)));
9
10 float
11 foo32x2_be (float32x2_t x)
12 {
13 _mm_empty ();
14 return x[1];
15 }
16
17 static void
18 mmx_test (void)
19 {
20 float32x2_t b = { 0.0f, 1.0f };
21
22 if (foo32x2_be (b) != 1.0f)
23 abort ();
24 }