1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +cldemote -emit-llvm -o - -Wall -Werror | FileCheck %s
2 // RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +cldemote -emit-llvm -o - -Wall -Werror | FileCheck %s
3 
4 #include <immintrin.h>
5 
test_cldemote(const void * p)6 void test_cldemote(const void *p) {
7   //CHECK-LABEL: @test_cldemote
8   //CHECK: call void @llvm.x86.cldemote(i8* %{{.*}})
9   _cldemote(p);
10   //CHECK: call void @llvm.x86.cldemote(i8* %{{.*}})
11   _mm_cldemote(p);
12 }
13