]> granicus.if.org Git - clang/commitdiff
[X86] Use -ffreestanding instead of using the mm_malloc.h include guard hack on more...
authorCraig Topper <craig.topper@intel.com>
Thu, 12 Oct 2017 17:21:01 +0000 (17:21 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 12 Oct 2017 17:21:01 +0000 (17:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315594 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/adc-builtins.c
test/CodeGen/avx512ifmavl-builtins.c
test/CodeGen/builtin-clflushopt.c
test/CodeGen/builtin-clzero.c

index 0d8d6fa03476f1aba60f0385dad33e36415a215a..d41fa8f446e69fe516161fe85418e7b88b1442d6 100644 (file)
@@ -1,6 +1,4 @@
-// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
-
-#define __MM_MALLOC_H
+// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
 
 #include <x86intrin.h>
 
index c59af0ec6d06ec8a8ffa5deb1bdae76dc19ef685..4aeec336ad943d9d4dfbf7288cd646e431e5f405 100644 (file)
@@ -1,6 +1,4 @@
-// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +avx512ifma -target-feature +avx512vl -emit-llvm -o - -Wall -Werror | FileCheck %s
-
-#define __MM_MALLOC_H
+// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +avx512ifma -target-feature +avx512vl -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 #include <immintrin.h>
 
index 93861164c4a89e21df604aad71500b5038e87746..f82ac4638f40a05b5fc01d72929b50dbd2599f25 100644 (file)
@@ -1,7 +1,7 @@
-// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +clflushopt  -emit-llvm -o - -Wall -Werror | FileCheck %s
-#define __MM_MALLOC_H
+// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clflushopt  -emit-llvm -o - -Wall -Werror | FileCheck %s
+
+#include <x86intrin.h>
 
-#include <immintrin.h>
 void test_mm_clflushopt(char * __m) {
   //CHECK-LABEL: @test_mm_clflushopt
   //CHECK: @llvm.x86.clflushopt
index c9960ced12ecb31db3628c51683644fe0be8a77a..f9ecb9ddb5264b0f09d0d8f6f51020420eac6ffa 100644 (file)
@@ -1,7 +1,7 @@
-// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +clzero  -emit-llvm -o - -Wall -Werror | FileCheck %s
-#define __MM_MALLOC_H
+// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clzero  -emit-llvm -o - -Wall -Werror | FileCheck %s
 
 #include <x86intrin.h>
+
 void test_mm_clzero(void * __m) {
   //CHECK-LABEL: @test_mm_clzero
   //CHECK: @llvm.x86.clzero