1 // RUN: %clang_cc1 -ffreestanding -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
6 unsigned long long test_rdpmc(int a
) {
9 // CHECK: call i64 @llvm.x86.rdpmc
12 int test_rdtsc(void) {
15 // CHECK: call i64 @llvm.x86.rdtsc
18 unsigned long long test_rdtscp(unsigned int *a
) {
19 // CHECK: @test_rdtscp
20 // CHECK: [[RDTSCP:%.*]] = call { i64, i32 } @llvm.x86.rdtscp
21 // CHECK: [[TSC_AUX:%.*]] = extractvalue { i64, i32 } [[RDTSCP]], 1
22 // CHECK: store i32 [[TSC_AUX]], ptr %{{.*}}
23 // CHECK: [[TSC:%.*]] = extractvalue { i64, i32 } [[RDTSCP]], 0