1 /* Check for ia64 data speculation failure with '-O2 -funroll-loops'. */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -funroll-loops -Wno-overflow" } */
6 extern void abort (void);
7 extern void exit (int);
12 static unsigned int s
= 1388815473;
15 return (s
/ 65536) % 2048;
20 struct S retme##S (struct S x) \
25 unsigned int fn1##S (unsigned int x) \
33 unsigned int fn2##S (unsigned int x) \
41 unsigned int retit##S (void) \
46 unsigned int fn3##S (unsigned int x) \
55 unsigned int mask, v, a, r; \
57 char *p = (char *) &s##S; \
58 for (i = 0; i < sizeof (s##S); ++i) \
60 if (__builtin_classify_type (s##S.l) == 8) \
69 if (x.i != s##S.i || x.j != s##S.j \
70 || x.k != s##S.k || x.l != s##S.l \
71 || ((v + a) & mask) != r) \
78 if (x.i != s##S.i || x.j != s##S.j \
79 || x.k != s##S.k || x.l != s##S.l \
80 || ((((v + a) & mask) % 15) & mask) != r) \
87 if (x.i != s##S.i || x.j != s##S.j \
88 || s##S.k != r || x.l != s##S.l \
89 || ((v + a) & mask) != r) \
93 #define pck __attribute__((packed))
94 struct pck A
{ unsigned short i
: 1, l
: 1, j
: 3, k
: 11; }; T(A
)
95 struct pck B
{ unsigned short i
: 4, j
: 1, k
: 11; unsigned int l
; }; T(B
)
96 struct pck C
{ unsigned int l
; unsigned short i
: 4, j
: 1, k
: 11; }; T(C
)
97 struct pck D
{ unsigned long long l
: 6, i
: 6, j
: 23, k
: 29; }; T(D
)
98 struct pck E
{ unsigned long long l
, i
: 12, j
: 23, k
: 29; }; T(E
)
99 struct pck F
{ unsigned long long i
: 12, j
: 23, k
: 29, l
; }; T(F
)
100 struct pck G
{ unsigned short i
: 1, j
: 1, k
: 6; unsigned long long l
; }; T(G
)
101 struct pck H
{ unsigned short i
: 6, j
: 2, k
: 8; unsigned long long l
; }; T(H
)
102 struct pck I
{ unsigned short i
: 1, j
: 6, k
: 1; unsigned long long l
; }; T(I
)
103 struct pck J
{ unsigned short i
: 1, j
: 8, k
: 7; unsigned short l
; }; T(J
)
104 struct pck K
{ unsigned int k
: 6, l
: 1, j
: 10, i
: 15; }; T(K
)
105 struct pck L
{ unsigned int k
: 6, j
: 11, i
: 15; unsigned int l
; }; T(L
)
106 struct pck M
{ unsigned int l
; unsigned short k
: 6, j
: 11, i
: 15; }; T(M
)
107 struct pck N
{ unsigned long long l
: 6, k
: 6, j
: 23, i
: 29; }; T(N
)
108 struct pck O
{ unsigned long long l
, k
: 12, j
: 23, i
: 29; }; T(O
)
109 struct pck P
{ unsigned long long k
: 12, j
: 23, i
: 29, l
; }; T(P
)
110 struct pck Q
{ unsigned short k
: 12, j
: 1, i
: 3; unsigned long long l
; }; T(Q
)
111 struct pck R
{ unsigned short k
: 2, j
: 11, i
: 3; unsigned long long l
; }; T(R
)
112 struct pck S
{ unsigned short k
: 1, j
: 6, i
: 9; unsigned long long l
; }; T(S
)
113 struct pck T
{ unsigned short k
: 1, j
: 8, i
: 7; unsigned short l
; }; T(T
)
114 struct pck U
{ unsigned short j
: 6, k
: 1, i
: 9; unsigned long long l
; }; T(U
)
115 struct pck V
{ unsigned short j
: 8, k
: 1, i
: 7; unsigned short l
; }; T(V
)
116 struct pck W
{ long double l
; unsigned int k
: 12, j
: 13, i
: 7; }; T(W
)
117 struct pck X
{ unsigned int k
: 12, j
: 13, i
: 7; long double l
; }; T(X
)
118 struct pck Y
{ unsigned int k
: 12, j
: 11, i
: 9; long double l
; }; T(Y
)
119 struct pck Z
{ long double l
; unsigned int j
: 13, i
: 7, k
: 12; }; T(Z
)