aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/load.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-12 23:22:17 +0000
committerChris Lattner <sabre@nondot.org>2005-09-12 23:22:17 +0000
commit15cc608a8f5b2ab2a0b5335f028482d5a012e3b4 (patch)
tree26843e9e8c823086a46722c004bcb6eee3966f3d /test/Transforms/InstCombine/load.ll
parent9c1f0fd8de9b1c8ef1429110a3e3b878920401ef (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23323 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/load.ll')
-rw-r--r--test/Transforms/InstCombine/load.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/load.ll b/test/Transforms/InstCombine/load.ll
index f3090a4f95..1934709ffa 100644
--- a/test/Transforms/InstCombine/load.ll
+++ b/test/Transforms/InstCombine/load.ll
@@ -72,3 +72,17 @@ int %test9(int* %P) {
%Z = sub int %X, %Y
ret int %Z
}
+
+int %test10(bool %C, int* %P, int* %Q) {
+ br bool %C, label %T, label %F
+T:
+ store int 1, int* %Q
+ store int 0, int* %P
+ br label %C
+F:
+ store int 0, int* %P
+ br label %C
+C:
+ %V = load int* %P ;; always 0
+ ret int %V
+}