native_client/pnacl-llvm-testsuite.git
3 weeks agoAdd missing files for PNaCl. master
JF Bastien [Tue, 25 Nov 2014 00:38:05 +0000 (16:38 -0800)]
Add missing files for PNaCl.

I'm rebasing LLVM's test-suite on the official git repo instead of on the SVN one. These files were missing because I had only added the localmods.

R= dschuff@chromium.org
BUG= https://code.google.com/p/nativeclient/issues/detail?id=3930
TEST= self

Review URL: https://codereview.chromium.org/752333002

3 weeks agoMerge upstream LLVM.
JF Bastien [Mon, 24 Nov 2014 21:34:05 +0000 (13:34 -0800)]
Merge upstream LLVM.

6 weeks ago[AArch64] Add AArch64 Neon intrinsics test produced by emperor
Kristof Beyls [Tue, 4 Nov 2014 10:47:32 +0000 (10:47 +0000)]
[AArch64] Add AArch64 Neon intrinsics test produced by emperor

The test has a basic correctness check for every AArch64 Neon intrinsic,
except for a small number of intrinsics that emperor currently doesn't support
yet.

This adds a new sub-directory SingleSource/UnitTests/Vector/AArch64, as there
wasn’t a sub-directory yet for AArch64-specific test cases.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@221255 91177308-0d34-0410-b5e6-96231b3b80d8

8 weeks agoAdjusted the test to r218293, fix for Bug21034, mangling of casts
Sunil Srivastava [Thu, 23 Oct 2014 23:56:20 +0000 (23:56 +0000)]
Adjusted the test to r218293, fix for Bug21034, mangling of casts

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@220538 91177308-0d34-0410-b5e6-96231b3b80d8

8 weeks agoAdjust 403.gcc/450.soplex for v1.2
Hal Finkel [Thu, 23 Oct 2014 00:31:39 +0000 (00:31 +0000)]
Adjust 403.gcc/450.soplex for v1.2

Some misc. fixes made after 1.0.1 require changes to the input file names for
403.gcc (and thus also the output hash) and the output for 450.soplex. Try to
pick up the benchmark version and use that as the reference key when available
(and when the reference key is not already set). This should allow the test
suite to use v1.2 without breaking the system for currently-happy users of
older versions.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@220454 91177308-0d34-0410-b5e6-96231b3b80d8

8 weeks agoFix the 464.h264ref Makefile to add -fsigned-char on PowerPC/Linux
Hal Finkel [Wed, 22 Oct 2014 22:33:19 +0000 (22:33 +0000)]
Fix the 464.h264ref Makefile to add -fsigned-char on PowerPC/Linux

-fsigned-char is necessary on PowerPC/Linux in order to correctly compile this
benchmark.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@220438 91177308-0d34-0410-b5e6-96231b3b80d8

8 weeks agoFix the 400.perlbench Makefile to add -fgnu89-inline on Linux
Hal Finkel [Wed, 22 Oct 2014 22:30:11 +0000 (22:30 +0000)]
Fix the 400.perlbench Makefile to add -fgnu89-inline on Linux

This is necessary both on x86_64 and PPC64 Linux using glibc 2.12 and 2.15. It
is related to the fact that a header file in this test undefs a number of libc
macros exposing the underlying function definitions.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@220436 91177308-0d34-0410-b5e6-96231b3b80d8

2 months agoUpdate for llvm change.
Rafael Espindola [Thu, 16 Oct 2014 21:28:00 +0000 (21:28 +0000)]
Update for llvm change.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@219968 91177308-0d34-0410-b5e6-96231b3b80d8

2 months ago[PowerPC] Fix lvsr.c and lvsl.c tests
Bill Schmidt [Tue, 7 Oct 2014 13:32:05 +0000 (13:32 +0000)]
[PowerPC] Fix lvsr.c and lvsl.c tests

The new Altivec tests I added to projects/test-suite yesterday
contained incorrect checking of the results.  I apparently checked the
wrong log file during testing and missed this.  /shamefaced

Now the tests actually work...

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@219205 91177308-0d34-0410-b5e6-96231b3b80d8

2 months ago[PATCH][Power] Test vec_lvsl and vec_lvsr
Bill Schmidt [Mon, 6 Oct 2014 19:02:48 +0000 (19:02 +0000)]
[PATCH][Power] Test vec_lvsl and vec_lvsr

This patch adds tests for vec_lvsl and vec_lvsr for all supported
data types.  This tests related changes to altivec.h that support
little endian code generation for these interfaces.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@219138 91177308-0d34-0410-b5e6-96231b3b80d8

3 months agoMake the use of Perf optional
Yi Kong [Thu, 18 Sep 2014 15:50:47 +0000 (15:50 +0000)]
Make the use of Perf optional

Do not try to automatically detect and use perf on Linux, thus giving
user more control of which tool to use.

Also this fixes the mistake that Perf wasn't used when not using
user mode emulation.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@218054 91177308-0d34-0410-b5e6-96231b3b80d8

3 months agoDon't remove perf stats after generating report
Yi Kong [Fri, 5 Sep 2014 10:35:49 +0000 (10:35 +0000)]
Don't remove perf stats after generating report

It has some interesting data that can be useful, like CPU cycles,
number of branch misses.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@217239 91177308-0d34-0410-b5e6-96231b3b80d8

3 months agoAlso exclude 2mm, 3mm and gemm from benchmarking-only mode
Yi Kong [Sun, 31 Aug 2014 21:14:34 +0000 (21:14 +0000)]
Also exclude 2mm, 3mm and gemm from benchmarking-only mode

These programs have really high variance in their execution time, and
frequently produce false positives. Exclude them from benchmarking
only mode until we figure out how to make them less noisy.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@216860 91177308-0d34-0410-b5e6-96231b3b80d8

4 months agoABI-Testsuite: Added FAQ
Sunil Srivastava [Tue, 12 Aug 2014 20:56:44 +0000 (20:56 +0000)]
ABI-Testsuite: Added FAQ

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@215470 91177308-0d34-0410-b5e6-96231b3b80d8

4 months agoABI-Testsuite: Added coll directory
Sunil Srivastava [Wed, 6 Aug 2014 17:32:14 +0000 (17:32 +0000)]
ABI-Testsuite: Added coll directory

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@214978 91177308-0d34-0410-b5e6-96231b3b80d8

