[NFC][RemoveDIs] Prefer iterators over inst-pointers in InstCombine
[llvm-project.git] / llvm / test / CodeGen / PowerPC / ppc64-cyclecounter.ll
blobd35c435069b4bbbc566994c4f6192fd0f2c89d7c
1 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v128:128:128-n32:64"
2 target triple = "powerpc64-unknown-linux-gnu"
3 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
5 define i64 @test1() nounwind {
6 entry:
7   %r = call i64 @llvm.readcyclecounter()
8   ret i64 %r
11 ; CHECK: @test1
12 ; CHECK: mfspr 3, 268
14 declare i64 @llvm.readcyclecounter()