mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21304 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e0d9bda62
commit
ec656f57f4
18
test/Transforms/CondProp/basictest.ll
Normal file
18
test/Transforms/CondProp/basictest.ll
Normal file
@ -0,0 +1,18 @@
|
||||
; RUN: llvm-as < %s | opt -condprop | llvm-dis | not grep 'br label'
|
||||
|
||||
int %test(bool %C) {
|
||||
br bool %C, label %T1, label %F1
|
||||
T1:
|
||||
br label %Cont
|
||||
F1:
|
||||
br label %Cont
|
||||
Cont:
|
||||
%C2 = phi bool [false, %F1], [true, %T1]
|
||||
br bool %C2, label %T2, label %F2
|
||||
T2:
|
||||
call void %bar()
|
||||
ret int 17
|
||||
F2:
|
||||
ret int 1
|
||||
}
|
||||
declare void %bar()
|
3
test/Transforms/CondProp/dg.exp
Normal file
3
test/Transforms/CondProp/dg.exp
Normal file
@ -0,0 +1,3 @@
|
||||
load_lib llvm-dg.exp
|
||||
|
||||
llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]] $objdir $srcdir $subdir $target_triplet $llvmgcc $llvmgxx $prcontext
|
Loading…
x
Reference in New Issue
Block a user