7 // BEGIN FUNCTION DEF: clock
8 .func (.param.u32 %out_retval)clock
15 .local.align 8 .b8 %frame[8];
21 st.local.u32 [%frame], %r24;
22 ld.local.u32 %r22, [%frame];
24 mov.u32 %retval, %r23;
25 st.param.u32 [%out_retval], %retval;
29 // BEGIN GLOBAL FUNCTION DEF: delay
30 .visible .entry delay(.param.u64 %in_ar1, .param.u64 %in_ar2)
46 .local.align 8 .b8 %frame[24];
47 ld.param.u64 %ar1, [%in_ar1];
48 ld.param.u64 %ar2, [%in_ar2];
50 st.u64 [%frame+8], %r24;
52 st.local.u64 [%frame+16], %r25;
54 .param.u32 %retval_in;
56 call (%retval_in), clock;
58 ld.param.u32 %r26, [%retval_in];
60 st.local.u32 [%frame+4], %r26;
62 st.local.u32 [%frame], %r27;
66 .param.u32 %retval_in;
68 call (%retval_in), clock;
70 ld.param.u32 %r28, [%retval_in];
73 ld.local.u32 %r30, [%frame+4];
74 sub.u32 %r29, %r23, %r30;
75 st.local.u32 [%frame], %r29;
77 ld.local.s32 %r22, [%frame];
78 ld.local.u64 %r31, [%frame+16];
79 setp.lo.u64 %r32,%r22,%r31;
84 // BEGIN GLOBAL FUNCTION DEF: delay2
85 .visible .entry delay2(.param.u64 %in_ar1, .param.u64 %in_ar2, .param.u64 %in_ar3)
105 .local.align 8 .b8 %frame[32];
106 ld.param.u64 %ar1, [%in_ar1];
107 ld.param.u64 %ar2, [%in_ar2];
108 ld.param.u64 %ar3, [%in_ar3];
110 st.local.u64 [%frame+8], %r24;
112 st.local.u64 [%frame+16], %r25;
114 st.local.u64 [%frame+24], %r26;
116 .param.u32 %retval_in;
118 call (%retval_in), clock;
120 ld.param.u32 %r27, [%retval_in];
122 st.local.u32 [%frame+4], %r27;
124 st.local.u32 [%frame], %r28;
128 .param.u32 %retval_in;
130 call (%retval_in), clock;
132 ld.param.u32 %r29, [%retval_in];
135 ld.local.u32 %r31, [%frame+4];
136 sub.u32 %r30, %r23, %r31;
137 st.local.u32 [%frame], %r30;
139 ld.local.s32 %r22, [%frame];
140 ld.local.u64 %r32, [%frame+16];
141 setp.lo.u64 %r33,%r22,%r32;
143 ld.local.u64 %r34, [%frame+8];
144 ld.local.u64 %r35, [%frame+24];