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