Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(347)

Unified Diff: components/cronet/tools/check_no_neon.py

Issue 2060333002: [Cronet] Enforce ARMv7 Cronet doesn't inadvertently use ARM Neon instructions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/cronet/android/BUILD.gn ('k') | components/cronet/tools/cr_cronet.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/tools/check_no_neon.py
diff --git a/components/cronet/tools/check_no_neon.py b/components/cronet/tools/check_no_neon.py
new file mode 100755
index 0000000000000000000000000000000000000000..f9cdff93c1581dcc93ab5ae00ab9b4fcfcf1f665
--- /dev/null
+++ b/components/cronet/tools/check_no_neon.py
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""check_no_neon.py - Check modules do not contain ARM Neon instructions."""
+
+import argparse
+import os
+import sys
+
+
+def main(args):
+ parser = argparse.ArgumentParser(
+ description='Check modules do not contain ARM Neon instructions.')
+ parser.add_argument('objdump', metavar='path/to/ARM/objdump')
+ parser.add_argument('objects', metavar='files/to/check/*.o')
+ opts = parser.parse_args(args)
+ return os.system(opts.objdump + ' -d --no-show-raw-insn ' +
+ opts.objects + ' | grep -q "vld[1-9]\\|vst[1-9]"')
+
+
+if __name__ == '__main__':
+ sys.exit(0 if main(sys.argv[1:]) != 0 else -1)
« no previous file with comments | « components/cronet/android/BUILD.gn ('k') | components/cronet/tools/cr_cronet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698