llvm-6502/test/Transforms/InstCombine/sdiv-shift.ll
2009-07-18 09:53:21 +00:00

10 lines
209 B
LLVM

; RUN: llvm-as < %s | opt -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
}