Evgeniy Stepanov
c0ae3dfc3a
[asan] A test was reverted, but not "svn rm"-ed in r202016.
...
llvm-svn: 202025
2014-02-24 11:43:47 +00:00
Evgeniy Stepanov
4c32d16c76
Revert r202014.
...
Failing on the bots for an unknown reason.
llvm-svn: 202016
2014-02-24 10:21:44 +00:00
Evgeniy Stepanov
567e0eef4c
[asan] Add a test for interceptors in shared libraries.
...
llvm-svn: 202014
2014-02-24 10:04:42 +00:00
Evgeniy Stepanov
d512234d7e
[asan] Avoid hardcoding library path in test binary.
...
llvm-svn: 202013
2014-02-24 10:03:33 +00:00
Kostya Serebryany
0548c79859
[tsan] add coarse-grained lock around the DeadlockDetector. We can do better than that, but that's a start.
...
llvm-svn: 201861
2014-02-21 15:07:18 +00:00
Alexey Samsonov
04e7ad29ea
[CMake] Introduce check-all command for standalone compiler-rt build
...
llvm-svn: 201780
2014-02-20 12:36:26 +00:00
Alexey Samsonov
35a66d15d4
Move config for sanitizer_common tests under test/ for consistency
...
llvm-svn: 201779
2014-02-20 12:18:08 +00:00
Alexey Samsonov
5e6d83258e
[CMake] lit tests shouldn't depend on runtimes in standalone build
...
llvm-svn: 201771
2014-02-20 09:47:18 +00:00
Alexey Samsonov
31043152d3
Add rudimentary support for running compiler-rt lit tests with GCC
...
llvm-svn: 201680
2014-02-19 15:13:14 +00:00
Kostya Serebryany
699b975014
[tsan] improve the test that checks for lock inversion with 3 locks
...
llvm-svn: 201676
2014-02-19 14:24:31 +00:00
Kostya Serebryany
b51f8d4990
[tsan] when printing a mutex, also print its address. Properly print the deadlock report.
...
llvm-svn: 201675
2014-02-19 14:17:25 +00:00
Alexey Samsonov
8067448dfe
[CMake] Use host compiler to run lit tests in standalone mode
...
llvm-svn: 201674
2014-02-19 13:45:49 +00:00
Evgeniy Stepanov
cc8e58bc46
[asan] Ensure that stack is limited before attempting to overflow it.
...
Very bad things happen otherwise.
llvm-svn: 201670
2014-02-19 12:43:27 +00:00
Alexey Samsonov
cd8535a96d
[CMake] Introduce COMPILER_RT_INCLUDE_TESTS option
...
llvm-svn: 201666
2014-02-19 11:18:47 +00:00
Evgeniy Stepanov
2274ba7716
[asan] Improve stack overflow detection.
...
There are more cases when those manifest as an access below SP.
llvm-svn: 201664
2014-02-19 11:02:46 +00:00
Alexey Samsonov
aa980c760b
[CMake] Add the way to run tests in standalone build.
...
1) Depend on llvm-config (configured in LLVM_CONFIG_PATH) to
get necessary LLVM source/binary directories.
2) Add basic support for running lit tests (check-xsan commands).
For now this "support" is far from what we want:
* unit tests are not built currently.
* lit tests use Clang/compiler-rt from LLVM build directory,
not the host compiler or just-built compiler-rt libraries.
We should make a choice on the way we intend ti run compiler-rt lit testsuite:
a) use either Clang from LLVM build tree, or the host compiler.
b) use either just-built runtimes, or the runtimes shipped with the
host compiler.
Using just-built runtimes is tricky - we have to know where to put them, so that
Clang/GCC driver would pick them up (and not overwrite the existing runtimes).
Using a host compiler instead of Clang from LLVM build tree will give us a chance to
run lit tests under GCC (which already has support for several sanitizers).
That is, I tend to make the following choice: if we're in a standalone compiler-rt
build, use host compiler with its set of runtime libraries to run lit tests.
This will effectively decouple "make compiler-rt" and "make check-compiler-rt" in
a standalone build - the latter wouldn't invoke the former. Note that if we decide
to fix LLVM/Clang/compiler-rt build system so that it would configure/build
compiler-rt with just-built Clang (as we do in Makefile-based build), this will not
be a problem - we can add a dependency to ensure that clang/compiler-rt are rebuilt
before running compiler-rt tests.
llvm-svn: 201656
2014-02-19 10:04:29 +00:00
Kostya Serebryany
37ce26cb16
[sanitizer] when reporting a deadlock also report the lock cycle
...
llvm-svn: 201576
2014-02-18 14:56:19 +00:00
Kostya Serebryany
bd86a29a2a
[sanitizer] make sure the deadlock detector survives the change of epochs; add a test and a comment
...
llvm-svn: 201572
2014-02-18 13:41:49 +00:00
Evgeniy Stepanov
b036778bdb
[asan] Relax stack-overflow test.
...
llvm-svn: 201571
2014-02-18 13:11:40 +00:00
Kostya Serebryany
aa416c39cd
[tsan] in deadlock detector do not register locks on their creation and unregister them on destruction; added a relevant test
...
llvm-svn: 201568
2014-02-18 12:50:31 +00:00
Evgeniy Stepanov
a50abe6656
[asan] Disable stack-overflow test on main thread.
...
Failing on some bots.
llvm-svn: 201567
2014-02-18 12:29:39 +00:00
Evgeniy Stepanov
65b959afad
[asan] Stack overflow detection.
...
Report segmentation faults near or below stack bottom as stack-overflow
(not stack-buffer-overflow!).
llvm-svn: 201565
2014-02-18 11:49:52 +00:00
Evgeniy Stepanov
1b16a9d3b0
[asan] Fix one test on OSX.
...
llvm-svn: 201564
2014-02-18 11:32:24 +00:00
Kostya Serebryany
67bf8bd124
[tsan] one more lit test for deadlock detector; more to come
...
llvm-svn: 201554
2014-02-18 09:08:03 +00:00
Alexey Samsonov
2769570556
Simplify lit test configs for LSan and UBSan by using a generic config
...
llvm-svn: 201553
2014-02-18 08:56:49 +00:00
Alexey Samsonov
eb6ef12203
Drop test/asan/GenericConfig directory
...
llvm-svn: 201552
2014-02-18 08:24:28 +00:00
Evgeniy Stepanov
77d9ae6c0f
[asan] Replace rand_r with rand in test.
...
llvm-svn: 201548
2014-02-18 08:03:44 +00:00
Alexey Samsonov
b73db72a17
[CMake] Simplify setting compile flag disabling RTTI
...
llvm-svn: 201547
2014-02-18 07:52:40 +00:00
Alexey Samsonov
4dcbe7e959
Remove debug print
...
llvm-svn: 201544
2014-02-18 07:30:37 +00:00
Alexey Samsonov
1c9b9bcb5c
Simplify defining Clang compile flags in lit configs
...
llvm-svn: 201513
2014-02-17 13:08:10 +00:00
Evgeniy Stepanov
9e629abf1e
[asan] Add a test for stack unwinding in new and delete.
...
llvm-svn: 201511
2014-02-17 11:52:29 +00:00
Evgeniy Stepanov
6c34935292
[asan] Replace posix_memalign with memalign in test.
...
Android does not provide posix_memalign.
llvm-svn: 201420
2014-02-14 15:02:36 +00:00
Alexey Samsonov
9a70077b47
[ASan] Rename asan_runtime_libraries to asan. Re-enable tests on Android.
...
llvm-svn: 201417
2014-02-14 14:45:13 +00:00
Evgeniy Stepanov
cbb2d5eee4
[asan] Disabled one more test on Android.
...
llvm-svn: 201416
2014-02-14 14:37:13 +00:00
Evgeniy Stepanov
44f5d8a49f
[asan] Change stack uar test to not use ulimit.
...
Because of how Android test runner is implemented, ulimit in RUN: line
gets executed on the host machine and does not affect the test.
llvm-svn: 201415
2014-02-14 14:36:42 +00:00
Alexey Samsonov
e6a6183e9b
Move TSan lit-tests under test/tsan
...
llvm-svn: 201414
2014-02-14 14:35:48 +00:00
Alexey Samsonov
9f20d67034
Move ASan lit-tests under test/asan
...
llvm-svn: 201413
2014-02-14 14:06:10 +00:00
Alexey Samsonov
8434e60f7e
Move MSan lit-tests under test/msan
...
llvm-svn: 201412
2014-02-14 13:02:58 +00:00
Alexey Samsonov
7eeef85bd4
Move LSan test suite under test/
...
llvm-svn: 201408
2014-02-14 12:26:05 +00:00
Alexey Samsonov
f6cf6ab53b
Move DFSan test suite under test/
...
llvm-svn: 201403
2014-02-14 12:05:41 +00:00
Alexey Samsonov
ba869e79a0
Move UBSan test suite under test/
...
llvm-svn: 201401
2014-02-14 11:42:22 +00:00
Alexey Samsonov
81a2b466e9
Move shared configs for lit test suites to test/ and unittests/ directories
...
llvm-svn: 201399
2014-02-14 11:00:07 +00:00
Alexey Samsonov
8c1441f860
Move tests for BlocksRuntime and builtins to corresponding directories under test/
...
llvm-svn: 201396
2014-02-14 09:47:31 +00:00
Nick Kledzik
23bbd617e4
<rdar://problem/12512722> Use arm divide instruction if available
...
llvm-svn: 182665
2013-05-24 19:38:11 +00:00
Eric Christopher
8539af7bbb
Both OpenBSD and Bitrig need to include machine/endian.h to get the
...
_BYTE_ORDER define.
Patch by David Hill.
llvm-svn: 164286
2012-09-20 06:19:20 +00:00
Chandler Carruth
6acfaaf3aa
Remove the old, and non-functional CMake build system from CompilerRT.
...
I cannot build any part of this successfully on either Linux or Darwin,
and the replacement is worlds simpler by requiring that this be built as
a subproject of LLVM. If this breaks you for any reason, please let me
know, and let me know what your use case is.
llvm-svn: 154059
2012-04-04 22:12:01 +00:00
Anton Korobeynikov
48cfd55c5d
Add some basic mingw support.
...
Patch by Ruben Van Boxem!
llvm-svn: 148048
2012-01-12 21:13:48 +00:00
Rafael Espindola
a0fbaeebe6
Fix build on minix. Patch by Ben Gras!
...
llvm-svn: 147632
2012-01-05 23:59:42 +00:00
Eric Christopher
1d1809437e
Implement mulo<mode>4 for use in signed overflow checking.
...
Fixes rdar://9219742 and rdar://9218244
llvm-svn: 133284
2011-06-17 20:17:05 +00:00
Joerg Sonnenberger
d9bcddd6b9
If a test case is not compiled on a specific platform, print "skipped"
...
to stdout. This helps identifying missing coverage on a given platform.
llvm-svn: 132300
2011-05-29 21:43:29 +00:00
Nick Kledzik
47a823b281
<rdar://problem/8914924> implement udivmodsi4 and divmodsi4 for ARM
...
llvm-svn: 127778
2011-03-17 00:09:13 +00:00
Howard Hinnant
5b791f6e64
license change
...
llvm-svn: 119397
2010-11-16 22:13:33 +00:00
Stephen Canon
75a21dc9a7
Tests for soft-float comparison functions
...
llvm-svn: 107414
2010-07-01 18:35:50 +00:00
Daniel Dunbar
efd84e770b
Add support for "platform" configurations, which define a suite of compiler-rt
...
libraries to generate.
- Each library may be built with different flags and for different
architectures, and there is support for building Darwin style fat archives.
- Uses an ambituous amount of make programming, but should be hidden to
users and developers.
llvm-svn: 93720
2010-01-18 06:49:33 +00:00
Daniel Dunbar
32f75c6a42
Unbreak trampoline test.
...
llvm-svn: 93711
2010-01-18 06:48:06 +00:00
Edward O'Callaghan
07d6005bdc
Nested function test in compiler-rt should not be run under Clang.
...
llvm-svn: 85456
2009-10-29 00:27:08 +00:00
Edward O'Callaghan
7c1cc70a90
Fix test suit for last CMake changes to CompilerRT.
...
llvm-svn: 85452
2009-10-29 00:16:23 +00:00
Shantonu Sen
04f121bc50
Work around strictness in gcc 4.4.1 casting a function pointer to void *
...
llvm-svn: 85397
2009-10-28 15:54:04 +00:00
Shantonu Sen
1467592c6d
Add stdlib.h for rand() prototype
...
llvm-svn: 85396
2009-10-28 15:46:10 +00:00
Edward O'Callaghan
6d0a86cbd1
Update web docs for cmake test suit, comment out broken test.
...
llvm-svn: 85350
2009-10-28 00:09:30 +00:00
Edward O'Callaghan
1bafa6de57
Fix cmake test suit for compiler-rt.
...
llvm-svn: 85339
2009-10-27 23:23:41 +00:00
Daniel Dunbar
64857209fb
Fix tests broken by removal of de-anonyomizing structs.
...
llvm-svn: 85261
2009-10-27 17:49:07 +00:00
Daniel Dunbar
247687360f
Remove duplicate copy of int_lib.h, and update test script to find copy inside lib/.
...
Also, fix some brokenness in the test script w.r.t REMOTE.
llvm-svn: 85260
2009-10-27 17:48:46 +00:00
Edward O'Callaghan
c0c9968f1b
Comment out broken tests and make the rest build in cmake build system.
...
llvm-svn: 84330
2009-10-17 10:19:32 +00:00
Nick Kledzik
ad160c0330
add conversion functions and test cases for ARM
...
llvm-svn: 81809
2009-09-14 23:26:56 +00:00
Edward O'Callaghan
882b798a50
Generalize Blocks code and intergrate with cmake build system more.
...
llvm-svn: 81613
2009-09-12 15:47:39 +00:00
Nick Kledzik
9130011d5f
add comparison functions for ARM
...
llvm-svn: 81597
2009-09-12 01:23:48 +00:00
Nick Kledzik
a6bce00934
rename files
...
llvm-svn: 81572
2009-09-11 21:16:10 +00:00
Nick Kledzik
3d22a3af2d
add _test in file names
...
llvm-svn: 81561
2009-09-11 20:13:32 +00:00
Nick Kledzik
b9c6e4a189
start adding implementation of arm *vfp routines with test cases
...
llvm-svn: 81558
2009-09-11 20:02:01 +00:00
Nick Kledzik
7e71865ca5
use HAS_80_BIT_LONG_DOUBLE so some tests work properly on arm
...
llvm-svn: 81552
2009-09-11 19:09:36 +00:00
Daniel Dunbar
3c8a7dfada
Use -lc -lm to link with (in tests) on non-Darwin.
...
llvm-svn: 80939
2009-09-03 20:09:38 +00:00
Daniel Dunbar
f9812f75d0
Don't use -arch on non-Darwin.
...
llvm-svn: 80938
2009-09-03 20:03:21 +00:00
Daniel Dunbar
da208e779b
Convert tabs to spaces.
...
llvm-svn: 80937
2009-09-03 20:03:14 +00:00
Edward O'Callaghan
19db729ab4
Add support for ellcc, Credit to Richard Pennington.
...
llvm-svn: 79332
2009-08-18 11:54:44 +00:00
Edward O'Callaghan
514553d84a
Fix testsuit build on linux.
...
llvm-svn: 79331
2009-08-18 11:50:23 +00:00
Edward O'Callaghan
ea0bd0d0a4
Fix pre-processor mistake for BSDs in endianness.h
...
llvm-svn: 79330
2009-08-18 11:07:59 +00:00
Edward O'Callaghan
ccf48131d0
Refactor to remove un-named struct gnu extension usage. Now ISO C89 and C99 compliant. Comment trailing endifs
...
llvm-svn: 78537
2009-08-09 18:41:02 +00:00
Edward O'Callaghan
032ab6f978
Fix signedness warning in mprotect call, Clean up and improve endianness.h header.
...
llvm-svn: 78451
2009-08-08 02:31:50 +00:00
Edward O'Callaghan
e556e8eb9f
Forgot to add new endianness.h header file.
...
llvm-svn: 78235
2009-08-05 19:58:45 +00:00
Edward O'Callaghan
7a6cb5febf
Refactor test suit endianness pre-processor code. More style and readability fixes, start labling endif's
...
llvm-svn: 78234
2009-08-05 19:57:20 +00:00
Edward O'Callaghan
df72046277
Start porting compiler-rt testsuit to Solaris with new build system. Fix some C++ style comments which are not allowed in ISO C90.
...
llvm-svn: 78143
2009-08-05 01:47:29 +00:00
Edward O'Callaghan
6912ed0f36
Initial import of CMake type build system. Just like the rest of llvm..
...
llvm-svn: 77933
2009-08-03 01:08:25 +00:00
Daniel Dunbar
fd089990f7
Initial import of compiler-rt.
...
-
llvm-svn: 74292
2009-06-26 16:47:03 +00:00