1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/test/Bitcode/terminatorInstructions.3.2.ll
Duncan P. N. Exon Smith d5508bfe28 verify-uselistorder: Change the default -num-shuffles=5
Change the default for `-num-shuffles` to 5 and better document the
algorithm in the header docs of `verify-uselistorder`.

llvm-svn: 214419
2014-07-31 18:46:24 +00:00

49 lines
880 B
LLVM

; RUN: llvm-dis < %s.bc| FileCheck %s
; RUN: verify-uselistorder < %s.bc -preserve-bc-use-list-order
; TerminatorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
; The test checks that LLVM does not misread terminator instructions from
; older bitcode files.
define i32 @condbr(i1 %cond){
entry:
; CHECK: br i1 %cond, label %TrueLabel, label %FalseLabel
br i1 %cond, label %TrueLabel, label %FalseLabel
TrueLabel:
ret i32 1
FalseLabel:
ret i32 0
}
define i32 @uncondbr(){
entry:
; CHECK: br label %uncondLabel
br label %uncondLabel
uncondLabel:
ret i32 1
}
define i32 @indirectbr(i8* %Addr){
entry:
; CHECK: indirectbr i8* %Addr, [label %bb1, label %bb2]
indirectbr i8* %Addr, [ label %bb1, label %bb2 ]
bb1:
ret i32 1
bb2:
ret i32 0
}
define void @unreachable(){
entry:
; CHECK: unreachable
unreachable
ret void
}