1 /* { dg-require-effective-target mmap } */
8 #define MMAP_SIZE 0x10000
9 #define ADDRESS 0x1122000000
10 #define TYPE unsigned short
13 #define MAP_ANONYMOUS MAP_ANON
16 void __attribute__((noinline
))
17 foo (TYPE
*__restrict a
, TYPE
*__restrict b
)
21 for (n
= 0; n
< COUNT
; n
++)
33 x
= mmap ((void *) ADDRESS
, MMAP_SIZE
, PROT_READ
| PROT_WRITE
,
34 MAP_PRIVATE
| MAP_ANONYMOUS
, -1, 0);
41 b_offset
= MMAP_SIZE
- (2 * COUNT
- 1) * sizeof (TYPE
);
42 foo ((unsigned short *) x
,
43 (unsigned short *) ((char *) x
+ b_offset
));