• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1target datalayout = "E-m:e-p:32:32-i64:64-n32"
2target triple = "powerpc"
3; RUN: llc -verify-machineinstrs -mcpu=ppc < %s | FileCheck %s
4; RUN: llc -verify-machineinstrs -mcpu=pwr7 < %s | FileCheck %s
5
6define i64 @test1() nounwind {
7entry:
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
19declare i64 @llvm.readcyclecounter()
20
21