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
23 __builtin_prefetch (p
, 0, 0);
27 arg_idx (char *p
, int i
)
29 __builtin_prefetch (&p
[i
], 0, 0);
35 __builtin_prefetch (ptr
, 0, 0);
41 __builtin_prefetch (&ptr
[idx
], 0, 0);
47 __builtin_prefetch (&s
.b
, 0, 0);
48 __builtin_prefetch (&s
.c
[1], 0, 0);