mirror of https://github.com/microsoft/clang.git
[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
This commit is contained in:
parent
b33432c3fd
commit
cf450b4ea4
|
@ -1,6 +1,4 @@
|
||||||
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
|
// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
|
||||||
|
|
||||||
#define __MM_MALLOC_H
|
|
||||||
|
|
||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
|
|
||||||
|
|
|
@ -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
|
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +avx512ifma -target-feature +avx512vl -emit-llvm -o - -Wall -Werror | FileCheck %s
|
||||||
|
|
||||||
#define __MM_MALLOC_H
|
|
||||||
|
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +clflushopt -emit-llvm -o - -Wall -Werror | FileCheck %s
|
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clflushopt -emit-llvm -o - -Wall -Werror | FileCheck %s
|
||||||
#define __MM_MALLOC_H
|
|
||||||
|
#include <x86intrin.h>
|
||||||
|
|
||||||
#include <immintrin.h>
|
|
||||||
void test_mm_clflushopt(char * __m) {
|
void test_mm_clflushopt(char * __m) {
|
||||||
//CHECK-LABEL: @test_mm_clflushopt
|
//CHECK-LABEL: @test_mm_clflushopt
|
||||||
//CHECK: @llvm.x86.clflushopt
|
//CHECK: @llvm.x86.clflushopt
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin -target-feature +clzero -emit-llvm -o - -Wall -Werror | FileCheck %s
|
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-apple-darwin -target-feature +clzero -emit-llvm -o - -Wall -Werror | FileCheck %s
|
||||||
#define __MM_MALLOC_H
|
|
||||||
|
|
||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
|
|
||||||
void test_mm_clzero(void * __m) {
|
void test_mm_clzero(void * __m) {
|
||||||
//CHECK-LABEL: @test_mm_clzero
|
//CHECK-LABEL: @test_mm_clzero
|
||||||
//CHECK: @llvm.x86.clzero
|
//CHECK: @llvm.x86.clzero
|
||||||
|
|
Loading…
Reference in New Issue