[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / X86 / cldemote-builtins.c
blob2674ba91e4a37c126f950653a9fbae8e37b3f2c4
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
4 #include <immintrin.h>
6 void test_cldemote(const void *p) {
7 //CHECK-LABEL: @test_cldemote
8 //CHECK: call void @llvm.x86.cldemote(ptr %{{.*}})
9 _cldemote(p);
10 //CHECK: call void @llvm.x86.cldemote(ptr %{{.*}})
11 _mm_cldemote(p);