blob: 017f5b4309aa5a670ce1261c73cabfed967237a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* PR rtl-optimization/89195 */
/* { dg-require-effective-target int32plus } */
struct S { unsigned i : 24; };
volatile unsigned char x;
__attribute__((noipa)) int
foo (struct S d)
{
return d.i & x;
}
int
main ()
{
struct S d = { 0x123456 };
x = 0x75;
if (foo (d) != (0x56 & 0x75))
__builtin_abort ();
return 0;
}
|