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 | b107a22afbd2a5a07259c56b7ce84450fe7c8783 (patch) | |
| tree | 0115f79f39b94af6e8d7f6580ab328656582f5f4 /clang/test/CodeGen/avx-cmp-builtins.c | |
| parent | 2bdc74a471fc34a7dbf67df89938d0a420f411cb (diff) | |
| download | bcm5719-llvm-b107a22afbd2a5a07259c56b7ce84450fe7c8783.tar.gz bcm5719-llvm-b107a22afbd2a5a07259c56b7ce84450fe7c8783.zip | |
[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
llvm-svn: 282581
Diffstat (limited to 'clang/test/CodeGen/avx-cmp-builtins.c')
| -rw-r--r-- | clang/test/CodeGen/avx-cmp-builtins.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/test/CodeGen/avx-cmp-builtins.c b/clang/test/CodeGen/avx-cmp-builtins.c index 30d1bd5c7aa..7d619426653 100644 --- a/clang/test/CodeGen/avx-cmp-builtins.c +++ b/clang/test/CodeGen/avx-cmp-builtins.c @@ -1,8 +1,6 @@ -// RUN: %clang_cc1 %s -O3 -triple=x86_64-apple-darwin -target-feature +avx -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 -ffreestanding %s -O3 -triple=x86_64-apple-darwin -target-feature +avx -emit-llvm -o - | FileCheck %s // FIXME: The shufflevector instructions in test_cmpgt_sd are relying on O3 here. -// Don't include mm_malloc.h, it's system specific. -#define __MM_MALLOC_H #include <immintrin.h> |

