1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s 2 3 // Don't include mm_malloc.h, it's system specific. 4 #define __MM_MALLOC_H 5 6 #include <x86intrin.h> 7 test_rdpmc(int a)8unsigned long long test_rdpmc(int a) { 9 return _rdpmc(a); 10 // CHECK: @test_rdpmc 11 // CHECK: call i64 @llvm.x86.rdpmc 12 } 13 test_rdtsc()14int test_rdtsc() { 15 return _rdtsc(); 16 // CHECK: @test_rdtsc 17 // CHECK: call i64 @llvm.x86.rdtsc 18 } 19