projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Revert r218778 while investigating buldbot breakage.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2008-02-16-SDivOverflow.ll
1
; RUN: opt < %s -instcombine -S | grep "ret i.* 0" | count 2
2
; PR2048
3
4
define i32 @i(i32 %a) {
5
%tmp1 = sdiv i32 %a, -1431655765
6
%tmp2 = sdiv i32 %tmp1, 3
7
ret i32 %tmp2
8
}
9
10
define i8 @j(i8 %a) {
11
%tmp1 = sdiv i8 %a, 64
12
%tmp2 = sdiv i8 %tmp1, 3
13
ret i8 %tmp2
14
}