summaryrefslogtreecommitdiff
path: root/test/builtins/CMakeLists.txt
AgeCommit message (Collapse)Author
2017-04-07[builtins] Get the builtins tests passing on WindowsReid Kleckner
Many things were broken: - We stopped building most builtins on Windows in r261432 for reasons that are not at all clear to me. This essentially reverts that patch. - Fix %librt to expand to clang_rt.builtins-$arch.lib on Windows instead of libclang_rt.builtins-$arch.a. - Fix memory protection tests (trampoline, enable executable, clear cache) on Windows. One issue was that the MSVC incremental linker generates ILT thunks for functions with external linkage, so memcpying the functions into the executable stack buffer wasn't working. You can't memcpy an RIP-relative jump without fixing up the offset. - Disable tests that rely on C99 complex library functions when using the MSVC CRT, which isn't compatible with clang's C99 _Complex. In theory, these could all be separate patches, but it would not green the tests, so let's try for it all at once. Hopefully this fixes the clang-x64-ninja-win7 bot. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@299780 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-29[Builtin] Unxfail tests for armhfWeiming Zhao
Summary: Originally, a few tests fail for armhf target due to: 1) COMPILER_RT_ARMHF_TARGET was not set when building the lib 2) COMPILER_RT_ABI should not be defined as `__attribute__((pcs("aapcs")))` for armhf when building for both lib and tests This address https://bugs.llvm.org//show_bug.cgi?id=32261 mulsc3_test.c is a newly exposed issue, which will be addressed separately. Reviewers: rengolin, compnerd Reviewed By: compnerd Subscribers: aemerson, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D31448 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@298974 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-27Reland "[Compiler-rt][Builtins] Implement lit-test support (part 2 of 2)"Weiming Zhao
Re-land of r298714 which got reverted in r298868. It looks like the current lit tests won't run for Apple. Possible reason is the libname is different. (need to update the base_lib variable of lit.cfg) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@298892 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-27Revert "[Compiler-rt][Builtins] Implement lit-test support (part 2 of 2)"Juergen Ributzka
This broke GreenDragon: http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_check/29505/consoleFull git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@298868 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-24[Compiler-rt][Builtins] Implement lit-test support (part 2 of 2)Weiming Zhao
Summary: Original r297566 (https://reviews.llvm.org/D30802) is splitted into two parts. This part adds CMakefile/lit.cfg support. Reviewers: rengolin, compnerd, jroelofs, erik.pilkington Subscribers: srhines, dberris, mgorny Differential Revision: https://reviews.llvm.org/D31259 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@298714 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-11Revert "[Builtin] Implement lit-test support"Weiming Zhao
Due to test failure of check-builtins for aarch64 and armhf. This reverts commit r297566. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297569 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-11[Builtin] Implement lit-test supportWeiming Zhao
Summary: This patch implements a initial support of lit test for builtins. Unit/arm/call_apsr.S is updated to support thumb1. It also fixes a bug in arm/aeabi_uldivmod_test.c gcc_personality_test is XFAILED as the framework cannot handle it so far. cpu_model_test is also XFAILED for now as it is expected to return non-zero. Reviewers: rengolin, compnerd, jroelofs, erik.pilkington, arphaman Reviewed By: jroelofs Subscribers: jroelofs, aemerson, srhines, nemanjai, llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D30802 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297566 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-09Reapply r297382: "[compiler-rt][builtins] Add __isOSVersionAtLeast()"Erik Pilkington
Looks like the problem was a case-insensitive include of dispatch/dispatch.h. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297392 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-09Revert "[compiler-rt][builtins] Add __isOSVersionAtLeast()"Erik Pilkington
This reverts r297382, it was causing build failures. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297388 91177308-0d34-0410-b5e6-96231b3b80d8
2017-03-09[compiler-rt][builtins] Add __isOSVersionAtLeast()Erik Pilkington
This predicate compares the host's marketing OS version to one passed as argument. Currently, only darwin targets are supported. This is done by parsing the SystemVersion.plist file. Also added in this patch is some lit testing infrastructure for builtins, which previously had none. This part of the patch was written by Alex Lorenz (with some minor modifications). This patch is part of a feature I proposed here: http://lists.llvm.org/pipermail/cfe-dev/2016-July/049851.html Differential revision: https://reviews.llvm.org/D30136 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@297382 91177308-0d34-0410-b5e6-96231b3b80d8