1 // RUN: %clang_cc1 -ffreestanding %s -triple=x86_64-apple-darwin -target-feature +pku -emit-llvm -o - -Wall -Werror | FileCheck %s
2 
3 
4 #include <immintrin.h>
5 
test_rdpkru_u32()6 unsigned int test_rdpkru_u32() {
7   // CHECK-LABEL: @test_rdpkru_u32
8   // CHECK: @llvm.x86.rdpkru
9   return _rdpkru_u32();
10 }
test_wrpkru(unsigned int __A)11 void test_wrpkru(unsigned int __A) {
12   // CHECK-LABEL: @test_wrpkru
13   // CHECK: @llvm.x86.wrpkru
14   _wrpkru(__A);
15   return ;
16 }
17