1 https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#Extended-Asm says
3 asm [volatile] ( AssemblerTemplate : [OutputOperands] [ : [InputOperands] [ : [Clobbers] ] ] )
5 which implies that Clobbers is optional even after the third colon, but
6 the gcc used for b2g_try_emulator_dep builds says
8 resample_neon.c: In function 'saturate_32bit_to_16bit':
9 resample_neon.c:50: error: expected string literal before ')' token
11 diff --git a/media/libspeex_resampler/src/resample_neon.c b/media/libspeex_resampler/src/resample_neon.c
12 --- a/media/libspeex_resampler/src/resample_neon.c
13 +++ b/media/libspeex_resampler/src/resample_neon.c
19 static inline int32_t saturate_32bit_to_16bit(int32_t a) {
21 asm ("ssat %[ret], #16, %[a]"
29 static inline int32_t saturate_32bit_to_16bit(int32_t a) {
31 asm ("vmov.s32 d0[0], %[a]\n"
33 "vmov.s16 %[ret], d0[0]\n"