projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR3439: Correct a silly mistake in the SimplifyDemandedUseBits code for
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2009-06-16-SRemDemandedBits.ll
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep srem
2
; PR3439
3
4
define i32 @a(i32 %x) nounwind {
5
entry:
6
%rem = srem i32 %x, 2
7
%and = and i32 %rem, 2
8
ret i32 %and
9
}
10
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep srem
11
; PR3439
12
13
define i32 @a(i32 %x) nounwind {
14
entry:
15
%rem = srem i32 %x, 2
16
%and = and i32 %rem, 2
17
ret i32 %and
18
}