<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div> </div><div>Is there a fix for this issue? ---> <a href="http://permalink.gmane.org/gmane.comp.audio.compression.speex.devel/2959">http://permalink.gmane.org/gmane.comp.audio.compression.speex.devel/2959</a></div><div> </div><div>I am seeing the same thing when I compile speex in visualdsp</div><div> </div><div>These are the errors I get from using the assembly version of vq_nbest:</div><div><var id="yui-ie-cursor"></var> </div><div>..\..\..\..\algorithms\voice\speex\src\vq.c<br>[Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":482 Syntax Error in :<br>LOOP vq_loopR2= LC0 = P4;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the ';'</div><div>[Error ea5004]
"C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":483 Syntax Error in :<br>LOOP_BEGIN vq_loopR2=;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the ';'</div><div>[Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":485 Syntax Error in :<br>LOOP_END vq_loopR2=;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the ';'</div><div>[Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":650 Syntax Error in :<br>LOOP entries_loopR4= LC0;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the ';'</div><div>[Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":651 Syntax Error in :<br>LOOP_BEGIN entries_loopR4=;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the ';'</div><div>[Error
ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":656 Syntax Error in :<br>LOOP vq_loopR4= LC1 = P1;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the ';'</div><div>[Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":657 Syntax Error in :<br>LOOP_BEGIN vq_loopR4=;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the ';'</div><div>[Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":659 Syntax Error in :<br>LOOP_END vq_loopR4=;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the ';'</div><div>[Error ea5004] "C:\Users\coder\AppData\Local\Temp\acc22e8547f000\acc22e8547f001.s":665 Syntax Error in :<br>LOOP_END entries_loopR4=;<br>syntax error is at or near text '='.<br>Attempting error recovery by ignoring text until the
';'</div><div> Previous errors prevent assembly</div><div>Assembler totals: 9 error(s) and 0 warning(s)<br>cc3089: fatal error: Assembler failed<br>Tool failed with exit/exception code: 1.<br>Build was unsuccessful.</div><div> </div><div> </div><div> </div><div> </div><font color="#808080" size="2"><font color="#808080" size="2"><div><font color="#0080ff">void vq_nbest(i16 *in, const i16 *codebook, int len, int entries, i32 *E, int N, int *nbest, i32 *best_dist, i8 *stack)</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff">{</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> if (N == 1)</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> {</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> best_dist[0] = 2147483647;</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> {</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> i32 dist;</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> __asm__ __volatile__</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> (</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "LC0 = %8;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "R2 = 0;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "I0 = %6;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "B0 = %6;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "L0 = %9;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font style="background-color: rgb(255, 0, 0);" color="#0080ff"> "LOOP entries_loop%= LC0;\n\t"</font></div><div><font style="background-color: rgb(255, 0, 0);" color="#0080ff">
</font></div><div><font style="background-color: rgb(255, 0, 0);" color="#0080ff"> "LOOP_BEGIN entries_loop%=;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "%0 = [%4++];\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "%0 >>= 1;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "A0 = %0;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "R0.L = W[%1++%7] || R1.L = W[I0++];\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> <font style="background-color: rgb(255, 0, 0);">"LOOP vq_loop%= LC1 = %5;\n\t"</font></font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> <font style="background-color: rgb(255, 0, 0);">"LOOP_BEGIN vq_loop%=;\n\t"</font></font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "%0 = (A0 -= R0.L*R1.L) (IS) || R0.L = W[%1++%7] || R1.L = W[I0++];\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> <font style="background-color: rgb(255, 0, 0);">"LOOP_END vq_loop%=;\n\t"</font></font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "%0 = (A0 -= R0.L*R1.L) (IS);\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "cc = %0 < %2;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "if cc %2 = %0;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "if cc %3 = R2;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "R2 += 1;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> <font style="background-color: rgb(255, 0, 127);">"LOOP_END entries_loop%=;\n\t"</font></font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> : "=&D" (dist), "=&a" (codebook), "=&d" (best_dist[0]), "=&d" (nbest[0]), "=&a" (E)</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> : "a" (len-1), "a" (in), "a" (2), "d" (entries), "d" (len<<1), "1" (codebook), "4" (E), "2" (best_dist[0]), "3" (nbest[0])</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> : "R0", "R1", "R2", "I0", "L0", "B0", "A0", "cc", "memory"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> );</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> }</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> }</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> else</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> {</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> int i, k, used;</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> used = 0;</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> for (i = 0; i < entries; i++)</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> {</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> i32 dist;</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> __asm__</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> (</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "%0 >>= 1;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "A0 = %0;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "I0 = %3;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "L0 = 0;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "R0.L = W[%1++%4] || R1.L = W[I0++];\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> <font style="background-color: rgb(255, 0, 0);">"LOOP vq_loop%= LC0 = %2;\n\t"</font></font></div><div><font style="background-color: rgb(255, 0, 0);" color="#0080ff">
</font></div><div><font style="background-color: rgb(255, 0, 0);" color="#0080ff"> "LOOP_BEGIN vq_loop%=;\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "%0 = (A0 -= R0.L*R1.L) (IS) || R0.L = W[%1++%4] || R1.L = W[I0++];\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> <font style="background-color: rgb(255, 0, 0);">"LOOP_END vq_loop%=;\n\t"</font></font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> "%0 = (A0 -= R0.L*R1.L) (IS);\n\t"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> : "=D" (dist), "=a" (codebook)</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> : "a" (len-1), "a" (in), "a" (2), "1" (codebook), "0" (E[i])</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> : "R0", "R1", "I0", "L0", "A0"</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> );</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> if (i < N || dist < best_dist[N - 1])</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> {</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> for (k = N - 1; (k >= 1) && (k > used || dist < best_dist[k - 1]); k--)</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> {</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> best_dist[k] = best_dist[k - 1];</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> nbest[k] = nbest[k - 1];</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> }</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> best_dist[k] = dist;</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> nbest[k] = i;</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> used++;</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> }</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> }</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff"> }</font></div><div><font color="#0080ff">
</font></div><div><font color="#0080ff">}</font></div></font></font><div><br> </div><div> </div></div></body></html>