1 /* Test that __builtin_prefetch does no harm.
3 Use addresses that are unlikely to be word-aligned. Some targets
4 have alignment requirements for prefetch addresses, so make sure the
5 compiler takes care of that. This fails if it aborts, anything else
21 __builtin_prefetch (p
, 0, 0);
25 arg_idx (char *p
, int i
)
27 __builtin_prefetch (&p
[i
], 0, 0);
33 __builtin_prefetch (ptr
, 0, 0);
39 __builtin_prefetch (&ptr
[idx
], 0, 0);
45 __builtin_prefetch (&s
.b
, 0, 0);
46 __builtin_prefetch (&s
.c
[1], 0, 0);