PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr78526.c
blob560e146a12926e1171879264640509041902a446
1 /* PR rtl-optimization/78526 */
2 /* { dg-do compile { target int128 } } */
3 /* { dg-options "-O -fno-tree-ccp -fno-tree-sra -g -w" } */
4 /* { dg-additional-options "-mavx512bw" { target i?86-*-* x86_64-*-* } } */
6 typedef unsigned U __attribute__ ((vector_size (64)));
7 typedef unsigned __int128 V __attribute__ ((vector_size (64)));
9 static inline V
10 bar (U u, U x, V v)
12 v = (V)(U) { 0, ~0 };
13 v[x[0]] <<= u[-63];
14 return v;
18 foo (U u)
20 return bar (u, (U) {}, (V) {});