Clang Project

clang_source_code/test/CodeGen/cldemote.c
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
6void test_cldemote(const void *p) {
7  //CHECK-LABEL: @test_cldemote
8  //CHECK: call void @llvm.x86.cldemote(i8* %{{.*}})
9  _cldemote(p);
10}
11