comparison gcc/testsuite/gcc.dg/pr90756.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* PR rtl-optimization/90756 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wno-psabi" } */
4 /* { dg-additional-options "-mno-sse" { target ia32 } } */
5
6 typedef float B __attribute__((vector_size(4 * sizeof (float))));
7 typedef unsigned long long C __attribute__((vector_size(4 * sizeof (long long))));
8 typedef short D __attribute__((vector_size(4 * sizeof (short))));
9 B z;
10 void foo (C);
11 C bar (D);
12 B baz ();
13 D qux (B);
14
15 void
16 quux (int x)
17 {
18 B n = z, b = z;
19 while (1)
20 switch (x)
21 {
22 case 0: n = baz (); /* FALLTHRU */
23 case 1: { B o = n; n = b; b = o; } /* FALLTHRU */
24 case 2: { D u = qux (b); C v = bar (u); foo (v); }
25 }
26 }