Debian Codegraph @

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

raw
1 // PR tree-optimization/112374
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-fcompare-debug -gno-statement-frontiers -O2" }
4 // { dg-additional-options "-march=skylake-avx512" { target i?86-*-* x86_64-*-* } }
5 // { dg-additional-options "-march=armv9-a" { target aarch64*-*-* } }
6
7 struct t
8 {
9 long coef[1];
10 t(const unsigned long &a) : coef{(long)a} {};
11 t(const t &a);
12 };
13 extern void gen_int_mode(t, int);
14 struct expand_vec_perm_d {
15 unsigned char perm[64];
16 int vmode;
17 unsigned char nelt;
18 };
19 void expand_vec_perm_blend(struct expand_vec_perm_d *d) {
20 unsigned long mask = 0;
21 for (unsigned i = 0; i < 4; ++i)
22 mask |= (d->perm[i] >= 4 ? 3 : 0) << (i * 2);
23 gen_int_mode(mask, 0);
24 }