mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
8be17397c0
sign bit set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76304 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
209 B
LLVM
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
|
|
}
|