diff options
author | Chris Lattner <sabre@nondot.org> | 2005-04-15 19:24:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-04-15 19:24:36 +0000 |
commit | ec656f57f4fca6f783f69a0ab6509b038f5d8b45 (patch) | |
tree | ff026fedfc2c21ff44194777cbdf48c7b1584075 /test/Transforms | |
parent | 1e0d9bda6214e8aaf3d6edd301255f5552242f12 (diff) | |
download | external_llvm-ec656f57f4fca6f783f69a0ab6509b038f5d8b45.zip external_llvm-ec656f57f4fca6f783f69a0ab6509b038f5d8b45.tar.gz external_llvm-ec656f57f4fca6f783f69a0ab6509b038f5d8b45.tar.bz2 |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21304 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/CondProp/basictest.ll | 18 | ||||
-rw-r--r-- | test/Transforms/CondProp/dg.exp | 3 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/Transforms/CondProp/basictest.ll b/test/Transforms/CondProp/basictest.ll new file mode 100644 index 0000000..2e33e9e --- /dev/null +++ b/test/Transforms/CondProp/basictest.ll @@ -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() diff --git a/test/Transforms/CondProp/dg.exp b/test/Transforms/CondProp/dg.exp new file mode 100644 index 0000000..cbdb488 --- /dev/null +++ b/test/Transforms/CondProp/dg.exp @@ -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 |