4 months agoABI-Testsuite: removed redundent README.txt
Sunil Srivastava [Mon, 28 Jul 2014 21:29:18 +0000 (21:29 +0000)]
ABI-Testsuite: removed redundent README.txt

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@214127 91177308-0d34-0410-b5e6-96231b3b80d8

4 months agoABI-Testsuite: Bulk of the testsuite
Sunil Srivastava [Mon, 28 Jul 2014 21:20:34 +0000 (21:20 +0000)]
ABI-Testsuite: Bulk of the testsuite

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@214126 91177308-0d34-0410-b5e6-96231b3b80d8

4 months agoABI-testsuite: actual testsuite
Sunil Srivastava [Mon, 28 Jul 2014 21:09:21 +0000 (21:09 +0000)]
ABI-testsuite: actual testsuite

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@214120 91177308-0d34-0410-b5e6-96231b3b80d8

4 months agotest commit for the ABI-Testsuite
Sunil Srivastava [Mon, 28 Jul 2014 21:01:10 +0000 (21:01 +0000)]
test commit for the ABI-Testsuite

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@214118 91177308-0d34-0410-b5e6-96231b3b80d8

4 months ago[PATCH][test-suite] Use ctimeit rather than perf for PowerPC
Bill Schmidt [Tue, 22 Jul 2014 20:53:54 +0000 (20:53 +0000)]
[PATCH][test-suite] Use ctimeit rather than perf for PowerPC

A relatively recent patch (r209797) changed RunSafely.sh to use the timeit.sh
script, which uses perf when available in preference to ctimeit.  This causes
problems on some older PowerPC distros, where perf has been notoriously
buggy.  As a result, the entire test suite appears to fail.  There
occasionally appears to be some flaky behavior from perf on newer distros as
well which is less well-understood, but again results in phantom failures.
IBM has recommended use of operf and ocount for a while in preference to perf.

Therefore we'd like to opt out of using perf on PowerPC in this script, even
when perf is available.  As with targets where perf is unavailable, we would
like to fall back to ctimeit instead.  This patch checks "uname -m" for ppc64
or ppc64le to do just that.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@213683 91177308-0d34-0410-b5e6-96231b3b80d8

5 months agoFix oversights in Makefiles where target x86_64h wasn't being checked.
Akira Hatanaka [Wed, 16 Jul 2014 22:52:22 +0000 (22:52 +0000)]
Fix oversights in Makefiles where target x86_64h wasn't being checked.

<rdar://problem/17638809>

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@213208 91177308-0d34-0410-b5e6-96231b3b80d8

5 months agoTry to be compatible with POSIX shell
Justin Bogner [Wed, 25 Jun 2014 18:57:01 +0000 (18:57 +0000)]
Try to be compatible with POSIX shell

The == operator doesn't exist in POSIX's test. We aren't using globs
anyway, so simplify some uses of this to = (for strings) or -eq (for
numbers)

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@211729 91177308-0d34-0410-b5e6-96231b3b80d8

5 months agoDo not pin the process on a specific core
Yi Kong [Mon, 23 Jun 2014 14:41:02 +0000 (14:41 +0000)]
Do not pin the process on a specific core

This breaks concurrent benchmarking and the benefit is not significant.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@211499 91177308-0d34-0410-b5e6-96231b3b80d8

6 months agoAdded LDFLAGS in Makefile for 403.gcc. rdar://17277963
Gerolf Hoflehner [Tue, 17 Jun 2014 22:16:38 +0000 (22:16 +0000)]
Added LDFLAGS in Makefile for 403.gcc. rdar://17277963

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@211128 91177308-0d34-0410-b5e6-96231b3b80d8

6 months agoRemove BENCHMARK_ONLY now that we have a better BENCHMARKING_ONLY flag.
Andrew Trick [Thu, 12 Jun 2014 23:05:41 +0000 (23:05 +0000)]
Remove BENCHMARK_ONLY now that we have a better BENCHMARKING_ONLY flag.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@210856 91177308-0d34-0410-b5e6-96231b3b80d8

6 months agodisable the -lsupc++ specification for powerpc.
Will Schmidt [Thu, 12 Jun 2014 15:14:00 +0000 (15:14 +0000)]
disable the -lsupc++ specification for powerpc.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@210788 91177308-0d34-0410-b5e6-96231b3b80d8

6 months ago[PPC64LE] Fix Altivec 'test1.c' test to be endian-tolerant
Bill Schmidt [Wed, 11 Jun 2014 15:56:24 +0000 (15:56 +0000)]
[PPC64LE] Fix Altivec 'test1.c' test to be endian-tolerant

The test1.c test in the SingleSource/UnitTests/Vector/Altivec
directory makes use of the vec_sld interface.  Unlike most of the
vector interfaces, vec_sld's behavior is not automatically modified
by the compiler for little endian.  (A programmer might use it to
multiply by a power of 2, for example, in which case it should not be
changed.)  Thus code using vec_sld must sometimes be modified when
porting to little endian.  This patch replaces two of the vec_sld
calls with replacement code appropriate for little endian.  A third
instance is correct for both big and little endian and doesn't need to
be modified.  A fourth instance is dead code and therefore doesn't
need to be modified.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@210658 91177308-0d34-0410-b5e6-96231b3b80d8

6 months ago[Mips] Skip AtomicOps test on MIPS 32-bit because this hardware does not
Simon Atanasyan [Sun, 8 Jun 2014 19:17:15 +0000 (19:17 +0000)]
[Mips] Skip AtomicOps test on MIPS 32-bit because this hardware does not
support 8 bytes atomic operations.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@210434 91177308-0d34-0410-b5e6-96231b3b80d8

6 months ago[PATCH, test-suite] Add some Altivec execution tests
Bill Schmidt [Thu, 5 Jun 2014 18:12:53 +0000 (18:12 +0000)]
[PATCH, test-suite] Add some Altivec execution tests

The PowerPC VMX instruction set (also known as Altivec) contains a
number of instructions that have a "big-endian bias"; that is, they
implicitly or explicitly assume that vector elements are numbered
"left to right" within a vector register.  These instructions
therefore do not behave naturally when code is generated for a little
endian target.

These, as well as the better-behaved Altivec instructions, may be
accessed through interfaces defined in <altivec.h>.  For ease of
porting, it is desirable that the Altivec instructions behave as a
programmer would expect for little endian code generation, rather than
how the underlying instructions actually work.

As an example, the vec_mule interface is used to perform a widening
multiply on even elements of a vector.  The even elements, when
numbered in little-endian element order, are the same as the odd
elements when numbered in big-endian element order.  Therefore when
vec_mule is specified in a program, the proper effect is obtained by
generating a vector-multiply-even for a big-endian target, but instead
generating a vector-multiply-odd for a little-endian target.

