Debian Codegraph @

gcc/testsuite/gcc.dg/pr96453.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target lp64 } */
3 /* { dg-options "-Og -fno-early-inlining -fno-tree-ccp -fno-tree-dce" } */
4 /* { dg-additional-options "-mavx -mno-sse4.2" { target x86_64-*-* i?86-*-* } } */
5
6 typedef int __attribute__ ((__vector_size__ (16))) U;
7 typedef unsigned long __attribute__ ((__vector_size__ (16))) V;
8
9 static inline int
10 bar (unsigned long e, V f)
11 {
12 V g = f != e;
13 (union {U b;}){(U) g};
14 }
15
16 void
17 foo (void)
18 {
19 int j = bar (8, (V) { });
20 for (unsigned i;; i[&j])
21 ;
22 }