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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python
2 # Copyright 2016 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 """check_no_neon.py - Check modules do not contain ARM Neon instructions."""
7
8 import argparse
9 import os
10 import sys
11
12
13 def main(args):
14 parser = argparse.ArgumentParser(
15 description='Check modules do not contain ARM Neon instructions.')
16 parser.add_argument('objdump', metavar='path/to/ARM/objdump')
17 parser.add_argument('objects', metavar='files/to/check/*.o')
18 opts = parser.parse_args(args)
19 return os.system(opts.objdump + ' -d --no-show-raw-insn ' +
20 opts.objects + ' | grep -q "vld[1-9]\\|vst[1-9]"')
21
22
23 if __name__ == '__main__':
24 sys.exit(0 if main(sys.argv[1:]) != 0 else -1)
OLDNEW
« 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