10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
1 .cpu cortex-a8
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
2 .eabi_attribute 27, 3
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
3 .fpu neon
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
4 .eabi_attribute 23, 1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
5 .eabi_attribute 24, 1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
6 .eabi_attribute 25, 1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
7 .eabi_attribute 26, 2
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
8 .eabi_attribute 30, 1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
9 .eabi_attribute 18, 4
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
10
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
11 .text
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
12 .align 2
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
13 .global kf_bfly4
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
14 .type kf_bfly4, %function
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
15 kf_bfly4:
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
16 .fnstart
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
17 .cfi_startproc
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
18 stmfd sp!, {r4, r5, r6, r7, r8, sl}
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
19 .save {r4, r5, r6, r7, r8, sl}
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
20 mov r4, r3, asl #1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
21 add r6, r4, r3
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
22 add ip, r2, #264
|
11
|
23
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
24 mov r8, r1, asl #4
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
25 mov r7, r1, asl #5
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
26 add r1, r1, r1, asl #1
|
11
|
27 ldr r2, [r2, #4]
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
28 add r5, r0, r3, asl #4
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
29 add r4, r0, r4, asl #4
|
11
|
30 mov r1, r1, asl #4
|
|
31 mov sl, ip
|
|
32 cmp r2, #0
|
|
33 beq .forward
|
|
34 add r2, r0, #0
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
35 add r0, r0, r6, asl #4
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
36 mov r6, ip
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
37 .inverse_loop:
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
38 // C_MUL(scratch[0], Fout[m], *tw1);
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
39 vld1.32 {d18,d19}, [r5]
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
40 vld1.32 {d16,d17}, [ip]
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
41 vmul.f32 d20, d18, d16
|
11
|
42 vmul.f32 d21, d16, d19
|
|
43 // load Fout[m2], *tw2
|
|
44 vld1.32 {d14,d15}, [r4]
|
|
45 vld1.32 {d12,d13}, [r6]
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
46 vmls.f32 d20, d19, d17
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
47 vmla.f32 d21, d18, d17
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
48
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
49 // C_MUL(scratch[3], Fout[m2], *tw2);
|
11
|
50 vmul.f32 d22, d14, d12
|
|
51 vmul.f32 d23, d12, d15
|
|
52 // load Fout[m3], *tw3
|
|
53 vld1.32 {d18,d19}, [r0]
|
|
54 vld1.32 {d16,d17}, [sl]
|
|
55 vmls.f32 d22, d15, d13
|
|
56 vmla.f32 d23, d14, d13
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
57
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
58 // C_MUL(scratch[2], Fout[m3], *tw3);
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
59 vmul.f32 d24, d18, d16
|
11
|
60 vmul.f32 d25, d16, d19
|
|
61
|
|
62 // C_SUB(scratch[1], *Fout, scratch[3]);
|
|
63 vld1.32 {d14,d15}, [r2]
|
|
64 vsub.f32 q13, q7, q11
|
|
65
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
66 vmls.f32 d24, d19, d17
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
67 vmla.f32 d25, d18, d17
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
68
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
69 // C_ADDTO(*Fout, scratch[3]);
|
11
|
70 vadd.f32 q7, q7, q11
|
|
71 // C_ADD(scratch[3], scratch[0], scratch[2]);
|
|
72 vadd.f32 q11, q10, q12
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
73 vst1.32 {d16,d17}, [r2]
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
74
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
75 // C_SUB(Fout[m2], *Fout, scratch[3]);
|
11
|
76 vsub.f32 q9, q7, q11
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
77 vst1.32 {d18,d19}, [r4]!
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
78
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
79 // C_ADDTO(*Fout, scratch[3]);
|
11
|
80 vadd.f32 q7, q7, q11
|
|
81 vst1.32 {d14,d15}, [r2]!
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
82
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
83 add ip, ip, r8
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
84 add r6, r6, r7
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
85 add sl, sl, r1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
86
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
87 // C_SUB(scratch[3], scratch[0], scratch[2]);
|
11
|
88 vsub.f32 q11, q10, q12
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
89
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
90 // Fout[m].r = scratch[1].r - scratch[3].i;
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
91 // Fout[m].i = scratch[1].i + scratch[3].r;
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
92 vsub.f32 d18, d26, d23
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
93 vadd.f32 d19, d27, d22
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
94 vst1.32 {d18,d19}, [r5]!
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
95
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
96 // Fout[m3].r = scratch[1].r + scratch[3].i;
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
97 // Fout[m3].i = scratch[1].i - scratch[3].r;
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
98 vadd.f32 d18, d26, d23
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
99 vsub.f32 d19, d27, d22
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
100 vst1.32 {d18,d19}, [r0]!
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
101
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
102 subs r3, r3, #1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
103 bne .inverse_loop
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
104 b .done
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
105 .forward:
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
106 add r2, r0, #0
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
107 add r0, r0, r6, asl #4
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
108 mov r6, ip
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
109 .forward_loop:
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
110 // C_MUL(scratch[0], Fout[m], *tw1);
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
111 vld1.32 {d18,d19}, [r5]
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
112 vld1.32 {d16,d17}, [ip]
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
113 vmul.f32 d20, d18, d16
|
11
|
114 vmul.f32 d21, d16, d19
|
|
115 // load Fout[m2], *tw2
|
|
116 vld1.32 {d14,d15}, [r4]
|
|
117 vld1.32 {d12,d13}, [r6]
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
118 vmls.f32 d20, d19, d17
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
119 vmla.f32 d21, d18, d17
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
120
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
121 // C_MUL(scratch[3], Fout[m2], *tw2);
|
11
|
122 vmul.f32 d22, d14, d12
|
|
123 vmul.f32 d23, d12, d15
|
|
124 // load Fout[m3], *tw3
|
|
125 vld1.32 {d18,d19}, [r0]
|
|
126 vld1.32 {d16,d17}, [sl]
|
|
127 vmls.f32 d22, d15, d13
|
|
128 vmla.f32 d23, d14, d13
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
129
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
130 // C_MUL(scratch[2], Fout[m3], *tw3);
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
131 vmul.f32 d24, d18, d16
|
11
|
132 vmul.f32 d25, d16, d19
|
|
133
|
|
134 // C_SUB(scratch[1], *Fout, scratch[3]);
|
|
135 vld1.32 {d14,d15}, [r2]
|
|
136 vsub.f32 q13, q7, q11
|
|
137
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
138 vmls.f32 d24, d19, d17
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
139 vmla.f32 d25, d18, d17
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
140
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
141 // C_ADDTO(*Fout, scratch[3]);
|
11
|
142 vadd.f32 q7, q7, q11
|
|
143 // C_ADD(scratch[3], scratch[0], scratch[2]);
|
|
144 vadd.f32 q11, q10, q12
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
145 vst1.32 {d16,d17}, [r2]
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
146
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
147 // C_SUB(Fout[m2], *Fout, scratch[3]);
|
11
|
148 vsub.f32 q9, q7, q11
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
149 vst1.32 {d18,d19}, [r4]!
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
150
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
151 // C_ADDTO(*Fout, scratch[3]);
|
11
|
152 vadd.f32 q7, q7, q11
|
|
153 vst1.32 {d14,d15}, [r2]!
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
154
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
155 add ip, ip, r8
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
156 add r6, r6, r7
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
157 add sl, sl, r1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
158
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
159 // C_SUB(scratch[3], scratch[0], scratch[2]);
|
11
|
160 vsub.f32 q11, q10, q12
|
10
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
161
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
162 // Fout[m].r = scratch[1].r - scratch[3].i;
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
163 // Fout[m].i = scratch[1].i + scratch[3].r;
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
164 vadd.f32 d18, d26, d23
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
165 vsub.f32 d19, d27, d22
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
166 vst1.32 {d18,d19}, [r5]!
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
167
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
168 // Fout[m3].r = scratch[1].r + scratch[3].i;
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
169 // Fout[m3].i = scratch[1].i - scratch[3].r;
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
170 vsub.f32 d18, d26, d23
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
171 vadd.f32 d19, d27, d22
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
172 vst1.32 {d18,d19}, [r0]!
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
173
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
174 subs r3, r3, #1
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
175 bne .forward_loop
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
176 .done:
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
177 ldmfd sp!, {r4, r5, r6, r7, r8, sl}
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
178 bx lr
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
179 .cfi_endproc
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
180 .fnend
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
181 .size kf_bfly4, .-kf_bfly4
|
Peter Meerwald <p.meerwald@bct-electronic.com>
parents:
diff
changeset
|
182
|