mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
a3d207d6bc
This reverts commit bf544fa1c3cb80f24d85e84559fb11193846259f. Fixed the typo in PPCInstrInfo.cpp.
37 lines
562 B
LLVM
37 lines
562 B
LLVM
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
|
|
target datalayout = "E-m:e-i64:64-n32:64"
|
|
|
|
declare zeroext i1 @ri1()
|
|
declare void @se1()
|
|
declare void @se2()
|
|
|
|
define void @test() #0 {
|
|
entry:
|
|
%b = call zeroext i1 @ri1()
|
|
br label %next
|
|
|
|
; CHECK-LABEL: @test
|
|
; CHECK: bl ri1
|
|
; CHECK-NEXT: nop
|
|
; CHECK: andi. 3, 3, 1
|
|
|
|
next:
|
|
br i1 %b, label %case1, label %case2
|
|
|
|
case1:
|
|
call void @se1()
|
|
br label %end
|
|
|
|
case2:
|
|
call void @se2()
|
|
br label %end
|
|
|
|
end:
|
|
ret void
|
|
|
|
; CHECK: blr
|
|
}
|
|
|
|
attributes #0 = { noinline optnone }
|
|
|