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

« back to all changes in this revision

Viewing changes to test/Transforms/InstCombine/2007-09-17-AliasConstFold2.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 icmp
 
2
; PR1678
 
3
 
 
4
@A = alias weak void ()* @B             ; <void ()*> [#uses=1]
 
5
 
 
6
declare extern_weak void @B()
 
7
 
 
8
define i32 @active() {
 
9
entry:
 
10
        %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
 
11
        %tmp1 = icmp ne void ()* @A, null               ; <i1> [#uses=1]
 
12
        %tmp12 = zext i1 %tmp1 to i32           ; <i32> [#uses=1]
 
13
        ret i32 %tmp12
 
14
}