1 /* { dg-do run { target { stdint_types } } } */
2 /* { dg-options "-O2" } */
7 void __attribute__ ((noinline
))
8 foo (uint64_t state
, uint32_t last
)
10 if (state
== last
) abort ();
13 /* This function may do a bad comparision by trying to
14 use SUBREGS during the compare on machines where comparing
15 two registers always compares the entire register regardless
18 int __attribute__ ((noinline
))
19 compare (uint64_t state
, uint32_t *last
, uint8_t buf
)
21 if (*last
== ((state
| buf
) & 0xFFFFFFFF)) {
29 main(int argc
, char **argv
) {
30 uint64_t state
= 0xF00000100U
;
31 uint32_t last
= 0x101U
;
32 int ret
= compare(state
, &last
, 0x01);