mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
c95df8b6d8
llvm-svn: 81257
10 lines
191 B
LLVM
10 lines
191 B
LLVM
; 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
|
|
}
|