2 /* { dg-options "-Os" } */
7 char do_reverse_endian
= 0;
9 # define my_bswap_32(x) \
10 ((((x) & 0xff000000) >> 24) | \
11 (((x) & 0x00ff0000) >> 8) | \
12 (((x) & 0x0000ff00) << 8) | \
13 (((x) & 0x000000ff) << 24))
18 if (!do_reverse_endian) { __res = (X); \
19 } else if (sizeof(X) == 4) { __res = my_bswap_32((X)); \
24 void __attribute__((noinline
)) X(char **phdr
, char **data
, int *phoff
)
26 *phdr
= *data
+ EGET(*phoff
);
32 char *data
= (char *)0x40164000;
34 X(&phdr
, &data
, &phoff
);
35 if (phdr
!= (char *)0x40164034)