Chromium Code Reviews| 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..dc513a3782ce0c5deab606a701a94ebd0954a4e7 |
| --- /dev/null |
| +++ b/components/cronet/tools/check_no_neon.py |
| @@ -0,0 +1,22 @@ |
| +#!/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 os |
| +import sys |
| + |
| +def main(): |
| + if len(sys.argv) != 3: |
|
jbudorick
2016/07/19 18:49:16
nit: if you keep this script, please use argparse.
pauljensen
2016/07/20 15:04:37
Done.
|
| + print 'Usage: ' + os.path.basename(sys.argv[0]) + \ |
| + ' path/to/ARM/objdump files/to/check/*.o' |
| + return 1 |
| + return os.system(sys.argv[1] + ' -d --no-show-raw-insn ' + |
| + sys.argv[2] + ' | grep -q "vld[1-9]\\|vst[1-9]"') |
| + |
| +if __name__ == '__main__': |
| + sys.exit(0 if main() != 0 else -1) |