aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/pr55281.C
blob: 7076a19c836b35cee4c8d5e814dca25f6538993b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR tree-optimization/55281
// { dg-do compile }
// { dg-options "-Ofast" }

typedef float VF __attribute__((vector_size (16)));

VF x;

void
foo (void)
{
  VF a, b, c;
  a = (VF) { 1.0, 2.0, 3.0, 4.0 };
  b = (VF) { 5.0, 6.0, 7.0, 8.0 };
  c = (VF) { 0.0, 0.0, 0.0, 0.0 };
  x = c == ((VF) { 0.0, 0.0, 0.0, 0.0 }) ? a : b;
}