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

« back to all changes in this revision

Viewing changes to test/Transforms/InstCombine/2009-12-17-CmpSelectNull.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 | FileCheck %s
 
2
 
 
3
@.str254 = internal constant [2 x i8] c".\00"
 
4
@.str557 = internal constant [3 x i8] c"::\00"
 
5
 
 
6
define i8* @demangle_qualified(i32 %isfuncname) nounwind {
 
7
entry:
 
8
  %tobool272 = icmp ne i32 %isfuncname, 0
 
9
  %cond276 = select i1 %tobool272, i8* getelementptr inbounds ([2 x i8]* @.str254, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8]* @.str557, i32 0, i32 0) ; <i8*> [#uses=4]
 
10
  %cmp.i504 = icmp eq i8* %cond276, null
 
11
  %rval = getelementptr i8* %cond276, i1 %cmp.i504
 
12
  ret i8* %rval
 
13
}
 
14
 
 
15
; CHECK: %cond276 = select i1
 
16
; CHECK: ret i8* %cond276