Sign in
swiftshader
/
SwiftShader
/
81c28576d6e655ccf3ab037c2f36f2f3d7c206b8
/
.
/
third_party
/
LLVM
/
test
/
Transforms
/
InstCombine
/
sdiv-shift.ll
blob: f4d2b36cbbf8d4bc656dfefc6b5ff427cee73d07 [
file
] [
log
] [
blame
]
; RUN: opt < %s -instcombine -S | not grep div
define
i32
@a
(
i16
zeroext
%x
,
i32
%y
)
nounwind
{
entry
:
%conv
=
zext
i16
%x
to
i32
%s
=
shl
i32
2
,
%y
%d
=
sdiv
i32
%conv
,
%s
ret
i32
%d
}