From cf450b4ea47ae5400d1ba4877a2d807d46f208cd Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 12 Oct 2017 17:21:01 +0000 Subject: [PATCH] [X86] Use -ffreestanding instead of using the mm_malloc.h include guard hack on more of the builtin tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315594 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/adc-builtins.c | 4 +--- test/CodeGen/avx512ifmavl-builtins.c | 4 +--- test/CodeGen/builtin-clflushopt.c | 6 +++--- test/CodeGen/builtin-clzero.c | 4 ++-- 4 files changed, 7 insertions(+), 11 deletions(-) diff --git a/test/CodeGen/adc-builtins.c b/test/CodeGen/adc-builtins.c index 0d8d6fa034..d41fa8f446 100644 --- a/test/CodeGen/adc-builtins.c +++ b/test/CodeGen/adc-builtins.c @@ -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 diff --git a/test/CodeGen/avx512ifmavl-builtins.c b/test/CodeGen/avx512ifmavl-builtins.c index c59af0ec6d..4aeec336ad 100644 --- a/test/CodeGen/avx512ifmavl-builtins.c +++ b/test/CodeGen/avx512ifmavl-builtins.c @@ -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 diff --git a/test/CodeGen/builtin-clflushopt.c b/test/CodeGen/builtin-clflushopt.c index 93861164c4..f82ac4638f 100644 --- a/test/CodeGen/builtin-clflushopt.c +++ b/test/CodeGen/builtin-clflushopt.c @@ -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 -#include void test_mm_clflushopt(char * __m) { //CHECK-LABEL: @test_mm_clflushopt //CHECK: @llvm.x86.clflushopt diff --git a/test/CodeGen/builtin-clzero.c b/test/CodeGen/builtin-clzero.c index c9960ced12..f9ecb9ddb5 100644 --- a/test/CodeGen/builtin-clzero.c +++ b/test/CodeGen/builtin-clzero.c @@ -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 + void test_mm_clzero(void * __m) { //CHECK-LABEL: @test_mm_clzero //CHECK: @llvm.x86.clzero -- 2.50.1