URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
696 |
jeremybenn |
-- { dg-do compile }
|
2 |
|
|
-- { dg-options "-fdump-tree-gimple" }
|
3 |
|
|
|
4 |
|
|
with Atomic6_Pkg; use Atomic6_Pkg;
|
5 |
|
|
|
6 |
|
|
procedure Atomic6_1 is
|
7 |
|
|
Temp : Integer;
|
8 |
|
|
begin
|
9 |
|
|
|
10 |
|
|
Counter1 := Counter2;
|
11 |
|
|
|
12 |
|
|
Timer1 := Timer2;
|
13 |
|
|
|
14 |
|
|
Counter1 := Int(Timer1);
|
15 |
|
|
Timer1 := Integer(Counter1);
|
16 |
|
|
|
17 |
|
|
Temp := Integer(Counter1);
|
18 |
|
|
Counter1 := Int(Temp);
|
19 |
|
|
|
20 |
|
|
Temp := Timer1;
|
21 |
|
|
Timer1 := Temp;
|
22 |
|
|
|
23 |
|
|
end;
|
24 |
|
|
|
25 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&atomic6_pkg__counter1" 2 "gimple"} }
|
26 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&atomic6_pkg__counter2" 1 "gimple"} }
|
27 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&atomic6_pkg__timer1" 2 "gimple"} }
|
28 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&atomic6_pkg__timer2" 1 "gimple"} }
|
29 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&temp" 0 "gimple"} }
|
30 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*ptr" 0 "gimple"} }
|
31 |
|
|
|
32 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&atomic6_pkg__counter1" 3 "gimple"} }
|
33 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&atomic6_pkg__counter2" 0 "gimple"} }
|
34 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&atomic6_pkg__timer1" 3 "gimple"} }
|
35 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&atomic6_pkg__timer2" 0 "gimple"} }
|
36 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&temp" 0 "gimple"} }
|
37 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*ptr" 0 "gimple"} }
|
38 |
|
|
|
39 |
|
|
-- { dg-final { cleanup-tree-dump "gimple" } }
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.