1 /* PR rtl-optimization/63843 */
3 static inline __attribute__ ((always_inline
))
4 unsigned short foo (unsigned short v
)
6 return (v
<< 8) | (v
>> 8);
9 unsigned short __attribute__ ((noinline
, noclone
, hot
))
10 bar (unsigned char *x
)
14 __builtin_memcpy (&a
, &x
[0], sizeof (a
));
16 __builtin_memcpy (&x
[0], &a
, sizeof (a
));
17 __builtin_memcpy (&b
, &x
[2], sizeof (b
));
24 unsigned char x
[8] = { 0x01, 0x01, 0x01, 0x01 };
26 && sizeof (short) == 2
28 && bar (x
) != 0x8181U
)