itrans32_cols_dspr2.c 68 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119
  1. /*
  2. * Copyright (c) 2013 The WebM project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #include "./vpx_config.h"
  11. #include "vpx_dsp/mips/inv_txfm_dspr2.h"
  12. #include "vpx_dsp/txfm_common.h"
  13. #if HAVE_DSPR2
  14. void vpx_idct32_cols_add_blk_dspr2(int16_t *input, uint8_t *dest, int stride) {
  15. int step1_0, step1_1, step1_2, step1_3, step1_4, step1_5, step1_6;
  16. int step1_7, step1_8, step1_9, step1_10, step1_11, step1_12, step1_13;
  17. int step1_14, step1_15, step1_16, step1_17, step1_18, step1_19, step1_20;
  18. int step1_21, step1_22, step1_23, step1_24, step1_25, step1_26, step1_27;
  19. int step1_28, step1_29, step1_30, step1_31;
  20. int step2_0, step2_1, step2_2, step2_3, step2_4, step2_5, step2_6;
  21. int step2_7, step2_8, step2_9, step2_10, step2_11, step2_12, step2_13;
  22. int step2_14, step2_15, step2_16, step2_17, step2_18, step2_19, step2_20;
  23. int step2_21, step2_22, step2_23, step2_24, step2_25, step2_26, step2_27;
  24. int step2_28, step2_29, step2_30, step2_31;
  25. int step3_8, step3_9, step3_10, step3_11, step3_12, step3_13, step3_14;
  26. int step3_15, step3_16, step3_17, step3_18, step3_19, step3_20, step3_21;
  27. int step3_22, step3_23, step3_24, step3_25, step3_26, step3_27, step3_28;
  28. int step3_29, step3_30, step3_31;
  29. int temp0, temp1, temp2, temp3;
  30. int load1, load2, load3, load4;
  31. int result1, result2;
  32. int i;
  33. uint8_t *dest_pix, *dest_pix1;
  34. const int const_2_power_13 = 8192;
  35. uint8_t *cm = vpx_ff_cropTbl;
  36. /* prefetch vpx_ff_cropTbl */
  37. prefetch_load(vpx_ff_cropTbl);
  38. prefetch_load(vpx_ff_cropTbl + 32);
  39. prefetch_load(vpx_ff_cropTbl + 64);
  40. prefetch_load(vpx_ff_cropTbl + 96);
  41. prefetch_load(vpx_ff_cropTbl + 128);
  42. prefetch_load(vpx_ff_cropTbl + 160);
  43. prefetch_load(vpx_ff_cropTbl + 192);
  44. prefetch_load(vpx_ff_cropTbl + 224);
  45. for (i = 0; i < 32; ++i) {
  46. dest_pix = dest + i;
  47. dest_pix1 = dest + i + 31 * stride;
  48. __asm__ __volatile__(
  49. "lh %[load1], 2(%[input]) \n\t"
  50. "lh %[load2], 62(%[input]) \n\t"
  51. "lh %[load3], 34(%[input]) \n\t"
  52. "lh %[load4], 30(%[input]) \n\t"
  53. "mtlo %[const_2_power_13], $ac1 \n\t"
  54. "mthi $zero, $ac1 \n\t"
  55. "mtlo %[const_2_power_13], $ac3 \n\t"
  56. "mthi $zero, $ac3 \n\t"
  57. "madd $ac1, %[load1], %[cospi_31_64] \n\t"
  58. "msub $ac1, %[load2], %[cospi_1_64] \n\t"
  59. "extp %[temp0], $ac1, 31 \n\t"
  60. "madd $ac3, %[load1], %[cospi_1_64] \n\t"
  61. "madd $ac3, %[load2], %[cospi_31_64] \n\t"
  62. "extp %[temp3], $ac3, 31 \n\t"
  63. "mtlo %[const_2_power_13], $ac1 \n\t"
  64. "mthi $zero, $ac1 \n\t"
  65. "mtlo %[const_2_power_13], $ac2 \n\t"
  66. "mthi $zero, $ac2 \n\t"
  67. "madd $ac2, %[load3], %[cospi_15_64] \n\t"
  68. "msub $ac2, %[load4], %[cospi_17_64] \n\t"
  69. "extp %[temp1], $ac2, 31 \n\t"
  70. "madd $ac1, %[load3], %[cospi_17_64] \n\t"
  71. "madd $ac1, %[load4], %[cospi_15_64] \n\t"
  72. "extp %[temp2], $ac1, 31 \n\t"
  73. "mtlo %[const_2_power_13], $ac1 \n\t"
  74. "mthi $zero, $ac1 \n\t"
  75. "mtlo %[const_2_power_13], $ac3 \n\t"
  76. "mthi $zero, $ac3 \n\t"
  77. "sub %[load1], %[temp3], %[temp2] \n\t"
  78. "sub %[load2], %[temp0], %[temp1] \n\t"
  79. "madd $ac1, %[load1], %[cospi_28_64] \n\t"
  80. "msub $ac1, %[load2], %[cospi_4_64] \n\t"
  81. "madd $ac3, %[load1], %[cospi_4_64] \n\t"
  82. "madd $ac3, %[load2], %[cospi_28_64] \n\t"
  83. "extp %[step1_17], $ac1, 31 \n\t"
  84. "extp %[step1_30], $ac3, 31 \n\t"
  85. "add %[step1_16], %[temp0], %[temp1] \n\t"
  86. "add %[step1_31], %[temp2], %[temp3] \n\t"
  87. : [load1] "=&r"(load1), [load2] "=&r"(load2), [load3] "=&r"(load3),
  88. [load4] "=&r"(load4), [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  89. [temp2] "=&r"(temp2), [temp3] "=&r"(temp3),
  90. [step1_16] "=&r"(step1_16), [step1_17] "=&r"(step1_17),
  91. [step1_30] "=&r"(step1_30), [step1_31] "=&r"(step1_31)
  92. : [const_2_power_13] "r"(const_2_power_13), [input] "r"(input),
  93. [cospi_31_64] "r"(cospi_31_64), [cospi_1_64] "r"(cospi_1_64),
  94. [cospi_4_64] "r"(cospi_4_64), [cospi_17_64] "r"(cospi_17_64),
  95. [cospi_15_64] "r"(cospi_15_64), [cospi_28_64] "r"(cospi_28_64));
  96. __asm__ __volatile__(
  97. "lh %[load1], 18(%[input]) \n\t"
  98. "lh %[load2], 46(%[input]) \n\t"
  99. "lh %[load3], 50(%[input]) \n\t"
  100. "lh %[load4], 14(%[input]) \n\t"
  101. "mtlo %[const_2_power_13], $ac1 \n\t"
  102. "mthi $zero, $ac1 \n\t"
  103. "mtlo %[const_2_power_13], $ac3 \n\t"
  104. "mthi $zero, $ac3 \n\t"
  105. "madd $ac1, %[load1], %[cospi_23_64] \n\t"
  106. "msub $ac1, %[load2], %[cospi_9_64] \n\t"
  107. "extp %[temp0], $ac1, 31 \n\t"
  108. "madd $ac3, %[load1], %[cospi_9_64] \n\t"
  109. "madd $ac3, %[load2], %[cospi_23_64] \n\t"
  110. "extp %[temp3], $ac3, 31 \n\t"
  111. "mtlo %[const_2_power_13], $ac1 \n\t"
  112. "mthi $zero, $ac1 \n\t"
  113. "mtlo %[const_2_power_13], $ac2 \n\t"
  114. "mthi $zero, $ac2 \n\t"
  115. "madd $ac2, %[load3], %[cospi_7_64] \n\t"
  116. "msub $ac2, %[load4], %[cospi_25_64] \n\t"
  117. "extp %[temp1], $ac2, 31 \n\t"
  118. "madd $ac1, %[load3], %[cospi_25_64] \n\t"
  119. "madd $ac1, %[load4], %[cospi_7_64] \n\t"
  120. "extp %[temp2], $ac1, 31 \n\t"
  121. "mtlo %[const_2_power_13], $ac1 \n\t"
  122. "mthi $zero, $ac1 \n\t"
  123. "mtlo %[const_2_power_13], $ac3 \n\t"
  124. "mthi $zero, $ac3 \n\t"
  125. "sub %[load1], %[temp1], %[temp0] \n\t"
  126. "sub %[load2], %[temp2], %[temp3] \n\t"
  127. "msub $ac1, %[load1], %[cospi_28_64] \n\t"
  128. "msub $ac1, %[load2], %[cospi_4_64] \n\t"
  129. "msub $ac3, %[load1], %[cospi_4_64] \n\t"
  130. "madd $ac3, %[load2], %[cospi_28_64] \n\t"
  131. "extp %[step1_18], $ac1, 31 \n\t"
  132. "extp %[step1_29], $ac3, 31 \n\t"
  133. "add %[step1_19], %[temp0], %[temp1] \n\t"
  134. "add %[step1_28], %[temp2], %[temp3] \n\t"
  135. : [load1] "=&r"(load1), [load2] "=&r"(load2), [load3] "=&r"(load3),
  136. [load4] "=&r"(load4), [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  137. [temp2] "=&r"(temp2), [temp3] "=&r"(temp3),
  138. [step1_18] "=&r"(step1_18), [step1_19] "=&r"(step1_19),
  139. [step1_28] "=&r"(step1_28), [step1_29] "=&r"(step1_29)
  140. : [const_2_power_13] "r"(const_2_power_13), [input] "r"(input),
  141. [cospi_23_64] "r"(cospi_23_64), [cospi_9_64] "r"(cospi_9_64),
  142. [cospi_4_64] "r"(cospi_4_64), [cospi_7_64] "r"(cospi_7_64),
  143. [cospi_25_64] "r"(cospi_25_64), [cospi_28_64] "r"(cospi_28_64));
  144. __asm__ __volatile__(
  145. "lh %[load1], 10(%[input]) \n\t"
  146. "lh %[load2], 54(%[input]) \n\t"
  147. "lh %[load3], 42(%[input]) \n\t"
  148. "lh %[load4], 22(%[input]) \n\t"
  149. "mtlo %[const_2_power_13], $ac1 \n\t"
  150. "mthi $zero, $ac1 \n\t"
  151. "mtlo %[const_2_power_13], $ac3 \n\t"
  152. "mthi $zero, $ac3 \n\t"
  153. "madd $ac1, %[load1], %[cospi_27_64] \n\t"
  154. "msub $ac1, %[load2], %[cospi_5_64] \n\t"
  155. "extp %[temp0], $ac1, 31 \n\t"
  156. "madd $ac3, %[load1], %[cospi_5_64] \n\t"
  157. "madd $ac3, %[load2], %[cospi_27_64] \n\t"
  158. "extp %[temp3], $ac3, 31 \n\t"
  159. "mtlo %[const_2_power_13], $ac1 \n\t"
  160. "mthi $zero, $ac1 \n\t"
  161. "mtlo %[const_2_power_13], $ac2 \n\t"
  162. "mthi $zero, $ac2 \n\t"
  163. "madd $ac2, %[load3], %[cospi_11_64] \n\t"
  164. "msub $ac2, %[load4], %[cospi_21_64] \n\t"
  165. "extp %[temp1], $ac2, 31 \n\t"
  166. "madd $ac1, %[load3], %[cospi_21_64] \n\t"
  167. "madd $ac1, %[load4], %[cospi_11_64] \n\t"
  168. "extp %[temp2], $ac1, 31 \n\t"
  169. "mtlo %[const_2_power_13], $ac1 \n\t"
  170. "mthi $zero, $ac1 \n\t"
  171. "mtlo %[const_2_power_13], $ac3 \n\t"
  172. "mthi $zero, $ac3 \n\t"
  173. "sub %[load1], %[temp0], %[temp1] \n\t"
  174. "sub %[load2], %[temp3], %[temp2] \n\t"
  175. "madd $ac1, %[load2], %[cospi_12_64] \n\t"
  176. "msub $ac1, %[load1], %[cospi_20_64] \n\t"
  177. "madd $ac3, %[load1], %[cospi_12_64] \n\t"
  178. "madd $ac3, %[load2], %[cospi_20_64] \n\t"
  179. "extp %[step1_21], $ac1, 31 \n\t"
  180. "extp %[step1_26], $ac3, 31 \n\t"
  181. "add %[step1_20], %[temp0], %[temp1] \n\t"
  182. "add %[step1_27], %[temp2], %[temp3] \n\t"
  183. : [load1] "=&r"(load1), [load2] "=&r"(load2), [load3] "=&r"(load3),
  184. [load4] "=&r"(load4), [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  185. [temp2] "=&r"(temp2), [temp3] "=&r"(temp3),
  186. [step1_20] "=&r"(step1_20), [step1_21] "=&r"(step1_21),
  187. [step1_26] "=&r"(step1_26), [step1_27] "=&r"(step1_27)
  188. : [const_2_power_13] "r"(const_2_power_13), [input] "r"(input),
  189. [cospi_27_64] "r"(cospi_27_64), [cospi_5_64] "r"(cospi_5_64),
  190. [cospi_11_64] "r"(cospi_11_64), [cospi_21_64] "r"(cospi_21_64),
  191. [cospi_12_64] "r"(cospi_12_64), [cospi_20_64] "r"(cospi_20_64));
  192. __asm__ __volatile__(
  193. "lh %[load1], 26(%[input]) \n\t"
  194. "lh %[load2], 38(%[input]) \n\t"
  195. "lh %[load3], 58(%[input]) \n\t"
  196. "lh %[load4], 6(%[input]) \n\t"
  197. "mtlo %[const_2_power_13], $ac1 \n\t"
  198. "mthi $zero, $ac1 \n\t"
  199. "mtlo %[const_2_power_13], $ac3 \n\t"
  200. "mthi $zero, $ac3 \n\t"
  201. "madd $ac1, %[load1], %[cospi_19_64] \n\t"
  202. "msub $ac1, %[load2], %[cospi_13_64] \n\t"
  203. "extp %[temp0], $ac1, 31 \n\t"
  204. "madd $ac3, %[load1], %[cospi_13_64] \n\t"
  205. "madd $ac3, %[load2], %[cospi_19_64] \n\t"
  206. "extp %[temp3], $ac3, 31 \n\t"
  207. "mtlo %[const_2_power_13], $ac1 \n\t"
  208. "mthi $zero, $ac1 \n\t"
  209. "mtlo %[const_2_power_13], $ac2 \n\t"
  210. "mthi $zero, $ac2 \n\t"
  211. "madd $ac2, %[load3], %[cospi_3_64] \n\t"
  212. "msub $ac2, %[load4], %[cospi_29_64] \n\t"
  213. "extp %[temp1], $ac2, 31 \n\t"
  214. "madd $ac1, %[load3], %[cospi_29_64] \n\t"
  215. "madd $ac1, %[load4], %[cospi_3_64] \n\t"
  216. "extp %[temp2], $ac1, 31 \n\t"
  217. "mtlo %[const_2_power_13], $ac1 \n\t"
  218. "mthi $zero, $ac1 \n\t"
  219. "mtlo %[const_2_power_13], $ac3 \n\t"
  220. "mthi $zero, $ac3 \n\t"
  221. "sub %[load1], %[temp1], %[temp0] \n\t"
  222. "sub %[load2], %[temp2], %[temp3] \n\t"
  223. "msub $ac1, %[load1], %[cospi_12_64] \n\t"
  224. "msub $ac1, %[load2], %[cospi_20_64] \n\t"
  225. "msub $ac3, %[load1], %[cospi_20_64] \n\t"
  226. "madd $ac3, %[load2], %[cospi_12_64] \n\t"
  227. "extp %[step1_22], $ac1, 31 \n\t"
  228. "extp %[step1_25], $ac3, 31 \n\t"
  229. "add %[step1_23], %[temp0], %[temp1] \n\t"
  230. "add %[step1_24], %[temp2], %[temp3] \n\t"
  231. : [load1] "=&r"(load1), [load2] "=&r"(load2), [load3] "=&r"(load3),
  232. [load4] "=&r"(load4), [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  233. [temp2] "=&r"(temp2), [temp3] "=&r"(temp3),
  234. [step1_22] "=&r"(step1_22), [step1_23] "=&r"(step1_23),
  235. [step1_24] "=&r"(step1_24), [step1_25] "=&r"(step1_25)
  236. : [const_2_power_13] "r"(const_2_power_13), [input] "r"(input),
  237. [cospi_19_64] "r"(cospi_19_64), [cospi_13_64] "r"(cospi_13_64),
  238. [cospi_3_64] "r"(cospi_3_64), [cospi_29_64] "r"(cospi_29_64),
  239. [cospi_12_64] "r"(cospi_12_64), [cospi_20_64] "r"(cospi_20_64));
  240. __asm__ __volatile__(
  241. "lh %[load1], 4(%[input]) \n\t"
  242. "lh %[load2], 60(%[input]) \n\t"
  243. "lh %[load3], 36(%[input]) \n\t"
  244. "lh %[load4], 28(%[input]) \n\t"
  245. "mtlo %[const_2_power_13], $ac1 \n\t"
  246. "mthi $zero, $ac1 \n\t"
  247. "mtlo %[const_2_power_13], $ac3 \n\t"
  248. "mthi $zero, $ac3 \n\t"
  249. "madd $ac1, %[load1], %[cospi_30_64] \n\t"
  250. "msub $ac1, %[load2], %[cospi_2_64] \n\t"
  251. "extp %[temp0], $ac1, 31 \n\t"
  252. "madd $ac3, %[load1], %[cospi_2_64] \n\t"
  253. "madd $ac3, %[load2], %[cospi_30_64] \n\t"
  254. "extp %[temp3], $ac3, 31 \n\t"
  255. "mtlo %[const_2_power_13], $ac1 \n\t"
  256. "mthi $zero, $ac1 \n\t"
  257. "mtlo %[const_2_power_13], $ac2 \n\t"
  258. "mthi $zero, $ac2 \n\t"
  259. "madd $ac2, %[load3], %[cospi_14_64] \n\t"
  260. "msub $ac2, %[load4], %[cospi_18_64] \n\t"
  261. "extp %[temp1], $ac2, 31 \n\t"
  262. "madd $ac1, %[load3], %[cospi_18_64] \n\t"
  263. "madd $ac1, %[load4], %[cospi_14_64] \n\t"
  264. "extp %[temp2], $ac1, 31 \n\t"
  265. "mtlo %[const_2_power_13], $ac1 \n\t"
  266. "mthi $zero, $ac1 \n\t"
  267. "mtlo %[const_2_power_13], $ac3 \n\t"
  268. "mthi $zero, $ac3 \n\t"
  269. "sub %[load1], %[temp0], %[temp1] \n\t"
  270. "sub %[load2], %[temp3], %[temp2] \n\t"
  271. "msub $ac1, %[load1], %[cospi_8_64] \n\t"
  272. "madd $ac1, %[load2], %[cospi_24_64] \n\t"
  273. "madd $ac3, %[load1], %[cospi_24_64] \n\t"
  274. "madd $ac3, %[load2], %[cospi_8_64] \n\t"
  275. "extp %[step2_9], $ac1, 31 \n\t"
  276. "extp %[step2_14], $ac3, 31 \n\t"
  277. "add %[step2_8], %[temp0], %[temp1] \n\t"
  278. "add %[step2_15], %[temp2], %[temp3] \n\t"
  279. : [load1] "=&r"(load1), [load2] "=&r"(load2), [load3] "=&r"(load3),
  280. [load4] "=&r"(load4), [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  281. [temp2] "=&r"(temp2), [temp3] "=&r"(temp3), [step2_8] "=&r"(step2_8),
  282. [step2_9] "=&r"(step2_9), [step2_14] "=&r"(step2_14),
  283. [step2_15] "=&r"(step2_15)
  284. : [const_2_power_13] "r"(const_2_power_13), [input] "r"(input),
  285. [cospi_30_64] "r"(cospi_30_64), [cospi_2_64] "r"(cospi_2_64),
  286. [cospi_14_64] "r"(cospi_14_64), [cospi_18_64] "r"(cospi_18_64),
  287. [cospi_8_64] "r"(cospi_8_64), [cospi_24_64] "r"(cospi_24_64));
  288. __asm__ __volatile__(
  289. "lh %[load1], 20(%[input]) \n\t"
  290. "lh %[load2], 44(%[input]) \n\t"
  291. "lh %[load3], 52(%[input]) \n\t"
  292. "lh %[load4], 12(%[input]) \n\t"
  293. "mtlo %[const_2_power_13], $ac1 \n\t"
  294. "mthi $zero, $ac1 \n\t"
  295. "mtlo %[const_2_power_13], $ac3 \n\t"
  296. "mthi $zero, $ac3 \n\t"
  297. "madd $ac1, %[load1], %[cospi_22_64] \n\t"
  298. "msub $ac1, %[load2], %[cospi_10_64] \n\t"
  299. "extp %[temp0], $ac1, 31 \n\t"
  300. "madd $ac3, %[load1], %[cospi_10_64] \n\t"
  301. "madd $ac3, %[load2], %[cospi_22_64] \n\t"
  302. "extp %[temp3], $ac3, 31 \n\t"
  303. "mtlo %[const_2_power_13], $ac1 \n\t"
  304. "mthi $zero, $ac1 \n\t"
  305. "mtlo %[const_2_power_13], $ac2 \n\t"
  306. "mthi $zero, $ac2 \n\t"
  307. "madd $ac2, %[load3], %[cospi_6_64] \n\t"
  308. "msub $ac2, %[load4], %[cospi_26_64] \n\t"
  309. "extp %[temp1], $ac2, 31 \n\t"
  310. "madd $ac1, %[load3], %[cospi_26_64] \n\t"
  311. "madd $ac1, %[load4], %[cospi_6_64] \n\t"
  312. "extp %[temp2], $ac1, 31 \n\t"
  313. "mtlo %[const_2_power_13], $ac1 \n\t"
  314. "mthi $zero, $ac1 \n\t"
  315. "mtlo %[const_2_power_13], $ac3 \n\t"
  316. "mthi $zero, $ac3 \n\t"
  317. "sub %[load1], %[temp1], %[temp0] \n\t"
  318. "sub %[load2], %[temp2], %[temp3] \n\t"
  319. "msub $ac1, %[load1], %[cospi_24_64] \n\t"
  320. "msub $ac1, %[load2], %[cospi_8_64] \n\t"
  321. "madd $ac3, %[load2], %[cospi_24_64] \n\t"
  322. "msub $ac3, %[load1], %[cospi_8_64] \n\t"
  323. "extp %[step2_10], $ac1, 31 \n\t"
  324. "extp %[step2_13], $ac3, 31 \n\t"
  325. "add %[step2_11], %[temp0], %[temp1] \n\t"
  326. "add %[step2_12], %[temp2], %[temp3] \n\t"
  327. : [load1] "=&r"(load1), [load2] "=&r"(load2), [load3] "=&r"(load3),
  328. [load4] "=&r"(load4), [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  329. [temp2] "=&r"(temp2), [temp3] "=&r"(temp3),
  330. [step2_10] "=&r"(step2_10), [step2_11] "=&r"(step2_11),
  331. [step2_12] "=&r"(step2_12), [step2_13] "=&r"(step2_13)
  332. : [const_2_power_13] "r"(const_2_power_13), [input] "r"(input),
  333. [cospi_22_64] "r"(cospi_22_64), [cospi_10_64] "r"(cospi_10_64),
  334. [cospi_6_64] "r"(cospi_6_64), [cospi_26_64] "r"(cospi_26_64),
  335. [cospi_8_64] "r"(cospi_8_64), [cospi_24_64] "r"(cospi_24_64));
  336. __asm__ __volatile__(
  337. "mtlo %[const_2_power_13], $ac0 \n\t"
  338. "mthi $zero, $ac0 \n\t"
  339. "sub %[temp0], %[step2_14], %[step2_13] \n\t"
  340. "sub %[temp0], %[temp0], %[step2_9] \n\t"
  341. "add %[temp0], %[temp0], %[step2_10] \n\t"
  342. "madd $ac0, %[temp0], %[cospi_16_64] \n\t"
  343. "mtlo %[const_2_power_13], $ac1 \n\t"
  344. "mthi $zero, $ac1 \n\t"
  345. "sub %[temp1], %[step2_14], %[step2_13] \n\t"
  346. "add %[temp1], %[temp1], %[step2_9] \n\t"
  347. "sub %[temp1], %[temp1], %[step2_10] \n\t"
  348. "madd $ac1, %[temp1], %[cospi_16_64] \n\t"
  349. "mtlo %[const_2_power_13], $ac2 \n\t"
  350. "mthi $zero, $ac2 \n\t"
  351. "sub %[temp0], %[step2_15], %[step2_12] \n\t"
  352. "sub %[temp0], %[temp0], %[step2_8] \n\t"
  353. "add %[temp0], %[temp0], %[step2_11] \n\t"
  354. "madd $ac2, %[temp0], %[cospi_16_64] \n\t"
  355. "mtlo %[const_2_power_13], $ac3 \n\t"
  356. "mthi $zero, $ac3 \n\t"
  357. "sub %[temp1], %[step2_15], %[step2_12] \n\t"
  358. "add %[temp1], %[temp1], %[step2_8] \n\t"
  359. "sub %[temp1], %[temp1], %[step2_11] \n\t"
  360. "madd $ac3, %[temp1], %[cospi_16_64] \n\t"
  361. "add %[step3_8], %[step2_8], %[step2_11] \n\t"
  362. "add %[step3_9], %[step2_9], %[step2_10] \n\t"
  363. "add %[step3_14], %[step2_13], %[step2_14] \n\t"
  364. "add %[step3_15], %[step2_12], %[step2_15] \n\t"
  365. "extp %[step3_10], $ac0, 31 \n\t"
  366. "extp %[step3_13], $ac1, 31 \n\t"
  367. "extp %[step3_11], $ac2, 31 \n\t"
  368. "extp %[step3_12], $ac3, 31 \n\t"
  369. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [step3_8] "=&r"(step3_8),
  370. [step3_9] "=&r"(step3_9), [step3_10] "=&r"(step3_10),
  371. [step3_11] "=&r"(step3_11), [step3_12] "=&r"(step3_12),
  372. [step3_13] "=&r"(step3_13), [step3_14] "=&r"(step3_14),
  373. [step3_15] "=&r"(step3_15)
  374. : [const_2_power_13] "r"(const_2_power_13), [step2_8] "r"(step2_8),
  375. [step2_9] "r"(step2_9), [step2_10] "r"(step2_10),
  376. [step2_11] "r"(step2_11), [step2_12] "r"(step2_12),
  377. [step2_13] "r"(step2_13), [step2_14] "r"(step2_14),
  378. [step2_15] "r"(step2_15), [cospi_16_64] "r"(cospi_16_64));
  379. __asm__ __volatile__(
  380. "mtlo %[const_2_power_13], $ac0 \n\t"
  381. "mthi $zero, $ac0 \n\t"
  382. "mtlo %[const_2_power_13], $ac1 \n\t"
  383. "mthi $zero, $ac1 \n\t"
  384. "sub %[temp0], %[step1_17], %[step1_18] \n\t"
  385. "sub %[temp1], %[step1_30], %[step1_29] \n\t"
  386. "add %[step3_17], %[step1_17], %[step1_18] \n\t"
  387. "add %[step3_30], %[step1_30], %[step1_29] \n\t"
  388. "msub $ac0, %[temp0], %[cospi_8_64] \n\t"
  389. "madd $ac0, %[temp1], %[cospi_24_64] \n\t"
  390. "extp %[step3_18], $ac0, 31 \n\t"
  391. "madd $ac1, %[temp0], %[cospi_24_64] \n\t"
  392. "madd $ac1, %[temp1], %[cospi_8_64] \n\t"
  393. "extp %[step3_29], $ac1, 31 \n\t"
  394. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  395. [step3_18] "=&r"(step3_18), [step3_29] "=&r"(step3_29),
  396. [step3_17] "=&r"(step3_17), [step3_30] "=&r"(step3_30)
  397. : [const_2_power_13] "r"(const_2_power_13), [step1_17] "r"(step1_17),
  398. [step1_18] "r"(step1_18), [step1_30] "r"(step1_30),
  399. [step1_29] "r"(step1_29), [cospi_24_64] "r"(cospi_24_64),
  400. [cospi_8_64] "r"(cospi_8_64));
  401. __asm__ __volatile__(
  402. "mtlo %[const_2_power_13], $ac0 \n\t"
  403. "mthi $zero, $ac0 \n\t"
  404. "mtlo %[const_2_power_13], $ac1 \n\t"
  405. "mthi $zero, $ac1 \n\t"
  406. "sub %[temp0], %[step1_16], %[step1_19] \n\t"
  407. "sub %[temp1], %[step1_31], %[step1_28] \n\t"
  408. "add %[step3_16], %[step1_16], %[step1_19] \n\t"
  409. "add %[step3_31], %[step1_31], %[step1_28] \n\t"
  410. "msub $ac0, %[temp0], %[cospi_8_64] \n\t"
  411. "madd $ac0, %[temp1], %[cospi_24_64] \n\t"
  412. "extp %[step3_19], $ac0, 31 \n\t"
  413. "madd $ac1, %[temp0], %[cospi_24_64] \n\t"
  414. "madd $ac1, %[temp1], %[cospi_8_64] \n\t"
  415. "extp %[step3_28], $ac1, 31 \n\t"
  416. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  417. [step3_16] "=&r"(step3_16), [step3_31] "=&r"(step3_31),
  418. [step3_19] "=&r"(step3_19), [step3_28] "=&r"(step3_28)
  419. : [const_2_power_13] "r"(const_2_power_13), [step1_16] "r"(step1_16),
  420. [step1_19] "r"(step1_19), [step1_31] "r"(step1_31),
  421. [step1_28] "r"(step1_28), [cospi_24_64] "r"(cospi_24_64),
  422. [cospi_8_64] "r"(cospi_8_64));
  423. __asm__ __volatile__(
  424. "mtlo %[const_2_power_13], $ac0 \n\t"
  425. "mthi $zero, $ac0 \n\t"
  426. "mtlo %[const_2_power_13], $ac1 \n\t"
  427. "mthi $zero, $ac1 \n\t"
  428. "sub %[temp0], %[step1_23], %[step1_20] \n\t"
  429. "sub %[temp1], %[step1_24], %[step1_27] \n\t"
  430. "add %[step3_23], %[step1_23], %[step1_20] \n\t"
  431. "add %[step3_24], %[step1_24], %[step1_27] \n\t"
  432. "msub $ac0, %[temp0], %[cospi_8_64] \n\t"
  433. "madd $ac0, %[temp1], %[cospi_24_64] \n\t"
  434. "extp %[step3_27], $ac0, 31 \n\t"
  435. "msub $ac1, %[temp0], %[cospi_24_64] \n\t"
  436. "msub $ac1, %[temp1], %[cospi_8_64] \n\t"
  437. "extp %[step3_20], $ac1, 31 \n\t"
  438. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  439. [step3_23] "=&r"(step3_23), [step3_24] "=&r"(step3_24),
  440. [step3_20] "=&r"(step3_20), [step3_27] "=&r"(step3_27)
  441. : [const_2_power_13] "r"(const_2_power_13), [step1_23] "r"(step1_23),
  442. [step1_20] "r"(step1_20), [step1_24] "r"(step1_24),
  443. [step1_27] "r"(step1_27), [cospi_24_64] "r"(cospi_24_64),
  444. [cospi_8_64] "r"(cospi_8_64));
  445. __asm__ __volatile__(
  446. "mtlo %[const_2_power_13], $ac0 \n\t"
  447. "mthi $zero, $ac0 \n\t"
  448. "mtlo %[const_2_power_13], $ac1 \n\t"
  449. "mthi $zero, $ac1 \n\t"
  450. "sub %[temp0], %[step1_22], %[step1_21] \n\t"
  451. "sub %[temp1], %[step1_25], %[step1_26] \n\t"
  452. "add %[step3_22], %[step1_22], %[step1_21] \n\t"
  453. "add %[step3_25], %[step1_25], %[step1_26] \n\t"
  454. "msub $ac0, %[temp0], %[cospi_24_64] \n\t"
  455. "msub $ac0, %[temp1], %[cospi_8_64] \n\t"
  456. "extp %[step3_21], $ac0, 31 \n\t"
  457. "msub $ac1, %[temp0], %[cospi_8_64] \n\t"
  458. "madd $ac1, %[temp1], %[cospi_24_64] \n\t"
  459. "extp %[step3_26], $ac1, 31 \n\t"
  460. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  461. [step3_22] "=&r"(step3_22), [step3_25] "=&r"(step3_25),
  462. [step3_21] "=&r"(step3_21), [step3_26] "=&r"(step3_26)
  463. : [const_2_power_13] "r"(const_2_power_13), [step1_22] "r"(step1_22),
  464. [step1_21] "r"(step1_21), [step1_25] "r"(step1_25),
  465. [step1_26] "r"(step1_26), [cospi_24_64] "r"(cospi_24_64),
  466. [cospi_8_64] "r"(cospi_8_64));
  467. __asm__ __volatile__(
  468. "add %[step2_16], %[step3_16], %[step3_23] \n\t"
  469. "add %[step2_17], %[step3_17], %[step3_22] \n\t"
  470. "add %[step2_18], %[step3_18], %[step3_21] \n\t"
  471. "add %[step2_19], %[step3_19], %[step3_20] \n\t"
  472. "sub %[step2_20], %[step3_19], %[step3_20] \n\t"
  473. "sub %[step2_21], %[step3_18], %[step3_21] \n\t"
  474. "sub %[step2_22], %[step3_17], %[step3_22] \n\t"
  475. "sub %[step2_23], %[step3_16], %[step3_23] \n\t"
  476. : [step2_16] "=&r"(step2_16), [step2_17] "=&r"(step2_17),
  477. [step2_18] "=&r"(step2_18), [step2_19] "=&r"(step2_19),
  478. [step2_20] "=&r"(step2_20), [step2_21] "=&r"(step2_21),
  479. [step2_22] "=&r"(step2_22), [step2_23] "=&r"(step2_23)
  480. : [step3_16] "r"(step3_16), [step3_23] "r"(step3_23),
  481. [step3_17] "r"(step3_17), [step3_22] "r"(step3_22),
  482. [step3_18] "r"(step3_18), [step3_21] "r"(step3_21),
  483. [step3_19] "r"(step3_19), [step3_20] "r"(step3_20));
  484. __asm__ __volatile__(
  485. "sub %[step2_24], %[step3_31], %[step3_24] \n\t"
  486. "sub %[step2_25], %[step3_30], %[step3_25] \n\t"
  487. "sub %[step2_26], %[step3_29], %[step3_26] \n\t"
  488. "sub %[step2_27], %[step3_28], %[step3_27] \n\t"
  489. "add %[step2_28], %[step3_28], %[step3_27] \n\t"
  490. "add %[step2_29], %[step3_29], %[step3_26] \n\t"
  491. "add %[step2_30], %[step3_30], %[step3_25] \n\t"
  492. "add %[step2_31], %[step3_31], %[step3_24] \n\t"
  493. : [step2_24] "=&r"(step2_24), [step2_28] "=&r"(step2_28),
  494. [step2_25] "=&r"(step2_25), [step2_29] "=&r"(step2_29),
  495. [step2_26] "=&r"(step2_26), [step2_30] "=&r"(step2_30),
  496. [step2_27] "=&r"(step2_27), [step2_31] "=&r"(step2_31)
  497. : [step3_31] "r"(step3_31), [step3_24] "r"(step3_24),
  498. [step3_30] "r"(step3_30), [step3_25] "r"(step3_25),
  499. [step3_29] "r"(step3_29), [step3_26] "r"(step3_26),
  500. [step3_28] "r"(step3_28), [step3_27] "r"(step3_27));
  501. __asm__ __volatile__(
  502. "lh %[load1], 0(%[input]) \n\t"
  503. "lh %[load2], 32(%[input]) \n\t"
  504. "lh %[load3], 16(%[input]) \n\t"
  505. "lh %[load4], 48(%[input]) \n\t"
  506. "mtlo %[const_2_power_13], $ac1 \n\t"
  507. "mthi $zero, $ac1 \n\t"
  508. "mtlo %[const_2_power_13], $ac2 \n\t"
  509. "mthi $zero, $ac2 \n\t"
  510. "add %[result1], %[load1], %[load2] \n\t"
  511. "sub %[result2], %[load1], %[load2] \n\t"
  512. "madd $ac1, %[result1], %[cospi_16_64] \n\t"
  513. "madd $ac2, %[result2], %[cospi_16_64] \n\t"
  514. "extp %[temp0], $ac1, 31 \n\t"
  515. "extp %[temp1], $ac2, 31 \n\t"
  516. "mtlo %[const_2_power_13], $ac3 \n\t"
  517. "mthi $zero, $ac3 \n\t"
  518. "madd $ac3, %[load3], %[cospi_24_64] \n\t"
  519. "msub $ac3, %[load4], %[cospi_8_64] \n\t"
  520. "extp %[temp2], $ac3, 31 \n\t"
  521. "mtlo %[const_2_power_13], $ac1 \n\t"
  522. "mthi $zero, $ac1 \n\t"
  523. "madd $ac1, %[load3], %[cospi_8_64] \n\t"
  524. "madd $ac1, %[load4], %[cospi_24_64] \n\t"
  525. "extp %[temp3], $ac1, 31 \n\t"
  526. "add %[step1_0], %[temp0], %[temp3] \n\t"
  527. "add %[step1_1], %[temp1], %[temp2] \n\t"
  528. "sub %[step1_2], %[temp1], %[temp2] \n\t"
  529. "sub %[step1_3], %[temp0], %[temp3] \n\t"
  530. : [load1] "=&r"(load1), [load2] "=&r"(load2), [load3] "=&r"(load3),
  531. [load4] "=&r"(load4), [result1] "=&r"(result1),
  532. [result2] "=&r"(result2), [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  533. [temp2] "=&r"(temp2), [temp3] "=&r"(temp3), [step1_0] "=&r"(step1_0),
  534. [step1_1] "=&r"(step1_1), [step1_2] "=&r"(step1_2),
  535. [step1_3] "=&r"(step1_3)
  536. : [const_2_power_13] "r"(const_2_power_13), [input] "r"(input),
  537. [cospi_24_64] "r"(cospi_24_64), [cospi_8_64] "r"(cospi_8_64),
  538. [cospi_16_64] "r"(cospi_16_64));
  539. __asm__ __volatile__(
  540. "lh %[load1], 8(%[input]) \n\t"
  541. "lh %[load2], 56(%[input]) \n\t"
  542. "lh %[load3], 40(%[input]) \n\t"
  543. "lh %[load4], 24(%[input]) \n\t"
  544. "mtlo %[const_2_power_13], $ac1 \n\t"
  545. "mthi $zero, $ac1 \n\t"
  546. "mtlo %[const_2_power_13], $ac3 \n\t"
  547. "mthi $zero, $ac3 \n\t"
  548. "madd $ac1, %[load1], %[cospi_28_64] \n\t"
  549. "msub $ac1, %[load2], %[cospi_4_64] \n\t"
  550. "extp %[temp0], $ac1, 31 \n\t"
  551. "madd $ac3, %[load1], %[cospi_4_64] \n\t"
  552. "madd $ac3, %[load2], %[cospi_28_64] \n\t"
  553. "extp %[temp3], $ac3, 31 \n\t"
  554. "mtlo %[const_2_power_13], $ac1 \n\t"
  555. "mthi $zero, $ac1 \n\t"
  556. "mtlo %[const_2_power_13], $ac2 \n\t"
  557. "mthi $zero, $ac2 \n\t"
  558. "madd $ac2, %[load3], %[cospi_12_64] \n\t"
  559. "msub $ac2, %[load4], %[cospi_20_64] \n\t"
  560. "extp %[temp1], $ac2, 31 \n\t"
  561. "madd $ac1, %[load3], %[cospi_20_64] \n\t"
  562. "madd $ac1, %[load4], %[cospi_12_64] \n\t"
  563. "extp %[temp2], $ac1, 31 \n\t"
  564. "mtlo %[const_2_power_13], $ac1 \n\t"
  565. "mthi $zero, $ac1 \n\t"
  566. "mtlo %[const_2_power_13], $ac3 \n\t"
  567. "mthi $zero, $ac3 \n\t"
  568. "sub %[load1], %[temp3], %[temp2] \n\t"
  569. "sub %[load1], %[load1], %[temp0] \n\t"
  570. "add %[load1], %[load1], %[temp1] \n\t"
  571. "sub %[load2], %[temp0], %[temp1] \n\t"
  572. "sub %[load2], %[load2], %[temp2] \n\t"
  573. "add %[load2], %[load2], %[temp3] \n\t"
  574. "madd $ac1, %[load1], %[cospi_16_64] \n\t"
  575. "madd $ac3, %[load2], %[cospi_16_64] \n\t"
  576. "extp %[step1_5], $ac1, 31 \n\t"
  577. "extp %[step1_6], $ac3, 31 \n\t"
  578. "add %[step1_4], %[temp0], %[temp1] \n\t"
  579. "add %[step1_7], %[temp3], %[temp2] \n\t"
  580. : [load1] "=&r"(load1), [load2] "=&r"(load2), [load3] "=&r"(load3),
  581. [load4] "=&r"(load4), [temp0] "=&r"(temp0), [temp1] "=&r"(temp1),
  582. [temp2] "=&r"(temp2), [temp3] "=&r"(temp3), [step1_4] "=&r"(step1_4),
  583. [step1_5] "=&r"(step1_5), [step1_6] "=&r"(step1_6),
  584. [step1_7] "=&r"(step1_7)
  585. : [const_2_power_13] "r"(const_2_power_13), [input] "r"(input),
  586. [cospi_20_64] "r"(cospi_20_64), [cospi_12_64] "r"(cospi_12_64),
  587. [cospi_4_64] "r"(cospi_4_64), [cospi_28_64] "r"(cospi_28_64),
  588. [cospi_16_64] "r"(cospi_16_64));
  589. __asm__ __volatile__(
  590. "add %[step2_0], %[step1_0], %[step1_7] \n\t"
  591. "add %[step2_1], %[step1_1], %[step1_6] \n\t"
  592. "add %[step2_2], %[step1_2], %[step1_5] \n\t"
  593. "add %[step2_3], %[step1_3], %[step1_4] \n\t"
  594. "sub %[step2_4], %[step1_3], %[step1_4] \n\t"
  595. "sub %[step2_5], %[step1_2], %[step1_5] \n\t"
  596. "sub %[step2_6], %[step1_1], %[step1_6] \n\t"
  597. "sub %[step2_7], %[step1_0], %[step1_7] \n\t"
  598. : [step2_0] "=&r"(step2_0), [step2_4] "=&r"(step2_4),
  599. [step2_1] "=&r"(step2_1), [step2_5] "=&r"(step2_5),
  600. [step2_2] "=&r"(step2_2), [step2_6] "=&r"(step2_6),
  601. [step2_3] "=&r"(step2_3), [step2_7] "=&r"(step2_7)
  602. : [step1_0] "r"(step1_0), [step1_7] "r"(step1_7),
  603. [step1_1] "r"(step1_1), [step1_6] "r"(step1_6),
  604. [step1_2] "r"(step1_2), [step1_5] "r"(step1_5),
  605. [step1_3] "r"(step1_3), [step1_4] "r"(step1_4));
  606. // stage 7
  607. __asm__ __volatile__(
  608. "add %[step1_0], %[step2_0], %[step3_15] \n\t"
  609. "add %[step1_1], %[step2_1], %[step3_14] \n\t"
  610. "add %[step1_2], %[step2_2], %[step3_13] \n\t"
  611. "add %[step1_3], %[step2_3], %[step3_12] \n\t"
  612. "sub %[step1_12], %[step2_3], %[step3_12] \n\t"
  613. "sub %[step1_13], %[step2_2], %[step3_13] \n\t"
  614. "sub %[step1_14], %[step2_1], %[step3_14] \n\t"
  615. "sub %[step1_15], %[step2_0], %[step3_15] \n\t"
  616. : [step1_0] "=&r"(step1_0), [step1_12] "=&r"(step1_12),
  617. [step1_1] "=&r"(step1_1), [step1_13] "=&r"(step1_13),
  618. [step1_2] "=&r"(step1_2), [step1_14] "=&r"(step1_14),
  619. [step1_3] "=&r"(step1_3), [step1_15] "=&r"(step1_15)
  620. : [step2_0] "r"(step2_0), [step3_15] "r"(step3_15),
  621. [step2_1] "r"(step2_1), [step3_14] "r"(step3_14),
  622. [step2_2] "r"(step2_2), [step3_13] "r"(step3_13),
  623. [step2_3] "r"(step2_3), [step3_12] "r"(step3_12));
  624. __asm__ __volatile__(
  625. "add %[step1_4], %[step2_4], %[step3_11] \n\t"
  626. "add %[step1_5], %[step2_5], %[step3_10] \n\t"
  627. "add %[step1_6], %[step2_6], %[step3_9] \n\t"
  628. "add %[step1_7], %[step2_7], %[step3_8] \n\t"
  629. "sub %[step1_8], %[step2_7], %[step3_8] \n\t"
  630. "sub %[step1_9], %[step2_6], %[step3_9] \n\t"
  631. "sub %[step1_10], %[step2_5], %[step3_10] \n\t"
  632. "sub %[step1_11], %[step2_4], %[step3_11] \n\t"
  633. : [step1_4] "=&r"(step1_4), [step1_8] "=&r"(step1_8),
  634. [step1_5] "=&r"(step1_5), [step1_9] "=&r"(step1_9),
  635. [step1_6] "=&r"(step1_6), [step1_10] "=&r"(step1_10),
  636. [step1_7] "=&r"(step1_7), [step1_11] "=&r"(step1_11)
  637. : [step2_4] "r"(step2_4), [step3_11] "r"(step3_11),
  638. [step2_5] "r"(step2_5), [step3_10] "r"(step3_10),
  639. [step2_6] "r"(step2_6), [step3_9] "r"(step3_9),
  640. [step2_7] "r"(step2_7), [step3_8] "r"(step3_8));
  641. __asm__ __volatile__(
  642. "sub %[temp0], %[step2_27], %[step2_20] \n\t"
  643. "add %[temp1], %[step2_27], %[step2_20] \n\t"
  644. "sub %[temp2], %[step2_26], %[step2_21] \n\t"
  645. "add %[temp3], %[step2_26], %[step2_21] \n\t"
  646. "mtlo %[const_2_power_13], $ac0 \n\t"
  647. "mthi $zero, $ac0 \n\t"
  648. "mtlo %[const_2_power_13], $ac1 \n\t"
  649. "mthi $zero, $ac1 \n\t"
  650. "mtlo %[const_2_power_13], $ac2 \n\t"
  651. "mthi $zero, $ac2 \n\t"
  652. "mtlo %[const_2_power_13], $ac3 \n\t"
  653. "mthi $zero, $ac3 \n\t"
  654. "madd $ac0, %[temp0], %[cospi_16_64] \n\t"
  655. "madd $ac1, %[temp1], %[cospi_16_64] \n\t"
  656. "madd $ac2, %[temp2], %[cospi_16_64] \n\t"
  657. "madd $ac3, %[temp3], %[cospi_16_64] \n\t"
  658. "extp %[step1_20], $ac0, 31 \n\t"
  659. "extp %[step1_27], $ac1, 31 \n\t"
  660. "extp %[step1_21], $ac2, 31 \n\t"
  661. "extp %[step1_26], $ac3, 31 \n\t"
  662. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  663. [temp3] "=&r"(temp3), [step1_20] "=&r"(step1_20),
  664. [step1_27] "=&r"(step1_27), [step1_21] "=&r"(step1_21),
  665. [step1_26] "=&r"(step1_26)
  666. : [const_2_power_13] "r"(const_2_power_13), [step2_20] "r"(step2_20),
  667. [step2_27] "r"(step2_27), [step2_21] "r"(step2_21),
  668. [step2_26] "r"(step2_26), [cospi_16_64] "r"(cospi_16_64));
  669. __asm__ __volatile__(
  670. "sub %[temp0], %[step2_25], %[step2_22] \n\t"
  671. "add %[temp1], %[step2_25], %[step2_22] \n\t"
  672. "sub %[temp2], %[step2_24], %[step2_23] \n\t"
  673. "add %[temp3], %[step2_24], %[step2_23] \n\t"
  674. "mtlo %[const_2_power_13], $ac0 \n\t"
  675. "mthi $zero, $ac0 \n\t"
  676. "mtlo %[const_2_power_13], $ac1 \n\t"
  677. "mthi $zero, $ac1 \n\t"
  678. "mtlo %[const_2_power_13], $ac2 \n\t"
  679. "mthi $zero, $ac2 \n\t"
  680. "mtlo %[const_2_power_13], $ac3 \n\t"
  681. "mthi $zero, $ac3 \n\t"
  682. "madd $ac0, %[temp0], %[cospi_16_64] \n\t"
  683. "madd $ac1, %[temp1], %[cospi_16_64] \n\t"
  684. "madd $ac2, %[temp2], %[cospi_16_64] \n\t"
  685. "madd $ac3, %[temp3], %[cospi_16_64] \n\t"
  686. "extp %[step1_22], $ac0, 31 \n\t"
  687. "extp %[step1_25], $ac1, 31 \n\t"
  688. "extp %[step1_23], $ac2, 31 \n\t"
  689. "extp %[step1_24], $ac3, 31 \n\t"
  690. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  691. [temp3] "=&r"(temp3), [step1_22] "=&r"(step1_22),
  692. [step1_25] "=&r"(step1_25), [step1_23] "=&r"(step1_23),
  693. [step1_24] "=&r"(step1_24)
  694. : [const_2_power_13] "r"(const_2_power_13), [step2_22] "r"(step2_22),
  695. [step2_25] "r"(step2_25), [step2_23] "r"(step2_23),
  696. [step2_24] "r"(step2_24), [cospi_16_64] "r"(cospi_16_64));
  697. __asm__ __volatile__(
  698. "lbu %[temp2], 0(%[dest_pix]) \n\t"
  699. "add %[temp0], %[step1_0], %[step2_31] \n\t"
  700. "addi %[temp0], %[temp0], 32 \n\t"
  701. "sra %[temp0], %[temp0], 6 \n\t"
  702. "add %[temp2], %[temp2], %[temp0] \n\t"
  703. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  704. "add %[temp1], %[step1_1], %[step2_30] \n\t"
  705. "sb %[temp0], 0(%[dest_pix]) \n\t"
  706. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  707. "lbu %[temp3], 0(%[dest_pix]) \n\t"
  708. "addi %[temp1], %[temp1], 32 \n\t"
  709. "sra %[temp1], %[temp1], 6 \n\t"
  710. "add %[temp3], %[temp3], %[temp1] \n\t"
  711. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  712. "sb %[temp1], 0(%[dest_pix]) \n\t"
  713. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  714. "lbu %[temp2], 0(%[dest_pix]) \n\t"
  715. "add %[temp0], %[step1_2], %[step2_29] \n\t"
  716. "addi %[temp0], %[temp0], 32 \n\t"
  717. "sra %[temp0], %[temp0], 6 \n\t"
  718. "add %[temp2], %[temp2], %[temp0] \n\t"
  719. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  720. "add %[temp1], %[step1_3], %[step2_28] \n\t"
  721. "sb %[temp0], 0(%[dest_pix]) \n\t"
  722. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  723. "lbu %[temp3], 0(%[dest_pix]) \n\t"
  724. "addi %[temp1], %[temp1], 32 \n\t"
  725. "sra %[temp1], %[temp1], 6 \n\t"
  726. "add %[temp3], %[temp3], %[temp1] \n\t"
  727. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  728. "sb %[temp1], 0(%[dest_pix]) \n\t"
  729. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  730. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  731. [temp3] "=&r"(temp3), [dest_pix] "+r"(dest_pix)
  732. : [cm] "r"(cm), [stride] "r"(stride), [step1_0] "r"(step1_0),
  733. [step1_1] "r"(step1_1), [step1_2] "r"(step1_2),
  734. [step1_3] "r"(step1_3), [step2_28] "r"(step2_28),
  735. [step2_29] "r"(step2_29), [step2_30] "r"(step2_30),
  736. [step2_31] "r"(step2_31));
  737. step3_12 = ROUND_POWER_OF_TWO((step1_3 - step2_28), 6);
  738. step3_13 = ROUND_POWER_OF_TWO((step1_2 - step2_29), 6);
  739. step3_14 = ROUND_POWER_OF_TWO((step1_1 - step2_30), 6);
  740. step3_15 = ROUND_POWER_OF_TWO((step1_0 - step2_31), 6);
  741. __asm__ __volatile__(
  742. "lbu %[temp2], 0(%[dest_pix1]) \n\t"
  743. "add %[temp2], %[temp2], %[step3_15] \n\t"
  744. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  745. "sb %[temp0], 0(%[dest_pix1]) \n\t"
  746. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  747. "lbu %[temp3], 0(%[dest_pix1]) \n\t"
  748. "add %[temp3], %[temp3], %[step3_14] \n\t"
  749. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  750. "sb %[temp1], 0(%[dest_pix1]) \n\t"
  751. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  752. "lbu %[temp2], 0(%[dest_pix1]) \n\t"
  753. "add %[temp2], %[temp2], %[step3_13] \n\t"
  754. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  755. "sb %[temp0], 0(%[dest_pix1]) \n\t"
  756. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  757. "lbu %[temp3], 0(%[dest_pix1]) \n\t"
  758. "add %[temp3], %[temp3], %[step3_12] \n\t"
  759. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  760. "sb %[temp1], 0(%[dest_pix1]) \n\t"
  761. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  762. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  763. [temp3] "=&r"(temp3), [dest_pix1] "+r"(dest_pix1)
  764. : [cm] "r"(cm), [stride] "r"(stride), [step3_12] "r"(step3_12),
  765. [step3_13] "r"(step3_13), [step3_14] "r"(step3_14),
  766. [step3_15] "r"(step3_15));
  767. __asm__ __volatile__(
  768. "lbu %[temp2], 0(%[dest_pix]) \n\t"
  769. "add %[temp0], %[step1_4], %[step1_27] \n\t"
  770. "addi %[temp0], %[temp0], 32 \n\t"
  771. "sra %[temp0], %[temp0], 6 \n\t"
  772. "add %[temp2], %[temp2], %[temp0] \n\t"
  773. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  774. "add %[temp1], %[step1_5], %[step1_26] \n\t"
  775. "sb %[temp0], 0(%[dest_pix]) \n\t"
  776. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  777. "lbu %[temp3], 0(%[dest_pix]) \n\t"
  778. "addi %[temp1], %[temp1], 32 \n\t"
  779. "sra %[temp1], %[temp1], 6 \n\t"
  780. "add %[temp3], %[temp3], %[temp1] \n\t"
  781. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  782. "sb %[temp1], 0(%[dest_pix]) \n\t"
  783. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  784. "lbu %[temp2], 0(%[dest_pix]) \n\t"
  785. "add %[temp0], %[step1_6], %[step1_25] \n\t"
  786. "addi %[temp0], %[temp0], 32 \n\t"
  787. "sra %[temp0], %[temp0], 6 \n\t"
  788. "add %[temp2], %[temp2], %[temp0] \n\t"
  789. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  790. "add %[temp1], %[step1_7], %[step1_24] \n\t"
  791. "sb %[temp0], 0(%[dest_pix]) \n\t"
  792. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  793. "lbu %[temp3], 0(%[dest_pix]) \n\t"
  794. "addi %[temp1], %[temp1], 32 \n\t"
  795. "sra %[temp1], %[temp1], 6 \n\t"
  796. "add %[temp3], %[temp3], %[temp1] \n\t"
  797. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  798. "sb %[temp1], 0(%[dest_pix]) \n\t"
  799. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  800. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  801. [temp3] "=&r"(temp3), [dest_pix] "+r"(dest_pix)
  802. : [cm] "r"(cm), [stride] "r"(stride), [step1_4] "r"(step1_4),
  803. [step1_5] "r"(step1_5), [step1_6] "r"(step1_6),
  804. [step1_7] "r"(step1_7), [step1_24] "r"(step1_24),
  805. [step1_25] "r"(step1_25), [step1_26] "r"(step1_26),
  806. [step1_27] "r"(step1_27));
  807. step3_12 = ROUND_POWER_OF_TWO((step1_7 - step1_24), 6);
  808. step3_13 = ROUND_POWER_OF_TWO((step1_6 - step1_25), 6);
  809. step3_14 = ROUND_POWER_OF_TWO((step1_5 - step1_26), 6);
  810. step3_15 = ROUND_POWER_OF_TWO((step1_4 - step1_27), 6);
  811. __asm__ __volatile__(
  812. "lbu %[temp2], 0(%[dest_pix1]) \n\t"
  813. "add %[temp2], %[temp2], %[step3_15] \n\t"
  814. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  815. "sb %[temp0], 0(%[dest_pix1]) \n\t"
  816. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  817. "lbu %[temp3], 0(%[dest_pix1]) \n\t"
  818. "add %[temp3], %[temp3], %[step3_14] \n\t"
  819. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  820. "sb %[temp1], 0(%[dest_pix1]) \n\t"
  821. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  822. "lbu %[temp2], 0(%[dest_pix1]) \n\t"
  823. "add %[temp2], %[temp2], %[step3_13] \n\t"
  824. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  825. "sb %[temp0], 0(%[dest_pix1]) \n\t"
  826. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  827. "lbu %[temp3], 0(%[dest_pix1]) \n\t"
  828. "add %[temp3], %[temp3], %[step3_12] \n\t"
  829. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  830. "sb %[temp1], 0(%[dest_pix1]) \n\t"
  831. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  832. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  833. [temp3] "=&r"(temp3), [dest_pix1] "+r"(dest_pix1)
  834. : [cm] "r"(cm), [stride] "r"(stride), [step3_12] "r"(step3_12),
  835. [step3_13] "r"(step3_13), [step3_14] "r"(step3_14),
  836. [step3_15] "r"(step3_15));
  837. __asm__ __volatile__(
  838. "lbu %[temp2], 0(%[dest_pix]) \n\t"
  839. "add %[temp0], %[step1_8], %[step1_23] \n\t"
  840. "addi %[temp0], %[temp0], 32 \n\t"
  841. "sra %[temp0], %[temp0], 6 \n\t"
  842. "add %[temp2], %[temp2], %[temp0] \n\t"
  843. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  844. "add %[temp1], %[step1_9], %[step1_22] \n\t"
  845. "sb %[temp0], 0(%[dest_pix]) \n\t"
  846. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  847. "lbu %[temp3], 0(%[dest_pix]) \n\t"
  848. "addi %[temp1], %[temp1], 32 \n\t"
  849. "sra %[temp1], %[temp1], 6 \n\t"
  850. "add %[temp3], %[temp3], %[temp1] \n\t"
  851. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  852. "sb %[temp1], 0(%[dest_pix]) \n\t"
  853. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  854. "lbu %[temp2], 0(%[dest_pix]) \n\t"
  855. "add %[temp0], %[step1_10], %[step1_21] \n\t"
  856. "addi %[temp0], %[temp0], 32 \n\t"
  857. "sra %[temp0], %[temp0], 6 \n\t"
  858. "add %[temp2], %[temp2], %[temp0] \n\t"
  859. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  860. "add %[temp1], %[step1_11], %[step1_20] \n\t"
  861. "sb %[temp0], 0(%[dest_pix]) \n\t"
  862. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  863. "lbu %[temp3], 0(%[dest_pix]) \n\t"
  864. "addi %[temp1], %[temp1], 32 \n\t"
  865. "sra %[temp1], %[temp1], 6 \n\t"
  866. "add %[temp3], %[temp3], %[temp1] \n\t"
  867. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  868. "sb %[temp1], 0(%[dest_pix]) \n\t"
  869. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  870. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  871. [temp3] "=&r"(temp3), [dest_pix] "+r"(dest_pix)
  872. : [cm] "r"(cm), [stride] "r"(stride), [step1_8] "r"(step1_8),
  873. [step1_9] "r"(step1_9), [step1_10] "r"(step1_10),
  874. [step1_11] "r"(step1_11), [step1_20] "r"(step1_20),
  875. [step1_21] "r"(step1_21), [step1_22] "r"(step1_22),
  876. [step1_23] "r"(step1_23));
  877. step3_12 = ROUND_POWER_OF_TWO((step1_11 - step1_20), 6);
  878. step3_13 = ROUND_POWER_OF_TWO((step1_10 - step1_21), 6);
  879. step3_14 = ROUND_POWER_OF_TWO((step1_9 - step1_22), 6);
  880. step3_15 = ROUND_POWER_OF_TWO((step1_8 - step1_23), 6);
  881. __asm__ __volatile__(
  882. "lbu %[temp2], 0(%[dest_pix1]) \n\t"
  883. "add %[temp2], %[temp2], %[step3_15] \n\t"
  884. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  885. "sb %[temp0], 0(%[dest_pix1]) \n\t"
  886. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  887. "lbu %[temp3], 0(%[dest_pix1]) \n\t"
  888. "add %[temp3], %[temp3], %[step3_14] \n\t"
  889. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  890. "sb %[temp1], 0(%[dest_pix1]) \n\t"
  891. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  892. "lbu %[temp2], 0(%[dest_pix1]) \n\t"
  893. "add %[temp2], %[temp2], %[step3_13] \n\t"
  894. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  895. "sb %[temp0], 0(%[dest_pix1]) \n\t"
  896. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  897. "lbu %[temp3], 0(%[dest_pix1]) \n\t"
  898. "add %[temp3], %[temp3], %[step3_12] \n\t"
  899. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  900. "sb %[temp1], 0(%[dest_pix1]) \n\t"
  901. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  902. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  903. [temp3] "=&r"(temp3), [dest_pix1] "+r"(dest_pix1)
  904. : [cm] "r"(cm), [stride] "r"(stride), [step3_12] "r"(step3_12),
  905. [step3_13] "r"(step3_13), [step3_14] "r"(step3_14),
  906. [step3_15] "r"(step3_15));
  907. __asm__ __volatile__(
  908. "lbu %[temp2], 0(%[dest_pix]) \n\t"
  909. "add %[temp0], %[step1_12], %[step2_19] \n\t"
  910. "addi %[temp0], %[temp0], 32 \n\t"
  911. "sra %[temp0], %[temp0], 6 \n\t"
  912. "add %[temp2], %[temp2], %[temp0] \n\t"
  913. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  914. "add %[temp1], %[step1_13], %[step2_18] \n\t"
  915. "sb %[temp0], 0(%[dest_pix]) \n\t"
  916. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  917. "lbu %[temp3], 0(%[dest_pix]) \n\t"
  918. "addi %[temp1], %[temp1], 32 \n\t"
  919. "sra %[temp1], %[temp1], 6 \n\t"
  920. "add %[temp3], %[temp3], %[temp1] \n\t"
  921. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  922. "sb %[temp1], 0(%[dest_pix]) \n\t"
  923. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  924. "lbu %[temp2], 0(%[dest_pix]) \n\t"
  925. "add %[temp0], %[step1_14], %[step2_17] \n\t"
  926. "addi %[temp0], %[temp0], 32 \n\t"
  927. "sra %[temp0], %[temp0], 6 \n\t"
  928. "add %[temp2], %[temp2], %[temp0] \n\t"
  929. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  930. "add %[temp1], %[step1_15], %[step2_16] \n\t"
  931. "sb %[temp0], 0(%[dest_pix]) \n\t"
  932. "addu %[dest_pix], %[dest_pix], %[stride] \n\t"
  933. "lbu %[temp3], 0(%[dest_pix]) \n\t"
  934. "addi %[temp1], %[temp1], 32 \n\t"
  935. "sra %[temp1], %[temp1], 6 \n\t"
  936. "add %[temp3], %[temp3], %[temp1] \n\t"
  937. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  938. "sb %[temp1], 0(%[dest_pix]) \n\t"
  939. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  940. [temp3] "=&r"(temp3), [dest_pix] "+r"(dest_pix)
  941. : [cm] "r"(cm), [stride] "r"(stride), [step1_12] "r"(step1_12),
  942. [step1_13] "r"(step1_13), [step1_14] "r"(step1_14),
  943. [step1_15] "r"(step1_15), [step2_16] "r"(step2_16),
  944. [step2_17] "r"(step2_17), [step2_18] "r"(step2_18),
  945. [step2_19] "r"(step2_19));
  946. step3_12 = ROUND_POWER_OF_TWO((step1_15 - step2_16), 6);
  947. step3_13 = ROUND_POWER_OF_TWO((step1_14 - step2_17), 6);
  948. step3_14 = ROUND_POWER_OF_TWO((step1_13 - step2_18), 6);
  949. step3_15 = ROUND_POWER_OF_TWO((step1_12 - step2_19), 6);
  950. __asm__ __volatile__(
  951. "lbu %[temp2], 0(%[dest_pix1]) \n\t"
  952. "add %[temp2], %[temp2], %[step3_15] \n\t"
  953. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  954. "sb %[temp0], 0(%[dest_pix1]) \n\t"
  955. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  956. "lbu %[temp3], 0(%[dest_pix1]) \n\t"
  957. "add %[temp3], %[temp3], %[step3_14] \n\t"
  958. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  959. "sb %[temp1], 0(%[dest_pix1]) \n\t"
  960. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  961. "lbu %[temp2], 0(%[dest_pix1]) \n\t"
  962. "add %[temp2], %[temp2], %[step3_13] \n\t"
  963. "lbux %[temp0], %[temp2](%[cm]) \n\t"
  964. "sb %[temp0], 0(%[dest_pix1]) \n\t"
  965. "subu %[dest_pix1], %[dest_pix1], %[stride] \n\t"
  966. "lbu %[temp3], 0(%[dest_pix1]) \n\t"
  967. "add %[temp3], %[temp3], %[step3_12] \n\t"
  968. "lbux %[temp1], %[temp3](%[cm]) \n\t"
  969. "sb %[temp1], 0(%[dest_pix1]) \n\t"
  970. : [temp0] "=&r"(temp0), [temp1] "=&r"(temp1), [temp2] "=&r"(temp2),
  971. [temp3] "=&r"(temp3), [dest_pix1] "+r"(dest_pix1)
  972. : [cm] "r"(cm), [stride] "r"(stride), [step3_12] "r"(step3_12),
  973. [step3_13] "r"(step3_13), [step3_14] "r"(step3_14),
  974. [step3_15] "r"(step3_15));
  975. input += 32;
  976. }
  977. }
  978. #endif // #if HAVE_DSPR2