[llvm-commits] [zorg] r104857 - in /zorg/trunk/lnt/lnt: lnttool/__init__.py tests/nt.py
Daniel Dunbar
daniel at zuster.org
Thu May 27 10:48:06 PDT 2010
Author: ddunbar
Date: Thu May 27 12:48:06 2010
New Revision: 104857
URL: http://llvm.org/viewvc/llvm-project?rev=104857&view=rev
Log:
LNT/runtest nt: Add --disable-fp-elim and --disable-lto options.
Modified:
zorg/trunk/lnt/lnt/lnttool/__init__.py
zorg/trunk/lnt/lnt/tests/nt.py
Modified: zorg/trunk/lnt/lnt/lnttool/__init__.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/lnttool/__init__.py?rev=104857&r1=104856&r2=104857&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/lnttool/__init__.py (original)
+++ zorg/trunk/lnt/lnt/lnttool/__init__.py Thu May 27 12:48:06 2010
@@ -184,3 +184,6 @@
cmd = sys.argv[1]
commands[cmd](cmd, sys.argv[2:])
+
+if __name__ == '__main__':
+ main()
Modified: zorg/trunk/lnt/lnt/tests/nt.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/lnt/lnt/tests/nt.py?rev=104857&r1=104856&r2=104857&view=diff
==============================================================================
--- zorg/trunk/lnt/lnt/tests/nt.py (original)
+++ zorg/trunk/lnt/lnt/tests/nt.py Thu May 27 12:48:06 2010
@@ -37,6 +37,8 @@
if opts.relocation_model is not None:
target_llcflags.append('-relocation-model')
target_llcflags.append(opts.relocation_model)
+ if opts.disable_fp_elim:
+ target_llcflags.append('-disable-fp-elim')
# Set the make variables to use.
make_variables = {
@@ -60,6 +62,8 @@
make_variables['DISABLE_JIT'] = '1'
if not opts.test_llc:
make_variables['DISABLE_LLC'] = '1'
+ if not opts.test_lto:
+ make_variables['DISABLE_LTO'] = '1'
if opts.test_llcbeta:
make_variables['ENABLE_LLCBETA'] = '1'
if opts.test_small:
@@ -432,6 +436,9 @@
help=("Set -relocation-model in TARGET_LLCFLAGS "
"[%default]"),
type="str", default=None, metavar="MODEL")
+ group.add_option("", "--disable-fp-elim", dest="disable_fp_elim",
+ help=("Set -disable-fp-elim in TARGET_LLCFLAGS"),
+ action="store_true", default=False)
group.add_option("", "--cflag", dest="cflags",
help="Additional flags to set in TARGET_FLAGS",
@@ -461,6 +468,9 @@
group.add_option("", "--enable-llcbeta", dest="test_llcbeta",
help="Enable LLCBETA tests",
action="store_true", default=False)
+ group.add_option("", "--disable-lto", dest="test_lto",
+ help="Disable use of link-time optimization",
+ action="store_false", default=True)
group.add_option("", "--small", dest="test_small",
help="Use smaller test inputs and disable large tests",
More information about the llvm-commits
mailing list