1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/CodeGen/PowerPC/optnone-crbits-i1-ret.ll
Ehsan Amiri db43217a24 Adding -verify-machineinstrs option to PowerPC tests
Currently we have a number of tests that fail with -verify-machineinstrs.
To detect this cases earlier we add the option to the testcases with the
exception of tests that will currently fail with this option. PR 27456 keeps
track of this failures.

No code review, as discussed with Hal Finkel.

llvm-svn: 277624
2016-08-03 18:17:35 +00:00

38 lines
563 B
LLVM

; RUN: llc -verify-machineinstrs < %s | FileCheck %s
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-bgq-linux"
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 }