aarch64: assembler in clang-3.4 ignores the division by two
authorJanne Grunau <janne-libav@jannau.net>
Tue, 13 May 2014 13:47:51 +0000 (15:47 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 13 May 2014 17:44:09 +0000 (19:44 +0200)
Values are positive powers of two, so just replace it with right shift.

libavcodec/aarch64/fft_neon.S

index 5189bfb..9802349 100644 (file)
@@ -348,7 +348,7 @@ function fft\n\()_neon  align=6
         sub             x0,  x28, #\n4*2*8
         ldp             x28, x30, [sp], #16
         movrel          x4,  X(ff_cos_\n)
-        mov             x2,  #\n4/2
+        mov             x2,  #\n4>>1
         b               fft_pass_neon
 endfunc
 .endm