summaryrefslogtreecommitdiff
path: root/build/make
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2013-09-29 21:22:37 +0300
committerMartin Storsjo <martin@martin.st>2013-09-29 21:32:46 +0300
commite81a3ede4c18153df675a72637973a5c1e53b428 (patch)
treed1dbe554215ab02325440b2dae4e9fae691d7b6f /build/make
parent6903efa93db09df21670fb534d7127993032c574 (diff)
downloadlibvpx-e81a3ede4c18153df675a72637973a5c1e53b428.tar
libvpx-e81a3ede4c18153df675a72637973a5c1e53b428.tar.gz
libvpx-e81a3ede4c18153df675a72637973a5c1e53b428.tar.bz2
libvpx-e81a3ede4c18153df675a72637973a5c1e53b428.zip
thumb: Keep whitespace between arguments as before
Include the whitespace after the first argument's comma in the optional first argument group. This fixes a minor style regression in the converted output since 2a233dd31. Change-Id: I254f4aaff175e2d728d9b6f3c12ede03846adcf1
Diffstat (limited to 'build/make')
-rw-r--r--build/make/thumb.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/make/thumb.pm b/build/make/thumb.pm
index 545f59f43..e1f34c1ec 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|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;
+ 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]",