64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
11 lines
250 B
LLVM
11 lines
250 B
LLVM
; RUN: llc -march=hexagon < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: test_readcyclecounter
|
|
; CHECK: r1:0 = c15:14
|
|
define i64 @test_readcyclecounter() nounwind {
|
|
%t0 = call i64 @llvm.readcyclecounter()
|
|
ret i64 %t0
|
|
}
|
|
|
|
declare i64 @llvm.readcyclecounter()
|