Home | History | Annotate | Download | only in PowerPC
      1 target datalayout = "E-m:e-p:32:32-i64:64-n32"
      2 target triple = "powerpc"
      3 ; RUN: llc -mcpu=ppc < %s | FileCheck %s
      4 ; RUN: llc -mcpu=pwr7 < %s | FileCheck %s
      5 
      6 define i64 @test1() nounwind {
      7 entry:
      8   %r = call i64 @llvm.readcyclecounter()
      9   ret i64 %r
     10 }
     11 
     12 ; CHECK: @test1
     13 ; CHECK: mfspr 3, 269
     14 ; CHECK: mfspr 4, 268
     15 ; CHECK: mfspr [[REG:[0-9]+]], 269
     16 ; CHECK: cmpw 3, [[REG]]
     17 ; CHECK: bne 0, .LBB
     18 
     19 declare i64 @llvm.readcyclecounter()
     20 
     21