Revert " [LoongArch][ISel] Check the number of sign bits in `PatGprGpr_32` (#107432)"
[llvm-project.git] / llvm / test / CodeGen / AArch64 / readcyclecounter.ll
blob0cb8c391fb9ba6933a3d6e36089264f9397b3e0b
1 ; RUN: llc -mtriple=aarch64 < %s | FileCheck %s
4 define i64 @test_readcyclecounter() nounwind {
5   ; CHECK-LABEL:   test_readcyclecounter:
6   ; CHECK:         // %bb.0:
7   ; CHECK-NEXT:    mrs x0, CNTVCT_EL0
8   ; CHECK-NEXT:    ret
9   %tmp0 = call i64 @llvm.readcyclecounter()
10   ret i64 %tmp0
13 declare i64 @llvm.readcyclecounter()