llvm-6502/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll

10 lines
175 B
LLVM
Raw Normal View History

; 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
}