summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/rdpid-builtins.c
blob: 35516b05bd46a0716040dd0169a658f33569487d (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -target-feature +rdpid -emit-llvm -o - %s | FileCheck %s


#include <x86intrin.h>

unsigned int test_rdpid_u32(void) {
// CHECK-LABEL: @test_rdpid_u32
// CHECK: call i32 @llvm.x86.rdpid
  return _rdpid_u32();
}
OpenPOWER on IntegriCloud