I will be submitting a number of patches to implement these changes
for little-endian code generation.  For the present, I want to add a
number of new test cases that will test the correct behavior of the
endian-sensitive Altivec instructions for both big- and little-endian
targets.

The new tests in this patch are self-testing; they will abort if the
instructions produce a wrong result.  It seemed to me the best place
to put these tests was with the other run-time Altivec tests, i.e., in
projects/test-suite/SingleSource/UnitTests/Vector/Altivec.  In keeping
with the behavior of the existing tests, I've included reference
output files for each test; however, these are minimal ("exit 0\n")
because of the self-testing nature of the tests.  Please let me know
if there is a better place to put these tests, or any additional
materials I need to provide.

All of these tests currently run correctly on big-endian PPC64
targets, with the exception of unpack.c.  This is because the current
implementations of vec_unpackh and vec_unpackl with a vector pixel
argument do not generate correct code.  This will be fixed in a
follow-on patch that addresses the little endian implementations of
vec_unpack[hl].

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@210277 91177308-0d34-0410-b5e6-96231b3b80d8

6 months agoAdd a benchmarking-only mode to the test suite
Hal Finkel [Thu, 5 Jun 2014 09:24:05 +0000 (09:24 +0000)]
Add a benchmarking-only mode to the test suite

This adds a benchmarking-only mode to the test suite, which excludes those
programs unlikely to use useful as benchmarks. When BENCHMARKING_ONLY is
defined, the following programs should be excluded:

