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