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

Side by Side Diff: crosstest/crosstest.py

Issue 397833002: Lower the rest of the vector arithmetic operations. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Rebase 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 unified diff | Download patch
« no previous file with comments | « no previous file | crosstest/test_arith.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python2 1 #!/usr/bin/env python2
2 2
3 import argparse 3 import argparse
4 import os 4 import os
5 import re 5 import re
6 import subprocess 6 import subprocess
7 import sys 7 import sys
8 import tempfile 8 import tempfile
9 9
10 sys.path.insert(0, '../pydir') 10 sys.path.insert(0, '../pydir')
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 elif use_llc: 123 elif use_llc:
124 shellcmd([os.path.join(llvm_bin_path, 'llc'), 124 shellcmd([os.path.join(llvm_bin_path, 'llc'),
125 '-filetype=obj', 125 '-filetype=obj',
126 '-o=' + obj_llc, 126 '-o=' + obj_llc,
127 bitcode]) 127 bitcode])
128 objs.append(obj_llc) 128 objs.append(obj_llc)
129 else: 129 else:
130 objs.append(bitcode) 130 objs.append(bitcode)
131 131
132 linker = 'clang' if os.path.splitext(args.driver)[1] == '.c' else 'clang++' 132 linker = 'clang' if os.path.splitext(args.driver)[1] == '.c' else 'clang++'
133 shellcmd([os.path.join(llvm_bin_path, linker), '-g', '-m32', args.driver] + 133 # TODO: Remove -mstackrealign after Subzero supports stack alignment.
134 objs + 134 shellcmd([os.path.join(llvm_bin_path, linker), '-g', '-m32',
135 '-mstackrealign', args.driver] + objs +
135 ['-lm', '-lpthread', '-o', os.path.join(args.dir, args.output)]) 136 ['-lm', '-lpthread', '-o', os.path.join(args.dir, args.output)])
OLDNEW
« no previous file with comments | « no previous file | crosstest/test_arith.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698