~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/Transforms/InstCombine/srem-simplify-bug.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt < %s -instcombine -S | grep {ret i1 false}
 
2
; PR2276
 
3
 
 
4
define i1 @f(i32 %x) {
 
5
  %A = or i32 %x, 1
 
6
  %B = srem i32 %A, 1
 
7
  %C = icmp ne i32 %B, 0
 
8
  ret i1 %C
 
9
}