repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix PR4963: folding insertvalue would sometimes turn a packed struct into
[llvm/avr.git]
/
test
/
Transforms
/
InstCombine
/
2008-02-16-SDivOverflow.ll
blob
af61c150a7f8f69bc3e32a46982e90242cea6196
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
}