summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr41019.c
blob: a6a2f4ee216fd48f19934a0f3cb2209bbc97cebe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do run } */
/* { dg-options "-O2 -msse2 -ftree-vectorize" } */
/* { dg-require-effective-target sse2 } */

#include "sse2-check.h"

long long int a[64];

void
sse2_test (void)
{
  int k;

  for (k = 0; k < 64; k++)
    a[k] = a[k] != 5 ? 12 : 10;

  for (k = 0; k < 64; k++)
    if (a[k] != 12)
      abort ();
}