2018-04-13 15:37:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +cldemote -emit-llvm -o - -Wall -Werror | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +cldemote -emit-llvm -o - -Wall -Werror | FileCheck %s
|
|
|
|
|
2018-05-24 15:09:08 +08:00
|
|
|
#include <immintrin.h>
|
2018-04-13 15:37:24 +08:00
|
|
|
|
|
|
|
void test_cldemote(const void *p) {
|
|
|
|
//CHECK-LABEL: @test_cldemote
|
|
|
|
//CHECK: call void @llvm.x86.cldemote(i8* %{{.*}})
|
|
|
|
_cldemote(p);
|
|
|
|
}
|