blob: ac661a0e2a66745ba8571c643cb07272b7018fe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/* { dg-do assemble } */
/* { dg-options "-O" } */
void test_ldbio (unsigned char* p1, unsigned char* p2)
{
__builtin_ldbio (p1);
__builtin_ldbio (p2);
__builtin_ldbio (p2 + 1);
__builtin_ldbio (p2 + 2);
__builtin_ldbio (p2 + 2047);
__builtin_ldbio (p2 + 2048);
}
void test_ldbuio (unsigned char* p1, unsigned char* p2)
{
__builtin_ldbuio (p1);
__builtin_ldbuio (p2);
__builtin_ldbuio (p2 + 1);
__builtin_ldbuio (p2 + 2);
__builtin_ldbuio (p2 + 2047);
__builtin_ldbuio (p2 + 2048);
}
void test_ldhio (unsigned short* p1, unsigned short* p2)
{
__builtin_ldhio (p1);
__builtin_ldhio (p2);
__builtin_ldhio (p2 + 1);
__builtin_ldhio (p2 + 2);
__builtin_ldhio (p2 + 1023);
__builtin_ldhio (p2 + 1024);
}
void test_ldhuio (unsigned short* p1, unsigned short* p2)
{
__builtin_ldhuio (p1);
__builtin_ldhuio (p2);
__builtin_ldhuio (p2 + 1);
__builtin_ldhuio (p2 + 2);
__builtin_ldhuio (p2 + 1023);
__builtin_ldhuio (p2 + 1024);
}
void test_ldwio (unsigned int* p1, unsigned int* p2)
{
__builtin_ldwio (p1);
__builtin_ldwio (p2);
__builtin_ldwio (p2 + 1);
__builtin_ldwio (p2 + 2);
__builtin_ldwio (p2 + 511);
__builtin_ldwio (p2 + 512);
}
|