blob: 1aa628b5bd706d61c3db90206fa96eee36e01fc5 (
plain)
1
2
3
4
5
6
7
8
9
|
; RUN: opt %s -instcombine | llvm-dis | 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
}
|