diff --git a/clang/test/CodeGen/adc-builtins.c b/clang/test/CodeGen/adc-builtins.c index 0d8d6fa03476..d41fa8f446e6 100644 --- a/clang/test/CodeGen/adc-builtins.c +++ b/clang/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/clang/test/CodeGen/avx512ifmavl-builtins.c b/clang/test/CodeGen/avx512ifmavl-builtins.c index c59af0ec6d06..4aeec336ad94 100644 --- a/clang/test/CodeGen/avx512ifmavl-builtins.c +++ b/clang/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/clang/test/CodeGen/builtin-clflushopt.c b/clang/test/CodeGen/builtin-clflushopt.c index 93861164c4a8..f82ac4638f40 100644 --- a/clang/test/CodeGen/builtin-clflushopt.c +++ b/clang/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/clang/test/CodeGen/builtin-clzero.c b/clang/test/CodeGen/builtin-clzero.c index c9960ced12ec..f9ecb9ddb526 100644 --- a/clang/test/CodeGen/builtin-clzero.c +++ b/clang/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