Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr118067.c

raw
1 /* { dg-do compile { target int128 } } */
2 /* { dg-options "-O -fno-split-wide-types -mavx512f" } */
3
4 typedef unsigned short U __attribute__((__vector_size__(64)));
5 typedef int V __attribute__((__vector_size__(64)));
6 typedef __int128 W __attribute__((__vector_size__(64)));
7
8 W
9 foo(U u, V v)
10 {
11 W w;
12 /* __asm__ volatile ("" : "=v"(w)); prevents the -Wuninitialized warning */
13 u[0] >>= 1;
14 v %= (V)w;
15 return (W)u + (W)v;
16 }