Debian Codegraph @

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

raw
1 // PR rtl-optimization/80385
2 // { dg-do compile { target { i?86-*-* x86_64-*-* } } }
3 // { dg-options "-Ofast -msse2" }
4 // { dg-skip-if "requires hosted libstdc++ for cstdlib malloc" { ! hostedlib } }
5
6 #include <x86intrin.h>
7
8 __m128 a, e;
9 struct A { __m128 b; A (); A (__m128 x) : b(x) {} };
10 A operator+ (A, A);
11 A operator- (A) { __m128 c = -a; return c; }
12 A foo (A x) { __m128 d = x.b; return _mm_andnot_ps (d, e); }
13 struct B { A n[1]; };
14 void bar (B x) { A f = foo (x.n[0]); A g = f + A (); }
15 void baz () { B h; B i; A j; i.n[0] = -j; h = i; B k = h; bar (k); }