~ubuntu-branches/ubuntu/maverick/clamav/maverick-backports

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/ExecutionEngine/2003-10-18-PHINode-ConstantExpr-CondCode-Failure.ll

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran, Stephen Gran, Michael Tautschnig
  • Date: 2010-04-26 21:41:18 UTC
  • mfrom: (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100426214118-i6lo606wnh7ywfj6
Tags: 0.96+dfsg-4
[ Stephen Gran ]
* Fixed typo in clamav-milter's postinst

[ Michael Tautschnig ]
* Fixed typo in clamav-freshclam's postinst (closes: #579271)
* Debconf translation updates
  - Portuguese (closes: #579068)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llvm-as %s -o %t.bc
 
2
; RUN: lli %t.bc > /dev/null
 
3
 
 
4
@A = global i32 0               ; <i32*> [#uses=1]
 
5
 
 
6
define i32 @main() {
 
7
        %Ret = call i32 @test( i1 true, i32 0 )         ; <i32> [#uses=1]
 
8
        ret i32 %Ret
 
9
}
 
10
 
 
11
define i32 @test(i1 %c, i32 %A) {
 
12
        br i1 %c, label %Taken1, label %NotTaken
 
13
Cont:           ; preds = %Taken1, %NotTaken
 
14
        %V = phi i32 [ 0, %NotTaken ], [ sub (i32 ptrtoint (i32* @A to i32), i32 1234), %Taken1 ]               ; <i32> [#uses=0]
 
15
        ret i32 0
 
16
NotTaken:               ; preds = %0
 
17
        br label %Cont
 
18
Taken1:         ; preds = %0
 
19
        %B = icmp eq i32 %A, 0          ; <i1> [#uses=1]
 
20
        br i1 %B, label %Cont, label %ExitError
 
21
ExitError:              ; preds = %Taken1
 
22
        ret i32 12
 
23
}
 
24