Commit Graph

5 Commits

Author SHA1 Message Date
Elad Cohen 1574e4336f [X86] Remove the mm_malloc.h include guard hack from the X86 builtins tests
The X86 clang/test/CodeGen/*builtins.c tests define the mm_malloc.h include
guard as a hack for avoiding its inclusion (mm_malloc.h requires a hosted
environment since it expects stdlib.h to be available - which is not the case
in these internal clang codegen tests).
This patch removes this hack and instead passes -ffreestanding to clang cc1.

Differential Revision: https://reviews.llvm.org/D24825



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@282581 91177308-0d34-0410-b5e6-96231b3b80d8
2016-09-28 11:59:09 +00:00
Eric Christopher 8a4f5c0475 Canonicalize some of the x86 builtin tests and either remove or comment
about optimization options.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@250271 91177308-0d34-0410-b5e6-96231b3b80d8
2015-10-14 05:40:21 +00:00
Craig Topper a382075b50 [X86] Add range checking to the immediate arguments of many of the SSE/AVX builtins.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227674 91177308-0d34-0410-b5e6-96231b3b80d8
2015-01-31 06:31:23 +00:00
Ben Langmuir b2b2c32947 Fix ifdef macro missed in previous commit
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191003 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-19 14:07:14 +00:00
Ben Langmuir b83f5a7733 Add C intrinsics for Intel SHA Extensions
Intrinsics added shaintrin.h, which is included from x86intrin.h if __SHA__ is
enabled. SHA implies SSE2, which is needed for the __m128i type.

Also add the -msha/-mno-sha option.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190999 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-19 13:22:04 +00:00