Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr55281.C

raw
1 // PR tree-optimization/55281
2 // { dg-do compile }
3 // { dg-options "-Ofast" }
4
5 typedef float VF __attribute__((vector_size (16)));
6
7 VF x;
8
9 void
10 foo (void)
11 {
12 VF a, b, c;
13 a = (VF) { 1.0, 2.0, 3.0, 4.0 };
14 b = (VF) { 5.0, 6.0, 7.0, 8.0 };
15 c = (VF) { 0.0, 0.0, 0.0, 0.0 };
16 x = c == ((VF) { 0.0, 0.0, 0.0, 0.0 }) ? a : b;
17 }