5 #define MMAP_SIZE 0x10000
6 #define ADDRESS 0x1122000000
7 #define TYPE unsigned short
10 #define MAP_ANONYMOUS MAP_ANON
13 void __attribute__((noinline
))
14 foo (TYPE
*__restrict a
, TYPE
*__restrict b
)
18 for (n
= 0; n
< COUNT
; n
++)
28 x
= mmap ((void *) ADDRESS
, MMAP_SIZE
, PROT_READ
| PROT_WRITE
,
29 MAP_PRIVATE
| MAP_ANONYMOUS
, -1, 0);
36 b_offset
= MMAP_SIZE
- (2 * COUNT
- 1) * sizeof (TYPE
);
37 foo ((unsigned short *) x
,
38 (unsigned short *) ((char *) x
+ b_offset
));
42 /* { dg-final { cleanup-tree-dump "vect" } } */