2014-11-24 09:08:18 +00:00
|
|
|
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -mattr=-crbits | FileCheck %s
|
|
|
|
; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 | FileCheck %s -check-prefix=CHECK-CRB
|
2013-06-10 20:36:52 +00:00
|
|
|
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-f128:128:128-v128:128:128-n32:64"
|
|
|
|
target triple = "powerpc64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
define void @_Z8example3iPiS_() #0 {
|
|
|
|
entry:
|
|
|
|
br i1 undef, label %while.end, label %while.body.lr.ph
|
|
|
|
|
|
|
|
while.body.lr.ph: ; preds = %entry
|
|
|
|
br i1 undef, label %while.end, label %while.body
|
|
|
|
|
|
|
|
while.body: ; preds = %while.body, %while.body.lr.ph
|
2014-11-24 09:08:18 +00:00
|
|
|
br i1 false, label %while.end, label %while.body, !llvm.loop.vectorize.already_vectorized !0
|
2013-06-10 20:36:52 +00:00
|
|
|
|
|
|
|
while.end: ; preds = %while.body, %while.body.lr.ph, %entry
|
|
|
|
ret void
|
|
|
|
|
|
|
|
; CHECK: @_Z8example3iPiS_
|
|
|
|
; CHECK: bnelr
|
2014-11-24 09:08:18 +00:00
|
|
|
|
|
|
|
; CHECK-CRB: @_Z8example3iPiS_
|
|
|
|
; CHECK-CRB: bclr 12,
|
2013-06-10 20:36:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { noinline nounwind }
|
|
|
|
|
2015-01-18 16:17:27 +00:00
|
|
|
!0 = !{}
|
2013-06-10 20:36:52 +00:00
|
|
|
|