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

Side by Side Diff: components/cronet/tools/enforce_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: redo objdump path Created 4 years, 5 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/tools/cr_cronet.py ('k') | no next file » | 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 """
7 enforce_no_neon.py - Enforce modules do not contain ARM Neon instructions.
mef 2016/06/28 16:46:24 nit: I don't think this script really enforces no
pauljensen 2016/06/29 12:47:42 Done.
8 """
9
10 import os
11 import sys
12
13 def main():
14 if len(sys.argv) != 3:
15 print 'Usage: ' + os.path.basename(sys.argv[0]) + \
16 ' path/to/ARM/objdump files/to/check/*.o'
17 return 1
18 return os.system(sys.argv[1] + ' -d --no-show-raw-insn ' +
19 sys.argv[2] + ' | grep -q "vld[1-9]\\|vst[1-9]"')
20
21 if __name__ == '__main__':
22 sys.exit(0 if main() != 0 else -1)
OLDNEW
« no previous file with comments | « components/cronet/tools/cr_cronet.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698