diff options
author | Martin Storsjo <martin@martin.st> | 2013-09-19 14:18:18 +0300 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2013-09-19 14:43:38 +0300 |
commit | 2a233dd31d9d0694f74288edd007a01181a8e1f4 (patch) | |
tree | fb8c8faffc2a0a92e09e037ee805a143aa41f902 /build/make | |
parent | 1600707d350f572d6768a9adb57248ba44c29b82 (diff) | |
download | libvpx-2a233dd31d9d0694f74288edd007a01181a8e1f4.tar libvpx-2a233dd31d9d0694f74288edd007a01181a8e1f4.tar.gz libvpx-2a233dd31d9d0694f74288edd007a01181a8e1f4.tar.bz2 libvpx-2a233dd31d9d0694f74288edd007a01181a8e1f4.zip |
thumb: Extend the regexp for handling negative register indexing
Now the same regexp that previously handled cases such as
"ldr r1, [r2, -r3]" also can handle the first operand being omitted
as in "pld [r2, -r3]".
This fixes building vp9_convolve8*neon.asm in thumb mode (and thus,
for Windows Phone as well).
Change-Id: I20c1c3f2bfb2587fb5fa523b863972a7fe30d8ff
Diffstat (limited to 'build/make')
-rw-r--r-- | build/make/thumb.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/make/thumb.pm b/build/make/thumb.pm index f34728743..545f59f43 100644 --- a/build/make/thumb.pm +++ b/build/make/thumb.pm @@ -47,7 +47,7 @@ sub FixThumbInstructions($$) # this is used, it's used for two subsequent load instructions, # where a hand-written version of it could merge two subsequent # add and sub instructions. - s/^(\s*)((ldr|str)(ne)?)(\s+)(r\d+),\s*\[(\w+), -([^\]]+)\]/$1sub$4$5$7, $7, $8\n$1$2$5$6, [$7]\n$1add$4$5$7, $7, $8/g; + s/^(\s*)((ldr|str|pld)(ne)?)(\s+)(r\d+,)?\s*\[(\w+), -([^\]]+)\]/$1sub$4$5$7, $7, $8\n$1$2$5$6\[$7\]\n$1add$4$5$7, $7, $8/g; # Convert register post indexing to a separate add instruction. # This converts "ldrneb r9, [r0], r2" into "ldrneb r9, [r0]", |