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

Unified Diff: pydir/szbuild.py

Issue 639543002: Add cross test for vector itofp and fptoi casts. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: stuff Created 6 years, 2 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
Index: pydir/szbuild.py
diff --git a/pydir/szbuild.py b/pydir/szbuild.py
index e0dbfc7303999ed03fe8069d4a731624e75ef972..e88244b06f6b265faa587258745d1be74e3245c2 100755
--- a/pydir/szbuild.py
+++ b/pydir/szbuild.py
@@ -189,6 +189,25 @@ def ProcessPexe(args, pexe, exe):
shellcmd((
'nm {obj} | sed -n "s/.* [a-zA-Z] //p" > {sym}'
).format(obj=obj_llc, sym=sym_llc), echo=args.verbose)
+ szrt_bitcode_src = (
+ '{root}/toolchain_build/src/subzero/runtime/szrt_i686.ll'
+ ).format(root=nacl_root)
+ szrt_bitcode_obj = (
+ '{root}/toolchain_build/src/subzero/build/szrt_i686.o'
+ ).format(root=nacl_root)
+ if args.force or \
+ NewerThanOrNotThere(szrt_bitcode_src, szrt_bitcode_obj) or \
+ NewerThanOrNotThere(llcbin, szrt_bitcode_obj):
+ shellcmd(['pnacl-translate',
+ '-ffunction-sections',
+ '-c',
+ '-arch', 'x86-32-linux',
+ '-O2',
+ '--pnacl-driver-append-LLC_FLAGS_EXTRA=-externalize',
+ '-o', szrt_bitcode_obj] +
+ args.llc_args +
+ [szrt_bitcode_src],
+ echo=args.verbose)
if args.force or NewerThanOrNotThere(pexe, obj_sz) or \
NewerThanOrNotThere(llvm2ice, obj_sz):
shellcmd([llvm2ice,
@@ -259,6 +278,7 @@ def ProcessPexe(args, pexe, exe):
'{root}/toolchain/linux_x86/pnacl_newlib/translator/x86-32-linux/lib/' +
'{{unsandboxed_irt,irt_query_list}}.o ' +
'{root}/toolchain_build/src/subzero/runtime/szrt.c ' +
+ szrt_bitcode_obj + ' ' +
'-lpthread -lrt'
).format(partial=obj_partial, exe=exe, root=nacl_root),
echo=args.verbose)
« crosstest/test_cast_main.cpp ('K') | « pydir/crosstest.py ('k') | runtime/szrt.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698