Sign in
ara-mdk
/
platform
/
external
/
llvm
/
238bb0fd7d8cfbfca4918de5b6103c3f3e1808e0
/
.
/
test
/
Transforms
/
InstCombine
/
add-sitofp.ll
blob: 40edf7114a068845703f3e34738a27489630cb18 [
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
}