MultiSource/Applications/Burg/burg
MultiSource/Applications/treecc/treecc
MultiSource/Benchmarks/MiBench/office-ispell/office-ispell
MultiSource/Benchmarks/MiBench/security-blowfish/security-blowfish
MultiSource/Benchmarks/Prolangs-C/allroots/allroots
MultiSource/Benchmarks/Prolangs-C/archie-client/archie
MultiSource/Benchmarks/Prolangs-C/assembler/assembler
MultiSource/Benchmarks/Prolangs-C/compiler/compiler
MultiSource/Benchmarks/Prolangs-C++/deriv1/deriv1
MultiSource/Benchmarks/Prolangs-C++/deriv2/deriv2
MultiSource/Benchmarks/Prolangs-C++/family/family
MultiSource/Benchmarks/Prolangs-C/fixoutput/fixoutput
MultiSource/Benchmarks/Prolangs-C/football/football
MultiSource/Benchmarks/Prolangs-C++/fsm/fsm
MultiSource/Benchmarks/Prolangs-C++/garage/garage
MultiSource/Benchmarks/Prolangs-C++/NP/np
MultiSource/Benchmarks/Prolangs-C++/objects/objects
MultiSource/Benchmarks/Prolangs-C++/office/office
MultiSource/Benchmarks/Prolangs-C/plot2fig/plot2fig
MultiSource/Benchmarks/Prolangs-C++/shapes/shapes
MultiSource/Benchmarks/Prolangs-C/simulator/simulator
MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/timberwolfmc
MultiSource/Benchmarks/Prolangs-C++/trees/trees
MultiSource/Benchmarks/Prolangs-C/unix-smail/unix-smail
MultiSource/Benchmarks/Prolangs-C/unix-tbl/unix-tbl
MultiSource/Benchmarks/Prolangs-C++/vcirc/vcirc
SingleSource/Benchmarks/McGill/exptree
SingleSource/Benchmarks/Shootout-C++/hello
SingleSource/Benchmarks/Shootout-C++/reversefile
SingleSource/Benchmarks/Shootout-C++/spellcheck
SingleSource/Benchmarks/Shootout-C++/sumcol
SingleSource/Benchmarks/Shootout-C++/wc
SingleSource/Benchmarks/Shootout-C++/wordfreq
SingleSource/Benchmarks/Shootout/hello
SingleSource/Regression/C++/2003-05-14-array-init
SingleSource/Regression/C++/2003-05-14-expr_stmt
SingleSource/Regression/C/2003-05-14-initialize-string
SingleSource/Regression/C/2003-05-21-BitfieldHandling
SingleSource/Regression/C/2003-05-21-UnionBitfields
SingleSource/Regression/C/2003-05-21-UnionTest
SingleSource/Regression/C/2003-05-22-LocalTypeTest
SingleSource/Regression/C/2003-05-22-VarSizeArray
SingleSource/Regression/C/2003-05-23-TransparentUnion
SingleSource/Regression/C++/2003-06-08-BaseType
SingleSource/Regression/C++/2003-06-08-VirtualFunctions
SingleSource/Regression/C++/2003-06-13-Crasher
SingleSource/Regression/C/2003-06-16-InvalidInitializer
SingleSource/Regression/C/2003-06-16-VolatileError
SingleSource/Regression/C++/2003-08-20-EnumSizeProblem
SingleSource/Regression/C++/2003-09-29-NonPODsByValue
SingleSource/Regression/C/2003-10-12-GlobalVarInitializers
SingleSource/Regression/C/2004-02-03-AggregateCopy
SingleSource/Regression/C/2004-03-15-IndirectGoto
SingleSource/Regression/C/2005-05-06-LongLongSignedShift
SingleSource/Regression/C/2008-01-07-LongDouble
SingleSource/Regression/C++/2008-01-29-ParamAliasesReturn
SingleSource/Regression/C++/2011-03-28-Bitfield
SingleSource/Regression/C/badidx
SingleSource/Regression/C/bigstack
SingleSource/Regression/C++/BuiltinTypeInfo
SingleSource/Regression/C/callargs
SingleSource/Regression/C/casts
SingleSource/Regression/C/compare
SingleSource/Regression/C/ConstructorDestructorAttributes
SingleSource/Regression/C/DuffsDevice
SingleSource/Regression/C++/EH/class_hierarchy
SingleSource/Regression/C++/EH/ConditionalExpr
SingleSource/Regression/C++/EH/ctor_dtor_count
SingleSource/Regression/C++/EH/ctor_dtor_count-2
SingleSource/Regression/C++/EH/dead_try_block
SingleSource/Regression/C++/EH/exception_spec_test
SingleSource/Regression/C++/EH/function_try_block
SingleSource/Regression/C++/EH/inlined_cleanup
SingleSource/Regression/C++/EH/recursive-throw
SingleSource/Regression/C++/EH/simple_rethrow
SingleSource/Regression/C++/EH/simple_throw
SingleSource/Regression/C++/EH/throw_rethrow_test
SingleSource/Regression/C++/fixups
SingleSource/Regression/C++/global_ctor
SingleSource/Regression/C/globalrefs
SingleSource/Regression/C++/global_type
SingleSource/Regression/C++/ofstream_ctor
SingleSource/Regression/C/pointer_arithmetic
SingleSource/Regression/C++/pointer_member
SingleSource/Regression/C++/pointer_method
SingleSource/Regression/C++/pointer_method2
SingleSource/Regression/C/PR10189
SingleSource/Regression/C/PR1386
SingleSource/Regression/C/PR491
SingleSource/Regression/C/PR640
SingleSource/Regression/C++/short_circuit_dtor
SingleSource/Regression/C/sumarray
SingleSource/Regression/C/sumarraymalloc
SingleSource/Regression/C/testtrace
SingleSource/UnitTests/2002-04-17-PrintfChar
SingleSource/UnitTests/2002-05-02-ArgumentTest
SingleSource/UnitTests/2002-05-02-CastTest
SingleSource/UnitTests/2002-05-02-CastTest1
SingleSource/UnitTests/2002-05-02-CastTest2
SingleSource/UnitTests/2002-05-02-CastTest3
SingleSource/UnitTests/2002-05-02-ManyArguments
SingleSource/UnitTests/2002-05-03-NotTest
SingleSource/UnitTests/2002-05-19-DivTest
SingleSource/UnitTests/2002-08-02-CastTest
SingleSource/UnitTests/2002-08-02-CastTest2
SingleSource/UnitTests/2002-08-19-CodegenBug
SingleSource/UnitTests/2002-10-09-ArrayResolution
SingleSource/UnitTests/2002-10-12-StructureArgs
SingleSource/UnitTests/2002-10-12-StructureArgsSimple
SingleSource/UnitTests/2002-10-13-BadLoad
SingleSource/UnitTests/2002-12-13-MishaTest
SingleSource/UnitTests/2003-04-22-Switch
SingleSource/UnitTests/2003-05-02-DependentPHI
SingleSource/UnitTests/2003-05-07-VarArgs
SingleSource/UnitTests/2003-05-12-MinIntProblem
SingleSource/UnitTests/2003-05-14-AtExit
SingleSource/UnitTests/2003-05-26-Shorts
SingleSource/UnitTests/2003-05-31-CastToBool
SingleSource/UnitTests/2003-05-31-LongShifts
SingleSource/UnitTests/2003-07-06-IntOverflow
SingleSource/UnitTests/2003-07-08-BitOpsTest
SingleSource/UnitTests/2003-07-09-LoadShorts
SingleSource/UnitTests/2003-07-09-SignedArgs
SingleSource/UnitTests/2003-07-10-SignConversions
SingleSource/UnitTests/2003-08-05-CastFPToUint
SingleSource/UnitTests/2003-08-11-VaListArg
SingleSource/UnitTests/2003-08-20-FoldBug
SingleSource/UnitTests/2003-09-18-BitFieldTest
SingleSource/UnitTests/2003-10-13-SwitchTest
SingleSource/UnitTests/2003-10-29-ScalarReplBug
SingleSource/UnitTests/2004-02-02-NegativeZero
SingleSource/UnitTests/2004-06-20-StaticBitfieldInit
SingleSource/UnitTests/2004-11-28-GlobalBoolLayout
SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls
SingleSource/UnitTests/2005-05-12-Int64ToFP
SingleSource/UnitTests/2005-05-13-SDivTwo
SingleSource/UnitTests/2005-07-17-INT-To-FP
SingleSource/UnitTests/2005-11-29-LongSwitch
SingleSource/UnitTests/2006-01-29-SimpleIndirectCall
SingleSource/UnitTests/2006-02-04-DivRem
SingleSource/UnitTests/2006-12-01-float_varg
SingleSource/UnitTests/2006-12-04-DynAllocAndRestore
SingleSource/UnitTests/2006-12-07-Compare64BitConstant
SingleSource/UnitTests/2006-12-11-LoadConstants
SingleSource/UnitTests/2007-01-04-KNR-Args
SingleSource/UnitTests/2007-03-02-VaCopy
SingleSource/UnitTests/2007-04-25-weak
SingleSource/UnitTests/2008-04-18-LoopBug
SingleSource/UnitTests/2008-04-20-LoopBug2
SingleSource/UnitTests/2008-07-13-InlineSetjmp
SingleSource/UnitTests/2009-04-16-BitfieldInitialization
SingleSource/UnitTests/2009-12-07-StructReturn
SingleSource/UnitTests/2010-05-24-BitfieldTest
SingleSource/UnitTests/AtomicOps
SingleSource/UnitTests/block-byref-cxxobj-test
SingleSource/UnitTests/block-byref-test
SingleSource/UnitTests/block-call-r7674133
SingleSource/UnitTests/block-copied-in-cxxobj
SingleSource/UnitTests/block-copied-in-cxxobj-1
SingleSource/UnitTests/blockstret
SingleSource/UnitTests/byval-alignment
SingleSource/UnitTests/conditional-gnu-ext
SingleSource/UnitTests/conditional-gnu-ext-cxx
SingleSource/UnitTests/DefaultInitDynArrays
SingleSource/UnitTests/FloatPrecision
SingleSource/UnitTests/initp1
SingleSource/UnitTests/member-function-pointers
SingleSource/UnitTests/printargs
SingleSource/UnitTests/SignlessTypes/cast2
SingleSource/UnitTests/SignlessTypes/cast-bug
SingleSource/UnitTests/SignlessTypes/ccc
SingleSource/UnitTests/SignlessTypes/div
SingleSource/UnitTests/SignlessTypes/factor
SingleSource/UnitTests/SignlessTypes/Large/cast
SingleSource/UnitTests/SignlessTypes/shr
SingleSource/UnitTests/stmtexpr
SingleSource/UnitTests/StructModifyTest
SingleSource/UnitTests/TestLoop
SingleSource/UnitTests/Threads/2010-12-08-tls
SingleSource/UnitTests/Threads/tls
SingleSource/UnitTests/Vector/build
SingleSource/UnitTests/Vector/divides
SingleSource/UnitTests/Vector/sumarray
SingleSource/UnitTests/Vector/sumarray-dbl
SingleSource/UnitTests/vla

