diff options
author | Elad Cohen <elad2.cohen@intel.com> | 2016-09-28 11:59:09 +0000 |
---|---|---|
committer | Elad Cohen <elad2.cohen@intel.com> | 2016-09-28 11:59:09 +0000 |
commit | 1574e4336f5683313b87da8e364d2002149a5fb9 (patch) | |
tree | 528be67ff377886b93d9abefaea2cc9bc8759869 /test/CodeGen/avx512vl-builtins.c | |
parent | e716c9e3bb9eb7336ca77da22d880fa456bcdc6c (diff) | |
download | clang-1574e4336f5683313b87da8e364d2002149a5fb9.tar.gz |
[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
Diffstat (limited to 'test/CodeGen/avx512vl-builtins.c')
-rw-r--r-- | test/CodeGen/avx512vl-builtins.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/CodeGen/avx512vl-builtins.c b/test/CodeGen/avx512vl-builtins.c index 16310ca4b8..5150995468 100644 --- a/test/CodeGen/avx512vl-builtins.c +++ b/test/CodeGen/avx512vl-builtins.c @@ -1,7 +1,5 @@ -// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +avx512f -target-feature +avx512vl -emit-llvm -o - -Wall -Werror | FileCheck %s +// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +avx512f -target-feature +avx512vl -emit-llvm -o - -Wall -Werror | FileCheck %s -// Don't include mm_malloc.h, it's system specific. -#define __MM_MALLOC_H #include <immintrin.h> |