blob: 0cb8c391fb9ba6933a3d6e36089264f9397b3e0b [file] [log] [blame]
; RUN: llc -mtriple=aarch64 < %s | FileCheck %s
define i64 @test_readcyclecounter() nounwind {
; CHECK-LABEL: test_readcyclecounter:
; CHECK: // %bb.0:
; CHECK-NEXT: mrs x0, CNTVCT_EL0
; CHECK-NEXT: ret
%tmp0 = call i64 @llvm.readcyclecounter()
ret i64 %tmp0
}
declare i64 @llvm.readcyclecounter()