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

« back to all changes in this revision

Viewing changes to test/Analysis/ScalarEvolution/xor-and.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 -scalar-evolution -analyze \
 
2
; RUN:   | grep {\\-->  (zext i4 (-8 + (trunc i64 (8 \\* %x) to i4)) to i64)}
 
3
 
 
4
; ScalarEvolution shouldn't try to analyze %z into something like
 
5
;   -->  (zext i4 (-1 + (-1 * (trunc i64 (8 * %x) to i4))) to i64)
 
6
 
 
7
define i64 @foo(i64 %x) {
 
8
  %a = shl i64 %x, 3
 
9
  %t = and i64 %a, 8
 
10
  %z = xor i64 %t, 8
 
11
  ret i64 %z
 
12
}