URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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_8 is
|
7 |
|
|
Ptr : Int_Ptr := new Int;
|
8 |
|
|
Temp : Integer;
|
9 |
|
|
begin
|
10 |
|
|
|
11 |
|
|
Ptr.all := Counter1;
|
12 |
|
|
|
13 |
|
|
Counter1 := Ptr.all;
|
14 |
|
|
|
15 |
|
|
Ptr.all := Int(Timer1);
|
16 |
|
|
Timer1 := Integer(Ptr.all);
|
17 |
|
|
|
18 |
|
|
Temp := Integer(Ptr.all);
|
19 |
|
|
Ptr.all := Int(Temp);
|
20 |
|
|
|
21 |
|
|
end;
|
22 |
|
|
|
23 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&atomic6_pkg__counter1" 1 "gimple"} }
|
24 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&atomic6_pkg__counter2" 0 "gimple"} }
|
25 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&atomic6_pkg__timer1" 1 "gimple"} }
|
26 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&atomic6_pkg__timer2" 0 "gimple"} }
|
27 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&temp" 0 "gimple"} }
|
28 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*ptr" 3 "gimple"} }
|
29 |
|
|
|
30 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&atomic6_pkg__counter1" 1 "gimple"} }
|
31 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&atomic6_pkg__counter2" 0 "gimple"} }
|
32 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&atomic6_pkg__timer1" 1 "gimple"} }
|
33 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&atomic6_pkg__timer2" 0 "gimple"} }
|
34 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&temp" 0 "gimple"} }
|
35 |
|
|
-- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*ptr" 3 "gimple"} }
|
36 |
|
|
|
37 |
|
|
-- { dg-final { cleanup-tree-dump "gimple" } }
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.