Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr123523.c

raw
1 /* PR rtl-optimization/123523 */
2 /* { dg-do compile } */
3 /* { dg-options "-O -mavx512vl -mavx512bw" } */
4
5 typedef __attribute__((__vector_size__ (16))) short V;
6 typedef __attribute__((__vector_size__ (32))) short W;
7
8 char c;
9 W *p, *q;
10 short s;
11
12 void
13 bar (V v, int, int, int, int, int, int, void *)
14 {
15 W w = __builtin_ia32_psrlw256_mask ((W) { }, v, *p, 0);
16 short x = __builtin_ia32_pcmpgtw256_mask (w, *q, 0);
17 __builtin_mul_overflow (x, c, &s);
18 }
19
20 void
21 foo ()
22 {
23 bar ((V){0, -14}, 0, 0, 0, 0, 0, 0, q);
24 }