1 ; RUN: llc < %s -march=x86-64 -mcpu=generic | FileCheck %s --check-prefix=CHECK --check-prefix=X86-64
2 ; RUN: llc < %s -march=x86 -mcpu=generic | FileCheck %s --check-prefix=CHECK --check-prefix=X86
4 ; Verify that we correctly lower the "Read Performance-Monitoring Counters"
8 define i64 @test_builtin_read_pmc(i32 %ID) {
9 %1 = tail call i64 @llvm.x86.rdpmc(i32 %ID)
12 ; CHECK-LABEL: test_builtin_read_pmc
21 declare i64 @llvm.x86.rdpmc(i32 %ID)