13 lines · c
1// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +invpcid -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s2// RUN: %clang_cc1 %s -ffreestanding -triple=i386-unknown-unknown -target-feature +invpcid -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s3 4#include <immintrin.h>5 6#include <stdint.h>7 8void test_invpcid(uint32_t type, void *descriptor) {9 //CHECK-LABEL: @test_invpcid10 //CHECK: call void @llvm.x86.invpcid(i32 %{{.*}}, ptr %{{.*}})11 _invpcid(type, descriptor);12}13