SingleSource/UnitTests/Vector/Altivec/2007-01-07-lvsl-lvsr-Regression
SingleSource/UnitTests/Vector/Altivec/alti.sdot
SingleSource/UnitTests/Vector/Altivec/casts
SingleSource/UnitTests/Vector/Altivec/test1

SingleSource/UnitTests/ms_struct-bitfield
SingleSource/UnitTests/ms_struct-bitfield-1
SingleSource/UnitTests/ms_struct-bitfield-init
SingleSource/UnitTests/ms_struct-bitfield-init-1
SingleSource/UnitTests/ms_struct_pack_layout
SingleSource/UnitTests/ms_struct_pack_layout-1

I constructed this exclusion list primarily based on the following experiment:
I ran the test suite 10 times in three configurations: 1) On an IBM POWER7 (P7)
with -O3 -mvsx, 2) On a P7 at -O0 and 3) On an Intel Xeon E5430 with -O3 all
using make -j6. I then used the ministat utility (which performs a T test) to
compare the timings of the two P7 configurations against each other and the
Xeon configuration, requiring a detectable difference at 99.5% confidence. I
looked for tests that showed no significant difference in all three
comparisons. The running configuration here is purposefully noisy, the idea is
to eliminate those tests that are significantly sensitive to startup time, file
I/O time, memory bandwidth, etc., or just too short, and by running many tests
in parallel (non-deterministically), my hope is to eliminate those tests can
cannot usefully serve as benchmarks in a "normal" environment.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@210251 91177308-0d34-0410-b5e6-96231b3b80d8

6 months ago[Mips] Extend RUNTIMELIMIT for the SciMark2-C test when it is running for MIPS target.
Simon Atanasyan [Thu, 5 Jun 2014 04:08:53 +0000 (04:08 +0000)]
[Mips] Extend RUNTIMELIMIT for the SciMark2-C test when it is running for MIPS target.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@210237 91177308-0d34-0410-b5e6-96231b3b80d8

6 months agoRevert "Revert perf tool patch, as it breaks buildbots"
Yi Kong [Thu, 29 May 2014 08:21:43 +0000 (08:21 +0000)]
Revert "Revert perf tool patch, as it breaks buildbots"

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@209797 91177308-0d34-0410-b5e6-96231b3b80d8

6 months agoRevert perf tool patch, as it breaks buildbots
Yi Kong [Wed, 28 May 2014 15:55:42 +0000 (15:55 +0000)]
Revert perf tool patch, as it breaks buildbots

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@209748 91177308-0d34-0410-b5e6-96231b3b80d8

6 months agoUse perf tool for more accurate time measuring on Linux
Yi Kong [Wed, 28 May 2014 13:01:23 +0000 (13:01 +0000)]
Use perf tool for more accurate time measuring on Linux

A wrapper over Linux perf tool which mimics original timeit tool to provide
more accurate time measurements on Linux systems. It automatically falls back
to timeit if any dependency is not installed.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@209732 91177308-0d34-0410-b5e6-96231b3b80d8

7 months ago[Mips] Extentd RUNTIMELIMIT for a couple tests when they are running for
Simon Atanasyan [Thu, 15 May 2014 04:54:11 +0000 (04:54 +0000)]
[Mips] Extentd RUNTIMELIMIT for a couple tests when they are running for
MIPS target.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@208847 91177308-0d34-0410-b5e6-96231b3b80d8

7 months agoUpdate sphereflake.reference_output.small for changes in sqrt()
Justin Bogner [Wed, 14 May 2014 18:54:55 +0000 (18:54 +0000)]
Update sphereflake.reference_output.small for changes in sqrt()

r208341 changed the sqrt used in sphereflake, but only updated
'sphereflake.reference_output'. This changes the small output to
match.

Patch by Robert Lytton! Thanks!

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@208801 91177308-0d34-0410-b5e6-96231b3b80d8

7 months agoXCore target: Add target specific flags to root Makefiles.
Robert Lytton [Tue, 13 May 2014 06:25:06 +0000 (06:25 +0000)]
XCore target: Add target specific flags to root Makefiles.

The default value of XCORE_TARGET_NEEDS_MEMORY is 32 (MB).
It should be noted that the XCore emulator's speed is affected by the size of memory.
Also the amount of host memory required is several times XCore-image memory size.
Thus running several large xcore-images in parallel may result in thrashing!
The default of 32 will require ~300MB of host memory.

As Makefile.config.in is included multiple times (viz: include $(LEVEL)/Makefile.config),
the addition of XCORE_TARGET_FLAGS to X_TARGET_FLAGS is done in Makefile.test

RUNTIMELIMIT is set to a default of 1 hour for the XCore emulator.
Test that take around or more than 1 hour to run have their RUNTIMELIMIT extended.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@208667 91177308-0d34-0410-b5e6-96231b3b80d8

7 months agoUse simple version of sqrt() in sphereflake to avoid library errors
Renato Golin [Thu, 8 May 2014 17:37:00 +0000 (17:37 +0000)]
Use simple version of sqrt() in sphereflake to avoid library errors

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@208341 91177308-0d34-0410-b5e6-96231b3b80d8

8 months ago[test-suite] Add reference output to Obsequi for the small problem size (--small)
Daniel Sanders [Thu, 10 Apr 2014 15:52:40 +0000 (15:52 +0000)]
[test-suite] Add reference output to Obsequi for the small problem size (--small)

Reference generated from trunk clang for MIPS and verified with clang for
X86_64 (from clang_3.0-6ubuntu3_amd64.deb in Ubuntu).

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@205970 91177308-0d34-0410-b5e6-96231b3b80d8

8 months agoRemove some pointless forward declarations of std::complex.
Ben Langmuir [Tue, 25 Mar 2014 04:35:27 +0000 (04:35 +0000)]
Remove some pointless forward declarations of std::complex.

According to C++ 17.6.4.2.1 these are undefined, and after r204082 they
will not compile against libc++ with clang.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@204701 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoEnable sphereflake for XCore target
Robert Lytton [Tue, 18 Mar 2014 12:50:44 +0000 (12:50 +0000)]
Enable  sphereflake for XCore target

Correct expected sphereflake.reference_output.small

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@204147 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoRemoving stderr output from sphereflake
Renato Golin [Tue, 18 Mar 2014 10:31:54 +0000 (10:31 +0000)]
Removing stderr output from sphereflake

Avoiding issues with different output in different systems.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@204136 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoAdding C-based sin/cos functions to sphereflake
Renato Golin [Tue, 18 Mar 2014 10:01:37 +0000 (10:01 +0000)]
Adding C-based sin/cos functions to sphereflake

