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

Side by Side Diff: pydir/run-pnacl-sz.py

Issue 1232483003: Change MIPS to avoid "none-nacl" for unsandboxed tests (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 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
OLDNEW
1 #!/usr/bin/env python2 1 #!/usr/bin/env python2
2 2
3 import argparse 3 import argparse
4 import itertools 4 import itertools
5 import os 5 import os
6 import re 6 import re
7 import subprocess 7 import subprocess
8 import sys 8 import sys
9 import tempfile 9 import tempfile
10 10
11 from utils import shellcmd 11 from utils import shellcmd
12 12
13 13
14 def TargetAssemblerFlags(target): 14 def TargetAssemblerFlags(target):
15 # TODO(stichnot): -triple=i686-nacl should be used for a 15 # TODO(stichnot): -triple=i686-nacl should be used for a
16 # sandboxing test. This means there should be an args.sandbox 16 # sandboxing test. This means there should be an args.sandbox
17 # argument that also gets passed through to pnacl-sz. 17 # argument that also gets passed through to pnacl-sz.
18 # TODO(reed kotler). Need to find out exactly we need to 18 # TODO(reed kotler). Need to find out exactly we need to
19 # add here for Mips32. 19 # add here for Mips32.
20 flags = { 'x8632': ['-triple=i686'], 20 flags = { 'x8632': ['-triple=i686'],
21 'arm32': ['-triple=armv7a', '-mcpu=cortex-a9', '-mattr=+neon'], 21 'arm32': ['-triple=armv7a', '-mcpu=cortex-a9', '-mattr=+neon'],
22 'mips32': ['-triple=mipsel-none-nacl' ] } 22 'mips32': ['-triple=mipsel' ] }
23 return flags[target] 23 return flags[target]
24 24
25 25
26 def TargetDisassemblerFlags(target): 26 def TargetDisassemblerFlags(target):
27 flags = { 'x8632': ['-Mintel'], 27 flags = { 'x8632': ['-Mintel'],
28 'arm32': [], 28 'arm32': [],
29 'mips32':[] } 29 'mips32':[] }
30 return flags[target] 30 return flags[target]
31 31
32 32
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 [asm_temp.name]) 159 [asm_temp.name])
160 160
161 stdout_result = shellcmd(cmd, echo=args.echo_cmd) 161 stdout_result = shellcmd(cmd, echo=args.echo_cmd)
162 if not args.echo_cmd: 162 if not args.echo_cmd:
163 sys.stdout.write(stdout_result) 163 sys.stdout.write(stdout_result)
164 if asm_temp: 164 if asm_temp:
165 os.remove(asm_temp.name) 165 os.remove(asm_temp.name)
166 166
167 if __name__ == '__main__': 167 if __name__ == '__main__':
168 main() 168 main()
OLDNEW
« no previous file with comments | « no previous file | tests_lit/llvm2ice_tests/function_aligned.ll » ('j') | tests_lit/llvm2ice_tests/function_aligned.ll » ('J')

Powered by Google App Engine
This is Rietveld 408576698