aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr59405.c
blob: 1136e2e4501773050c2005d95e347ac8a1f904c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do run } */
/* { dg-options "-mmmx -mfpmath=387" } */

#include "mmx-check.h"

#include <mmintrin.h>

typedef float float32x2_t __attribute__ ((vector_size (8)));

float
foo32x2_be (float32x2_t x)
{
  _mm_empty ();
  return x[1];
}

static void
mmx_test (void)
{
  float32x2_t b = { 0.0f, 1.0f };

  if (foo32x2_be (b) != 1.0f)
    abort ();
}