mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
svolume_{mmx, sse}, sconv_sse: Fix compilation errors with X32 toolchain
From d8b81d5393df36085009bf9f69d41fa85e2ae58a Mon Sep 17 00:00:00 2001 From: Nitin A Kamble <nitin.a.kamble@intel.com> Date: Sat, 10 Dec 2011 09:09:06 +0100 Make assembly syntax compatible to the X32 toolchain and fix the following kind of compilations errors with X32 gcc. | pulsecore/svolume_mmx.c: Assembler messages: | pulsecore/svolume_mmx.c:107: Error: `(%esi,%rdi,4)' is not a valid base/index expression | pulsecore/svolume_mmx.c:135: Error: `(%esi,%rdi,4)' is not a valid base/index expression | pulsecore/svolume_mmx.c:161: Error: `(%esi,%rdi,4)' is not a valid base/index expression | pulsecore/svolume_mmx.c:162: Error: `8(%esi,%rdi,4)' is not a valid base/index expression | pulsecore/svolume_mmx.c:180: Error: `(%esi,%rdi,4)' is not a valid base/index expression | pulsecore/svolume_mmx.c:210: Error: `(%esi,%rdi,4)' is not a valid base/index expression | pulsecore/svolume_mmx.c:244: Error: `(%esi,%rdi,4)' is not a valid base/index expression | pulsecore/svolume_mmx.c:245: Error: `8(%esi,%rdi,4)' is not a valid base/index expression | make[3]: *** [libpulsecore_1.1_la-svolume_mmx.lo] Error 1 Originally these assembly lines were written for x86_64 ABI, now they are also compatible with X32 ABI [3][4]. The patch was submitted to the OpenEmbedded-Core list [1][2]. [1] http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/014189.html [2] http://git.yoctoproject.org/cgit.cgi/poky-contrib/commit/?h=nitin/x32&id=2d8eec54f755c51f2eff600390f5a4b3cc2a7662 [3] https://wiki.yoctoproject.org/wiki/X32_abi [4] http://en.wikipedia.org/wiki/X32_ABI
This commit is contained in:
parent
37bd158701
commit
dd32032062
3 changed files with 29 additions and 29 deletions
|
|
@ -54,8 +54,8 @@ static void pa_sconv_s16le_from_f32ne_sse(unsigned n, const float *a, int16_t *b
|
|||
" je 2f \n\t"
|
||||
|
||||
"1: \n\t"
|
||||
" movups (%2, %0, 2), %%xmm0 \n\t" /* read 8 floats */
|
||||
" movups 16(%2, %0, 2), %%xmm2 \n\t"
|
||||
" movups (%q2, %0, 2), %%xmm0 \n\t" /* read 8 floats */
|
||||
" movups 16(%q2, %0, 2), %%xmm2 \n\t"
|
||||
" minps %%xmm5, %%xmm0 \n\t" /* clamp to 1.0 */
|
||||
" minps %%xmm5, %%xmm2 \n\t"
|
||||
" maxps %%xmm6, %%xmm0 \n\t" /* clamp to -1.0 */
|
||||
|
|
@ -72,8 +72,8 @@ static void pa_sconv_s16le_from_f32ne_sse(unsigned n, const float *a, int16_t *b
|
|||
|
||||
" packssdw %%mm1, %%mm0 \n\t" /* pack parts */
|
||||
" packssdw %%mm3, %%mm2 \n\t"
|
||||
" movq %%mm0, (%3, %0) \n\t"
|
||||
" movq %%mm2, 8(%3, %0) \n\t"
|
||||
" movq %%mm0, (%q3, %0) \n\t"
|
||||
" movq %%mm2, 8(%q3, %0) \n\t"
|
||||
|
||||
" add $16, %0 \n\t"
|
||||
" dec %1 \n\t"
|
||||
|
|
@ -85,12 +85,12 @@ static void pa_sconv_s16le_from_f32ne_sse(unsigned n, const float *a, int16_t *b
|
|||
" je 4f \n\t"
|
||||
|
||||
"3: \n\t"
|
||||
" movss (%2, %0, 2), %%xmm0 \n\t"
|
||||
" movss (%q2, %0, 2), %%xmm0 \n\t"
|
||||
" minss %%xmm5, %%xmm0 \n\t"
|
||||
" maxss %%xmm6, %%xmm0 \n\t"
|
||||
" mulss %%xmm7, %%xmm0 \n\t"
|
||||
" cvtss2si %%xmm0, %4 \n\t"
|
||||
" movw %w4, (%3, %0) \n\t"
|
||||
" movw %w4, (%q3, %0) \n\t"
|
||||
" add $2, %0 \n\t"
|
||||
" dec %1 \n\t"
|
||||
" jne 3b \n\t"
|
||||
|
|
@ -119,8 +119,8 @@ static void pa_sconv_s16le_from_f32ne_sse2(unsigned n, const float *a, int16_t *
|
|||
" je 2f \n\t"
|
||||
|
||||
"1: \n\t"
|
||||
" movups (%2, %0, 2), %%xmm0 \n\t" /* read 8 floats */
|
||||
" movups 16(%2, %0, 2), %%xmm2 \n\t"
|
||||
" movups (%q2, %0, 2), %%xmm0 \n\t" /* read 8 floats */
|
||||
" movups 16(%q2, %0, 2), %%xmm2 \n\t"
|
||||
" minps %%xmm5, %%xmm0 \n\t" /* clamp to 1.0 */
|
||||
" minps %%xmm5, %%xmm2 \n\t"
|
||||
" maxps %%xmm6, %%xmm0 \n\t" /* clamp to -1.0 */
|
||||
|
|
@ -132,7 +132,7 @@ static void pa_sconv_s16le_from_f32ne_sse2(unsigned n, const float *a, int16_t *
|
|||
" cvtps2dq %%xmm2, %%xmm2 \n\t"
|
||||
|
||||
" packssdw %%xmm2, %%xmm0 \n\t"
|
||||
" movdqu %%xmm0, (%3, %0) \n\t"
|
||||
" movdqu %%xmm0, (%q3, %0) \n\t"
|
||||
|
||||
" add $16, %0 \n\t"
|
||||
" dec %1 \n\t"
|
||||
|
|
@ -144,12 +144,12 @@ static void pa_sconv_s16le_from_f32ne_sse2(unsigned n, const float *a, int16_t *
|
|||
" je 4f \n\t"
|
||||
|
||||
"3: \n\t"
|
||||
" movss (%2, %0, 2), %%xmm0 \n\t"
|
||||
" movss (%q2, %0, 2), %%xmm0 \n\t"
|
||||
" minss %%xmm5, %%xmm0 \n\t"
|
||||
" maxss %%xmm6, %%xmm0 \n\t"
|
||||
" mulss %%xmm7, %%xmm0 \n\t"
|
||||
" cvtss2si %%xmm0, %4 \n\t"
|
||||
" movw %w4, (%3, %0) \n\t"
|
||||
" movw %w4, (%q3, %0) \n\t"
|
||||
" add $2, %0 \n\t"
|
||||
" dec %1 \n\t"
|
||||
" jne 3b \n\t"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue