2 -- { dg-options "-fdump-tree-gimple" }
4 with VFA1_Pkg
; use VFA1_Pkg
;
9 function F
(I
: Int8_t
) return Int8_t
is
14 function F2
return Int8_t
is
16 return Int8_t
(Timer1
(1));
19 procedure P3
(I
: out Int8_t
) is
32 Temp
:= Timer1
(1) + Timer2
(2);
34 if Timer1
(1) /= Timer2
(2) then
49 -- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&vfa1_pkg__timer1" 7 "gimple"} }
50 -- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&vfa1_pkg__timer2" 7 "gimple"} }
51 -- { dg-final { scan-tree-dump-times "atomic_load\[^\n\r\]*&temp" 0 "gimple"} }
53 -- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&vfa1_pkg__timer1" 2 "gimple"} }
54 -- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&vfa1_pkg__timer2" 3 "gimple"} }
55 -- { dg-final { scan-tree-dump-times "atomic_store\[^\n\r\]*&temp" 0 "gimple"} }