diff options
author | Craig Topper <craig.topper@intel.com> | 2017-10-12 17:21:01 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-10-12 17:21:01 +0000 |
commit | 326442c410b67c828bb5bef673873e5ad199512f (patch) | |
tree | 9a588188d16bf7f328dda1e4171cfcbaa9512fdc /clang/test/CodeGen | |
parent | 326fdcbff82cd327c7132a2f823122ff201bf100 (diff) | |
download | bcm5719-llvm-326442c410b67c828bb5bef673873e5ad199512f.tar.gz bcm5719-llvm-326442c410b67c828bb5bef673873e5ad199512f.zip |
[X86] Use -ffreestanding instead of using the mm_malloc.h include guard hack on more of the builtin tests.
llvm-svn: 315594
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r-- | clang/test/CodeGen/adc-builtins.c | 4 | ||||
-rw-r--r-- | clang/test/CodeGen/avx512ifmavl-builtins.c | 4 | ||||
-rw-r--r-- | clang/test/CodeGen/builtin-clflushopt.c | 6 | ||||
-rw-r--r-- | clang/test/CodeGen/builtin-clzero.c | 4 |
4 files changed, 7 insertions, 11 deletions
diff --git a/clang/test/CodeGen/adc-builtins.c b/clang/test/CodeGen/adc-builtins.c index 0d8d6fa0347..d41fa8f446e 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 <x86intrin.h> diff --git a/clang/test/CodeGen/avx512ifmavl-builtins.c b/clang/test/CodeGen/avx512ifmavl-builtins.c index c59af0ec6d0..4aeec336ad9 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 <immintrin.h> diff --git a/clang/test/CodeGen/builtin-clflushopt.c b/clang/test/CodeGen/builtin-clflushopt.c index 93861164c4a..f82ac4638f4 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 <x86intrin.h> -#include <immintrin.h> 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 c9960ced12e..f9ecb9ddb52 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 <x86intrin.h> + void test_mm_clzero(void * __m) { //CHECK-LABEL: @test_mm_clzero //CHECK: @llvm.x86.clzero |