From c61e40b728513c23fbfb662989a39c806ee40bca Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Fri, 2 Oct 2009 23:11:03 +0000 Subject: ARM: use plain labels for pc-relative addressing Originally committed as revision 20152 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/arm/simple_idct_arm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/arm/simple_idct_arm.S') diff --git a/libavcodec/arm/simple_idct_arm.S b/libavcodec/arm/simple_idct_arm.S index 9e5e621c51..df51c01df2 100644 --- a/libavcodec/arm/simple_idct_arm.S +++ b/libavcodec/arm/simple_idct_arm.S @@ -66,7 +66,7 @@ function simple_idct_ARM, export=1 stmfd sp!, {r4-r11, r14} @ R14 is also called LR @@ at this point, R0=block, other registers are free. add r14, r0, #112 @ R14=&block[8*7], better start from the last row, and decrease the value until row=0, i.e. R12=block. - add r12, pc, #(__constant_ptr__-.-8) @ R12=__constant_ptr__, the vector containing the constants, probably not necessary to reserve a register for it + adr r12, __constant_ptr__ @ R12=__constant_ptr__, the vector containing the constants, probably not necessary to reserve a register for it @@ add 2 temporary variables in the stack: R0 and R14 sub sp, sp, #8 @ allow 2 local variables str r0, [sp, #0] @ save block in sp[0] -- cgit v1.2.3