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

Unified Diff: crosstest/crosstest.py

Issue 427843002: Subzero: Add support for SSE4.1 instructions. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Fix an empty line that was deleted Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | crosstest/runtests.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crosstest/crosstest.py
diff --git a/crosstest/crosstest.py b/crosstest/crosstest.py
index c8e944253ee50d4b02e553e10e178aff3bd2d742..9b64399074021059df6e3d372f929cfb45dd19ed 100755
--- a/crosstest/crosstest.py
+++ b/crosstest/crosstest.py
@@ -43,6 +43,9 @@ if __name__ == '__main__':
metavar='OPTLEVEL',
help='Optimization level ' +
'(m1 and -1 are equivalent)')
+ argparser.add_argument('--mattr', required=False, default='sse2',
+ dest='attr', choices=['sse2', 'sse4.1'],
+ metavar='ATTRIBUTE', help='Target attribute')
argparser.add_argument('--prefix', required=True,
metavar='SZ_PREFIX',
help='String prepended to Subzero symbol names')
@@ -93,6 +96,7 @@ if __name__ == '__main__':
obj_llc = os.path.join(args.dir, base + '.llc.o')
shellcmd(['../llvm2ice',
'-O' + args.optlevel,
+ '-mattr=' + args.attr,
'--target=' + args.target,
'--prefix=' + args.prefix,
'-o=' + asm_sz,
« no previous file with comments | « no previous file | crosstest/runtests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698