• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-crbits | FileCheck %s
2; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s -check-prefix=CHECK-CRB
3target 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-f128:128:128-v128:128:128-n32:64"
4target triple = "powerpc64-unknown-linux-gnu"
5
6define void @_Z8example3iPiS_() #0 {
7entry:
8  br i1 undef, label %while.end, label %while.body.lr.ph
9
10while.body.lr.ph:                                 ; preds = %entry
11  br i1 undef, label %while.end, label %while.body
12
13while.body:                                       ; preds = %while.body, %while.body.lr.ph
14  br i1 false, label %while.end, label %while.body, !llvm.loop.vectorize.already_vectorized !0
15
16while.end:                                        ; preds = %while.body, %while.body.lr.ph, %entry
17  ret void
18
19; CHECK: @_Z8example3iPiS_
20; CHECK: bnelr
21
22; CHECK-CRB: @_Z8example3iPiS_
23; CHECK-CRB: bclr 12,
24}
25
26attributes #0 = { noinline nounwind }
27
28!0 = !{}
29
30