summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr42881.c
blob: c8ad09d207b8404f63e093c53bd6e87e64e8e83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR target/42881 */
/* { dg-do run } */
/* { dg-options "-O0 -msse2" } */
/* { dg-require-effective-target sse2 } */

#include "sse2-check.h"
static void
sse2_test (void)
{
  double a[2];
  __m128d x = _mm_set1_pd(3);
  _mm_storeu_pd(a,x);
  if (a[0] != 3.0 || a[1] != 3.0)
    __builtin_abort ();
}