blob: 0a0616dc6b515a59c8fe5f27bbd8b7c199a1633b (
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
|
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* volatile references should not produce load pair. */
/* { dg-final { scan-assembler-not "ldp\t" } } */
int f0(volatile int *a)
{
int b = a[0];
int c = a[1];
int d = a[2];
int e = a[3];
return b + c + d + e;
}
int f1(volatile int *a)
{
int b = a[1];
int c = a[0];
int d = a[2];
int e = a[3];
return b + c + d + e;
}
int f2(volatile int *a)
{
int b = a[1];
int c = a[0];
int d = a[3];
int e = a[2];
return b + c + d + e;
}
int f3(volatile int *a)
{
int b = a[1];
int c = a[3];
int d = a[0];
int e = a[2];
return b + c + d + e;
}
int f4(volatile int *a)
{
int b = a[1];
int c = a[3];
int d = a[2];
int e = a[0];
return b + c + d + e;
}
|