aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll
blob: 82b223a4ddc9469e2489e622baca44fd5c921f90 (plain) (blame)
1
2
3
4
5
6
7
8
9
; 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
}