projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[InstCombine] Fix wrong folding of constant comparison involving ahsr and negative...
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
add-sitofp.ll
1
; RUN: opt < %s -instcombine -S | grep "add nuw nsw i32"
2
3
define double @x(i32 %a, i32 %b) nounwind {
4
%m = lshr i32 %a, 24
5
%n = and i32 %m, %b
6
%o = sitofp i32 %n to double
7
%p = fadd double %o, 1.0
8
ret double %p
9
}