projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5f143b
)
Add a new testcase for folding an add into a switch
author
Chris Lattner
<sabre@nondot.org>
Sat, 3 Jul 2004 00:25:31 +0000
(
00:25
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 3 Jul 2004 00:25:31 +0000
(
00:25
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14586
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/add.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/add.ll
b/test/Transforms/InstCombine/add.ll
index 8dd4c82fa9f1573805d8fbb6163772ecabd17ca8..b8bab083b9f1c3add4c6e647fef558b005e55f9e 100644
(file)
--- a/
test/Transforms/InstCombine/add.ll
+++ b/
test/Transforms/InstCombine/add.ll
@@
-135,3
+135,17
@@
bool %test21(uint %x) {
%y = seteq uint %t, 123
ret bool %y
}
+
+int %test22(uint %V) {
+ %V2 = add uint %V, 10
+ switch uint %V2, label %Default [
+ uint 20, label %Lab1
+ uint 30, label %Lab2
+ ]
+Default:
+ ret int 123
+Lab1:
+ ret int 12312
+Lab2:
+ ret int 1231231
+}