summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/sse42-builtins.c
diff options
context:
space:
mode:
authorElad Cohen <elad2.cohen@intel.com>2016-09-28 11:59:09 +0000
committerElad Cohen <elad2.cohen@intel.com>2016-09-28 11:59:09 +0000
commitb107a22afbd2a5a07259c56b7ce84450fe7c8783 (patch)
tree0115f79f39b94af6e8d7f6580ab328656582f5f4 /clang/test/CodeGen/sse42-builtins.c
parent2bdc74a471fc34a7dbf67df89938d0a420f411cb (diff)
downloadbcm5719-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/sse42-builtins.c')
-rw-r--r--clang/test/CodeGen/sse42-builtins.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/CodeGen/sse42-builtins.c b/clang/test/CodeGen/sse42-builtins.c
index 7a76293f05b..523db1a3416 100644
--- a/clang/test/CodeGen/sse42-builtins.c
+++ b/clang/test/CodeGen/sse42-builtins.c
@@ -1,8 +1,6 @@
-// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +sse4.2 -emit-llvm -o - -Wall -Werror | FileCheck %s
-// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +sse4.2 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
+// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.2 -emit-llvm -o - -Wall -Werror | FileCheck %s
+// RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +sse4.2 -fno-signed-char -emit-llvm -o - -Wall -Werror | FileCheck %s
-// Don't include mm_malloc.h, it's system specific.
-#define __MM_MALLOC_H
#include <x86intrin.h>
OpenPOWER on IntegriCloud