PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr80385.C
blobf18abc941f3f1fb490ea480c42dc5b15d275f59c
1 // PR rtl-optimization/80385
2 // { dg-do compile { target { i?86-*-* x86_64-*-* } } }
3 // { dg-options "-Ofast -msse2" }
5 #include <x86intrin.h>
7 __m128 a, e;
8 struct A { __m128 b; A (); A (__m128 x) : b(x) {} };
9 A operator+ (A, A);
10 A operator- (A) { __m128 c = -a; return c; }
11 A foo (A x) { __m128 d = x.b; return _mm_andnot_ps (d, e); }
12 struct B { A n[1]; };
13 void bar (B x) { A f = foo (x.n[0]); A g = f + A (); }
14 void baz () { B h; B i; A j; i.n[0] = -j; h = i; B k = h; bar (k); }