aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-12-08 15:43:18 -0800
committerDan Albert <danalbert@google.com>2015-12-08 15:43:18 -0800
commit1d6467d83f164f3df6d57d76b9d93eb3190e2254 (patch)
treea88234ea5f66aaa42454f7fe25eab7c53e81efd5 /tests
parenta5738a7318d9655296d76dd05c67388e9520c04f (diff)
downloadndk-1d6467d83f164f3df6d57d76b9d93eb3190e2254.tar.gz
Fix byteswap optimization test for mips.
Previously the test wasn't actually checking for wsbh like it claimed. We need to check that we emit a wsbh followed by a rotate. Also, rotr is a synonym for ror that we need to catch. Change-Id: Ib3a14e1534b00b3d63af222ebf5c56c563d46000
Diffstat (limited to 'tests')
-rwxr-xr-xtests/build/issue17144-byteswap/build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/build/issue17144-byteswap/build.sh b/tests/build/issue17144-byteswap/build.sh
index 47aef0d77..a12f82acb 100755
--- a/tests/build/issue17144-byteswap/build.sh
+++ b/tests/build/issue17144-byteswap/build.sh
@@ -47,7 +47,7 @@ if [ -z "$APP_ABI" -o "$APP_ABI" = "all" -o "$APP_ABI" != "${APP_ABI%%mips*}" ];
fail_panic "can't compile for mips"
grep -qw wsbh issue17144-byteswap.s
fail_panic "mips doesn't use wsbh instruction for __swap16()"
- grep -w rotr issue17144-byteswap.s | grep -qw rotr
+ grep -wA1 wsbh issue17144-byteswap.s | egrep -qw 'rot?r'
fail_panic "mips doesn't use wsbh/rotr instruction for __swap32()"
fi