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:
3ca4fcc
)
Add a new testcase for X/-1, fix bug that prevented tests from running right
author
Chris Lattner
<sabre@nondot.org>
Mon, 26 Apr 2004 14:01:47 +0000
(14:01 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 26 Apr 2004 14:01:47 +0000
(14:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13171
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/Transforms/InstCombine/div.ll
patch
|
blob
|
history
diff --git
a/test/Transforms/InstCombine/div.ll
b/test/Transforms/InstCombine/div.ll
index 01fcf7f9dcdd1ebf44e930a47d7e07213cf77a2d..52511a7943ce838216e8b785f55bfe78bd3bc75e 100644
(file)
--- a/
test/Transforms/InstCombine/div.ll
+++ b/
test/Transforms/InstCombine/div.ll
@@
-12,10
+12,15
@@
int %test1(int %A) {
uint %test2(uint %A) {
%B = div uint %A, 8 ; => Shift
- ret int %B
+ ret
u
int %B
}
int %test3(int %A) {
%B = div int 0, %A ; => 0, don't need to keep traps
ret int %B
}
+
+int %test4(int %A) {
+ %B = div int %A, -1 ; 0-A
+ ret int %B
+}