mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
10 lines
175 B
LLVM
10 lines
175 B
LLVM
|
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep srem
|
||
|
; PR3439
|
||
|
|
||
|
define i32 @a(i32 %x) nounwind {
|
||
|
entry:
|
||
|
%rem = srem i32 %x, 2
|
||
|
%and = and i32 %rem, 2
|
||
|
ret i32 %and
|
||
|
}
|