Standard libraries have slightly different results on different targets.
To make the output reproducible in any target we need some C-based
implementation that is simple enough to be the same on all archs.

We could create a common test-suite library for all those functions
(sin/cos, sqrt, rand, etc) and change all tests that were cooked to
accept bogus results to use them, but that's for another commit.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@204133 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoAdding a few more EH tests to Regression/C++
Renato Golin [Thu, 13 Mar 2014 22:30:11 +0000 (22:30 +0000)]
Adding a few more EH tests to Regression/C++

Adding a few more corner cases to EH testing, all passing on both
x86_64 and ARM. If this breaks any other architecture, feel free to
revert and open a bug in bugzilla.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@203860 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoDisable timing for MultiSource/Benchmarks/SciMark2-C
Robert Lytton [Tue, 11 Mar 2014 18:51:38 +0000 (18:51 +0000)]
Disable timing for  MultiSource/Benchmarks/SciMark2-C

Return dummy stopwatch timings for all targets.
Otherwise the timer may cause inconsistency between platforms.
(XCore timer was wrapping)

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@203597 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoReplace stderr with stdout to make output deterministic
Robert Lytton [Mon, 10 Mar 2014 11:14:51 +0000 (11:14 +0000)]
Replace stderr with stdout to make output deterministic

MultiSource/Benchmarks/mafft

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@203454 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: remove tests that require fork()
Robert Lytton [Mon, 10 Mar 2014 11:14:47 +0000 (11:14 +0000)]
XCore target: remove tests that require fork()

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@203453 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoIf LITTLE_ENDIAN is not defined but __ORDER_LITTLE_ENDIAN__ is, locally define LITTLE...
Robert Lytton [Mon, 3 Mar 2014 11:22:56 +0000 (11:22 +0000)]
If LITTLE_ENDIAN is not defined but __ORDER_LITTLE_ENDIAN__ is, locally define LITTLE_ENDIAN.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202702 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls
Robert Lytton [Mon, 3 Mar 2014 11:22:52 +0000 (11:22 +0000)]
XCore target: add support to build SingleSource/UnitTests/2005-05-11-Popcount-ffs-fls

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202701 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Applications/SIBsim4
Robert Lytton [Mon, 3 Mar 2014 11:22:49 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Applications/SIBsim4

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202700 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Benchmarks/sim/sim.c
Robert Lytton [Mon, 3 Mar 2014 11:22:45 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Benchmarks/sim/sim.c

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202699 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build SingleSource/Benchmarks/Misc-C++-EH/spirit.cpp
Robert Lytton [Mon, 3 Mar 2014 11:22:42 +0000 (11:22 +0000)]
XCore target: add support to build SingleSource/Benchmarks/Misc-C++-EH/spirit.cpp

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202698 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Benchmarks/MallocBench/gs
Robert Lytton [Mon, 3 Mar 2014 11:22:38 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Benchmarks/MallocBench/gs

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202697 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Applications/JM/lencod
Robert Lytton [Mon, 3 Mar 2014 11:22:34 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Applications/JM/lencod

XCore requires C-linkage const data to be consistently declared

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202696 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Benchmarks/Prolangs-C++/ocean
Robert Lytton [Mon, 3 Mar 2014 11:22:30 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Benchmarks/Prolangs-C++/ocean

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202695 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Benchmarks/Prolangs-C++/city
Robert Lytton [Mon, 3 Mar 2014 11:22:26 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Benchmarks/Prolangs-C++/city

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202694 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Applications/oggenc/oggenc.c
Robert Lytton [Mon, 3 Mar 2014 11:22:22 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Applications/oggenc/oggenc.c

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202693 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Applications/hexxagon
Robert Lytton [Mon, 3 Mar 2014 11:22:18 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Applications/hexxagon

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202692 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Applications/lua
Robert Lytton [Mon, 3 Mar 2014 11:22:15 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Applications/lua

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202691 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Benchmarks/MallocBench/espresso
Robert Lytton [Mon, 3 Mar 2014 11:22:11 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Benchmarks/MallocBench/espresso

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202690 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Applications/lambda-0.1.3
Robert Lytton [Mon, 3 Mar 2014 11:22:07 +0000 (11:22 +0000)]
XCore target: add support to build MultiSource/Applications/lambda-0.1.3

XCore target does not support getcwd() so explicitly print expected string.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202689 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: add support to build MultiSource/Applications/minisat
Robert Lytton [Thu, 27 Feb 2014 12:45:30 +0000 (12:45 +0000)]
XCore target: add support to build MultiSource/Applications/minisat

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202388 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoReplace stderr with stdout to make deterministic
Robert Lytton [Thu, 27 Feb 2014 12:45:26 +0000 (12:45 +0000)]
Replace stderr with stdout to make deterministic

MultiSource/Benchmarks/mediabench/mpeg2/mpeg2dec

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202387 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoReplace stderr with stdout to make deterministic
Robert Lytton [Thu, 27 Feb 2014 12:45:20 +0000 (12:45 +0000)]
Replace stderr with stdout to make deterministic

MultiSource/Benchmarks/Prolangs-C/cdecl

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202386 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoReplace stdout with stderr to make deterministic
Robert Lytton [Thu, 27 Feb 2014 12:45:16 +0000 (12:45 +0000)]
Replace stdout with stderr to make deterministic

SingleSource/Benchmarks/Linpack

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202385 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoReplace stderr with stdout to make deterministic
Robert Lytton [Thu, 27 Feb 2014 12:45:12 +0000 (12:45 +0000)]
Replace stderr with stdout to make deterministic

MultiSource/Benchmarks/Trimaran/netbench-url

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202384 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: skip tests xcore can't run
Robert Lytton [Thu, 27 Feb 2014 12:45:08 +0000 (12:45 +0000)]
XCore target: skip tests xcore can't run

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202383 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoXCore target: only build timeit-target if USER_MODE_EMULATION not defined
Robert Lytton [Thu, 27 Feb 2014 12:45:00 +0000 (12:45 +0000)]
XCore target: only build timeit-target if USER_MODE_EMULATION not defined

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202382 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoAdd support for unaligned readBE32bit and writeBE32bit
Robert Lytton [Thu, 27 Feb 2014 12:44:57 +0000 (12:44 +0000)]
Add support for unaligned readBE32bit and writeBE32bit

XCore target does not support unaligned memory access.
Add support to MultiSource/Applications/ALAC.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202381 91177308-0d34-0410-b5e6-96231b3b80d8

9 months agoAdd AArch64 detection, just like in LLVM
Renato Golin [Wed, 26 Feb 2014 17:07:25 +0000 (17:07 +0000)]
Add AArch64 detection, just like in LLVM

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@202279 91177308-0d34-0410-b5e6-96231b3b80d8

10 months agoAdd AArch64 port for test-suite.
Jiangning Liu [Fri, 14 Feb 2014 02:47:17 +0000 (02:47 +0000)]
Add AArch64 port for test-suite.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@201382 91177308-0d34-0410-b5e6-96231b3b80d8

10 months agoRe-enable EH tests on ARM due to EHABI changes
Renato Golin [Wed, 29 Jan 2014 11:53:43 +0000 (11:53 +0000)]
Re-enable EH tests on ARM due to EHABI changes

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@200389 91177308-0d34-0410-b5e6-96231b3b80d8

10 months agoFix signature of main() to use 'int' rather than 'int32_t'
Robert Lytton [Mon, 27 Jan 2014 10:39:34 +0000 (10:39 +0000)]
Fix signature of main() to use 'int' rather than 'int32_t'

For the XCore target's Newlib, the definition of 'int32_t' is
  "typedef signed long int32_t;"
'signed long' is not acceptable in main()'s signature.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@200207 91177308-0d34-0410-b5e6-96231b3b80d8

10 months agosgefa: Fix invalid memory access
Tobias Grosser [Sun, 26 Jan 2014 18:51:00 +0000 (18:51 +0000)]
sgefa: Fix invalid memory access

In test case 4 all elements of the row are zero such that
the loop is exited due to the i < n condition. However, before
we can check this condition, we first access out of bound memory.
Switching the conditions fixes this problem.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@200154 91177308-0d34-0410-b5e6-96231b3b80d8

11 months agoThis test works just fine on SPARC now.
Jakob Stoklund Olesen [Thu, 16 Jan 2014 16:05:53 +0000 (16:05 +0000)]
This test works just fine on SPARC now.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@199395 91177308-0d34-0410-b5e6-96231b3b80d8

12 months agovoronoi: Make printing of negative NaNs consistent
Tobias Grosser [Tue, 3 Dec 2013 01:00:04 +0000 (01:00 +0000)]
voronoi: Make printing of negative NaNs consistent

The difference between printing of negative NaNs caused trouble with
the reference output hashes. We now always canonicalize to positive
NaNs.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@196186 91177308-0d34-0410-b5e6-96231b3b80d8

12 months agoWork-around for ClamAV uncertainty in test-suite
Renato Golin [Mon, 25 Nov 2013 15:00:27 +0000 (15:00 +0000)]
Work-around for ClamAV uncertainty in test-suite

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@195646 91177308-0d34-0410-b5e6-96231b3b80d8

13 months agoRename mn() to main() in this new test.
Bob Wilson [Mon, 4 Nov 2013 17:48:37 +0000 (17:48 +0000)]
Rename mn() to main() in this new test.

Bill added this new test in 193961, but it doesn't link and is breaking
all of our testers.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@193998 91177308-0d34-0410-b5e6-96231b3b80d8

13 months agoPR10189 appears to be fixed.
Bill Wendling [Sun, 3 Nov 2013 17:25:25 +0000 (17:25 +0000)]
PR10189 appears to be fixed.

Add this as a testcase for PR10189. It appears to be fixed now, but we don't
want it to regress.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@193961 91177308-0d34-0410-b5e6-96231b3b80d8

13 months agoLinpack: Use a fixed number of iterations for the linpack benchmark
Arnold Schwaighofer [Sat, 2 Nov 2013 17:42:36 +0000 (17:42 +0000)]
Linpack: Use a fixed number of iterations for the linpack benchmark

Before, the benchmark used the executation time of running a loop containing
some function calls in the computation of how many iterations to run a later
loop.

Replace this by a fixed number of iterations.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@193930 91177308-0d34-0410-b5e6-96231b3b80d8

14 months ago__builtin_stdarg_start was renamed __builtin_va_start a long time ago.
Bill Wendling [Wed, 16 Oct 2013 09:03:16 +0000 (09:03 +0000)]
__builtin_stdarg_start was renamed __builtin_va_start a long time ago.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@192779 91177308-0d34-0410-b5e6-96231b3b80d8

14 months agoRemove TEST.profile.*
Rafael Espindola [Mon, 14 Oct 2013 16:52:42 +0000 (16:52 +0000)]
Remove TEST.profile.*

They used the now removed profiling options in opt.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@192607 91177308-0d34-0410-b5e6-96231b3b80d8

14 months ago[projects/test-suite] Fix RUNSAFELY make variable definition.
Jack Carter [Fri, 11 Oct 2013 19:33:58 +0000 (19:33 +0000)]
[projects/test-suite] Fix RUNSAFELY make variable definition.

 To allow the RUNUNDER script to be run with parameters, the
 the definition of RUNSAFELY needs to quote the interpolation
 of RUNUNDER.

Patch by Doug Gilmore

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@192485 91177308-0d34-0410-b5e6-96231b3b80d8

15 months agoFix a buildbot test failure caused by paths longer than the expected 200 characters...
Chris Matthews [Wed, 18 Sep 2013 04:24:57 +0000 (04:24 +0000)]
Fix a buildbot test failure caused by paths longer than the expected 200 characters.  Replace path buffer size with the standard PATH_MAX from limits.h. I think this is a very safe change, but please revert if it causes problems.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@190918 91177308-0d34-0410-b5e6-96231b3b80d8

15 months agoFix undefined behaviour by moving safety test before the memory loads. Patch
Nick Lewycky [Tue, 17 Sep 2013 05:26:07 +0000 (05:26 +0000)]
Fix undefined behaviour by moving safety test before the memory loads. Patch
by Jim Stichnoth!

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@190848 91177308-0d34-0410-b5e6-96231b3b80d8

16 months agoAllow for test suite to be run under Qemu and other host emulators.
Reed Kotler [Fri, 2 Aug 2013 23:58:19 +0000 (23:58 +0000)]
Allow for test suite to be run under Qemu and other host emulators.

Patch by Doug Gilmore of Imagination technologies.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@187691 91177308-0d34-0410-b5e6-96231b3b80d8

16 months agosqlite3: Bring back -DSQLITE_THREADSAFE=0 to unbreak the ARM LNT bot.
Benjamin Kramer [Sat, 27 Jul 2013 20:48:37 +0000 (20:48 +0000)]
sqlite3: Bring back -DSQLITE_THREADSAFE=0 to unbreak the ARM LNT bot.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@187311 91177308-0d34-0410-b5e6-96231b3b80d8

16 months agonbench: just disable inclusion of malloc.h, LLVM doesn't support platforms that still...
Benjamin Kramer [Sat, 27 Jul 2013 18:49:59 +0000 (18:49 +0000)]
nbench: just disable inclusion of malloc.h, LLVM doesn't support platforms that still need it anyways.

Fixes the test on recent FreeBSDs.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@187308 91177308-0d34-0410-b5e6-96231b3b80d8

16 months agosqlite3: Remove preprocessor defines that should be disabled.
Benjamin Kramer [Sat, 27 Jul 2013 17:52:54 +0000 (17:52 +0000)]
sqlite3: Remove preprocessor defines that should be disabled.

The source code uses #ifdef so the =0 had no effect. Should unbreak tests on
FreeBSD which misses fdatasync.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@187307 91177308-0d34-0410-b5e6-96231b3b80d8

16 months ago[PowerPC] Support powerpc64le as a syntax-checking target.
Bill Schmidt [Fri, 26 Jul 2013 01:36:25 +0000 (01:36 +0000)]
[PowerPC] Support powerpc64le as a syntax-checking target.

This patch modifies the config.guess file to do the appropriate thing
on a system identifying itself as powerpc64le Linux.  As there
currently is no such system, there is nothing to test.  This is done
for completeness to accompany the LLVM and Clang patches to support
powerpc64le as a syntax-checking target.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@187181 91177308-0d34-0410-b5e6-96231b3b80d8

18 months agoAdd the ability to have Mips specific single and multi source tests.
Reed Kotler [Fri, 21 Jun 2013 06:48:43 +0000 (06:48 +0000)]
Add the ability to have Mips specific single and multi source tests.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@184530 91177308-0d34-0410-b5e6-96231b3b80d8

19 months agoFix use of EXECUTION_ENVIRONMENT_OVERRIDES.
Daniel Dunbar [Thu, 9 May 2013 01:15:27 +0000 (01:15 +0000)]
Fix use of EXECUTION_ENVIRONMENT_OVERRIDES.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@181499 91177308-0d34-0410-b5e6-96231b3b80d8

19 months agoForce ffp-contract=off on PowerPC/Linux
Hal Finkel [Mon, 6 May 2013 23:03:52 +0000 (23:03 +0000)]
Force ffp-contract=off on PowerPC/Linux

In order for the test-suite outputs to match the reference outputs we need to
specify -ffp-contract=off. Not only does extra FMA precision cause differences
between the outputs and the reference outputs, but also between our output and
that of gcc (because the two compilers sometimes make slightly different
contraction choices). Fortunately, providing -ffp-contract=off to both
compilers reveals agreement. Older versions of gcc did not support
-ffp-contract, and if using such a version, you'll need to use the reference
outputs (which you should be able to do now).

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@181270 91177308-0d34-0410-b5e6-96231b3b80d8

19 months agoAlways enable hashed program output when using reference outputs
Hal Finkel [Mon, 6 May 2013 22:42:09 +0000 (22:42 +0000)]
Always enable hashed program output when using reference outputs

Because several of the reference outputs require hashed output, running
with reference outputs but without hashed program output yields anomalous
failures.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@181260 91177308-0d34-0410-b5e6-96231b3b80d8

19 months agoAdd other big-endian reference outputs
Hal Finkel [Mon, 6 May 2013 22:20:27 +0000 (22:20 +0000)]
Add other big-endian reference outputs

In the name of getting reasonable feedback from the buildbots (and other
test-suite runs that use the reference outputs), add big-endian reference
outputs for the remaining endian-sensitive tests. Some of these tests should
probably be fixed in other ways, and I'll continue to work on that in the
future.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@181259 91177308-0d34-0410-b5e6-96231b3b80d8

19 months agoFix office-ispell big-endian reference output
Hal Finkel [Mon, 6 May 2013 22:15:13 +0000 (22:15 +0000)]
Fix office-ispell big-endian reference output

As Daniel has mentioned, this test is completely broken (on both big and little
endian systems, it just errors out). On top of that, there seems to be some
endian sensitivity in the code that checks the file magic. As a result, on big
endian systems, the error message contains the full path of the input file
(which makes it impossible to create a reference output).

Here I've slightly modified the test so that it only prints the base path name
on big endian systems (so that I can create a reference output), and I've added
that reference output. This change can be reverted once the test is actually
fixed to do something useful.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@181258 91177308-0d34-0410-b5e6-96231b3b80d8

19 months agoKeep Makefile.spec in sync with Makefile.programs.
Daniel Dunbar [Sat, 27 Apr 2013 00:07:47 +0000 (00:07 +0000)]
Keep Makefile.spec in sync with Makefile.programs.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@180650 91177308-0d34-0410-b5e6-96231b3b80d8

19 months ago[tests] Add big-endian specific reference outputs for some tests.
Daniel Dunbar [Fri, 26 Apr 2013 23:40:04 +0000 (23:40 +0000)]
[tests] Add big-endian specific reference outputs for some tests.
 - The outputs themselves are taken from Hal's PPC64 runs.

 - I only added outputs for tests where I verified that the code was not
   endian-portable, and where the tests did real work unrelated to that
   importability. There are other tests (like the bitfield ones, and the cast
   ones) which are not endian-portable but where the nature of the test is tied
   to the exact memory layout. Those tests I feel should be rewritten to be
   endian agnostic.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@180649 91177308-0d34-0410-b5e6-96231b3b80d8

19 months ago[tests] Fix automative-bitcount test for big-endian LP64 systems.
Daniel Dunbar [Fri, 26 Apr 2013 23:39:54 +0000 (23:39 +0000)]
[tests] Fix automative-bitcount test for big-endian LP64 systems.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@180648 91177308-0d34-0410-b5e6-96231b3b80d8

19 months agoAdd support for endian-specific reference outputs.
Daniel Dunbar [Fri, 26 Apr 2013 23:39:50 +0000 (23:39 +0000)]
Add support for endian-specific reference outputs.
 - Use naming convention such as ".reference_output.big-endian" or, for type
   specific outputs, something like ".reference_output.big-endian.small".

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@180647 91177308-0d34-0410-b5e6-96231b3b80d8