You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
400 B
19 lines
400 B
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
|
|
|
|
// Don't include mm_malloc.h, it's system specific.
|
|
#define __MM_MALLOC_H
|
|
|
|
#include <x86intrin.h>
|
|
|
|
unsigned long long test_rdpmc(int a) {
|
|
return _rdpmc(a);
|
|
// CHECK: @test_rdpmc
|
|
// CHECK: call i64 @llvm.x86.rdpmc
|
|
}
|
|
|
|
int test_rdtsc() {
|
|
return _rdtsc();
|
|
// CHECK: @test_rdtsc
|
|
// CHECK: call i64 @llvm.x86.rdtsc
|
|
}
|