blob: de6289e2b8c40b958f41e8411e8f0dddd5ddd069 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
extern int g, h;
void f00u(int *s)
{
g = *s;
h = *s;
}
void f00r(int *restrict s)
{
g = *s;
h = *s;
}
void f01u(int *a, int *b, int *s)
{
*a = *s;
*b = *s;
}
void f01r(int *restrict a, int *restrict b, int *restrict s)
{
*a = *s;
*b = *s;
}
/*
* check-name: optim/restrict
* check-command: test-linearize -Wno-decl $file
* check-known-to-fail
*
* check-output-start
f00u:
.L0:
<entry-point>
load.32 %r2 <- 0[%arg1]
store.32 %r2 -> 0[g]
load.32 %r4 <- 0[%arg1]
store.32 %r4 -> 0[h]
ret
f00r:
.L2:
<entry-point>
load.32 %r6 <- 0[%arg1]
store.32 %r6 -> 0[g]
store.32 %r6 -> 0[h]
ret
f01u:
.L4:
<entry-point>
load.32 %r10 <- 0[%arg3]
store.32 %r10 -> 0[%arg1]
load.32 %r13 <- 0[%arg3]
store.32 %r13 -> 0[%arg2]
ret
f01r:
.L6:
<entry-point>
load.32 %r16 <- 0[%arg3]
store.32 %r16 -> 0[%arg1]
store.32 %r16 -> 0[%arg2]
ret
* check-output-end
*/
|