Sign in
swiftshader
/
SwiftShader
/
81c28576d6e655ccf3ab037c2f36f2f3d7c206b8
/
.
/
third_party
/
LLVM
/
test
/
Transforms
/
InstCombine
/
add-sitofp.ll
blob: 98a8cb452a6ceece91b6f0c9a10d6f8aeaf11359 [
file
] [
log
] [
blame
]
; RUN: opt < %s -instcombine -S | grep {add nsw i32}
define
double
@x
(
i32
%a
,
i32
%b
)
nounwind
{
%m
=
lshr
i32
%a
,
24
%n
=
and
i32
%m
,
%b
%o
=
sitofp
i32
%n
to
double
%p
=
fadd
double
%o
,
1.0
ret
double
%p
}