diff --git a/webrtc/common_audio/signal_processing/complex_fft_mips.c b/webrtc/common_audio/signal_processing/complex_fft_mips.c index 3f353b122..34c4f232a 100644 --- a/webrtc/common_audio/signal_processing/complex_fft_mips.c +++ b/webrtc/common_audio/signal_processing/complex_fft_mips.c @@ -139,7 +139,10 @@ int WebRtcSpl_ComplexFFT(int16_t frfi[], int stages, int mode) { [m] "=&r" (m), [istep] "=&r" (istep), [l] "=&r" (l), [k] "=&r" (k), [ptr_j] "=&r" (ptr_j), [tmp] "=&r" (tmp) : [n] "r" (n), [frfi] "r" (frfi), [kSinTable1024] "r" (kSinTable1024) - : "hi", "lo", "$ac1hi", "$ac1lo", "memory" + : "hi", "lo", "memory" +#if defined(MIPS_DSP_R2_LE) + , "$ac1hi", "$ac1lo" +#endif // #if defined(MIPS_DSP_R2_LE) ); return 0; @@ -314,7 +317,10 @@ int WebRtcSpl_ComplexIFFT(int16_t frfi[], int stages, int mode) { [k] "=&r" (k), [round2] "=&r" (round2), [ptr_j] "=&r" (ptr_j), [shift] "=&r" (shift), [scale] "=&r" (scale), [tempMax] "=&r" (tempMax) : [n] "r" (n), [frfi] "r" (frfi), [kSinTable1024] "r" (kSinTable1024) - : "hi", "lo", "$ac1hi", "$ac1lo", "memory" + : "hi", "lo", "memory" +#if defined(MIPS_DSP_R2_LE) + , "$ac1hi", "$ac1lo" +#endif // #if defined(MIPS_DSP_R2_LE) ); return scale; diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/transform_mips.c b/webrtc/modules/audio_coding/codecs/isac/fix/source/transform_mips.c index bf95ee578..656a77ede 100644 --- a/webrtc/modules/audio_coding/codecs/isac/fix/source/transform_mips.c +++ b/webrtc/modules/audio_coding/codecs/isac/fix/source/transform_mips.c @@ -200,6 +200,9 @@ void WebRtcIsacfix_Time2SpecMIPS(int16_t* inre1Q9, [tmpreQ16] "r" (tmpreQ16), [tmpimQ16] "r" (tmpimQ16), [cosptr] "r" (cosptr), [sinptr] "r" (sinptr) : "hi", "lo", "memory" +#if defined(MIPS_DSP_R2_LE) + , "$ac1hi", "$ac1lo", "$ac2hi", "$ac2lo", "$ac3hi", "$ac3lo" +#endif // #if defined(MIPS_DSP_R2_LE) ); // "Fastest" vectors