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

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/ARM/2007-05-09-tailmerge-2.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: llc < %s -march=arm -enable-tail-merge | grep bl.*baz | count 1
 
2
; RUN: llc < %s -march=arm -enable-tail-merge | grep bl.*quux | count 1
 
3
; RUN: llc < %s -march=arm -enable-tail-merge -enable-eh | grep bl.*baz | count 1
 
4
; RUN: llc < %s -march=arm -enable-tail-merge -enable-eh | grep bl.*quux | count 1
 
5
; Check that calls to baz and quux are tail-merged.
 
6
; PR1628
 
7
 
 
8
; ModuleID = 'tail.c'
 
9
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
 
10
target triple = "i686-apple-darwin8"
 
11
 
 
12
define i32 @f(i32 %i, i32 %q) {
 
13
entry:
 
14
        %i_addr = alloca i32            ; <i32*> [#uses=2]
 
15
        %q_addr = alloca i32            ; <i32*> [#uses=2]
 
16
        %retval = alloca i32, align 4           ; <i32*> [#uses=1]
 
17
        "alloca point" = bitcast i32 0 to i32           ; <i32> [#uses=0]
 
18
        store i32 %i, i32* %i_addr
 
19
        store i32 %q, i32* %q_addr
 
20
        %tmp = load i32* %i_addr                ; <i32> [#uses=1]
 
21
        %tmp1 = icmp ne i32 %tmp, 0             ; <i1> [#uses=1]
 
22
        %tmp12 = zext i1 %tmp1 to i8            ; <i8> [#uses=1]
 
23
        %toBool = icmp ne i8 %tmp12, 0          ; <i1> [#uses=1]
 
24
        br i1 %toBool, label %cond_true, label %cond_false
 
25
 
 
26
cond_true:              ; preds = %entry
 
27
        %tmp3 = call i32 (...)* @bar( )         ; <i32> [#uses=0]
 
28
        %tmp4 = call i32 (...)* @baz( i32 5, i32 6 )            ; <i32> [#uses=0]
 
29
        %tmp7 = load i32* %q_addr               ; <i32> [#uses=1]
 
30
        %tmp8 = icmp ne i32 %tmp7, 0            ; <i1> [#uses=1]
 
31
        %tmp89 = zext i1 %tmp8 to i8            ; <i8> [#uses=1]
 
32
        %toBool10 = icmp ne i8 %tmp89, 0                ; <i1> [#uses=1]
 
33
        br i1 %toBool10, label %cond_true11, label %cond_false15
 
34
 
 
35
cond_false:             ; preds = %entry
 
36
        %tmp5 = call i32 (...)* @foo( )         ; <i32> [#uses=0]
 
37
        %tmp6 = call i32 (...)* @baz( i32 5, i32 6 )            ; <i32> [#uses=0]
 
38
        %tmp27 = load i32* %q_addr              ; <i32> [#uses=1]
 
39
        %tmp28 = icmp ne i32 %tmp27, 0          ; <i1> [#uses=1]
 
40
        %tmp289 = zext i1 %tmp28 to i8          ; <i8> [#uses=1]
 
41
        %toBool210 = icmp ne i8 %tmp289, 0              ; <i1> [#uses=1]
 
42
        br i1 %toBool210, label %cond_true11, label %cond_false15
 
43
 
 
44
cond_true11:            ; preds = %cond_next
 
45
        %tmp13 = call i32 (...)* @foo( )                ; <i32> [#uses=0]
 
46
        %tmp14 = call i32 (...)* @quux( i32 3, i32 4 )          ; <i32> [#uses=0]
 
47
        br label %cond_next18
 
48
 
 
49
cond_false15:           ; preds = %cond_next
 
50
        %tmp16 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
 
51
        %tmp17 = call i32 (...)* @quux( i32 3, i32 4 )          ; <i32> [#uses=0]
 
52
        br label %cond_next18
 
53
 
 
54
cond_next18:            ; preds = %cond_false15, %cond_true11
 
55
        %tmp19 = call i32 (...)* @bar( )                ; <i32> [#uses=0]
 
56
        br label %return
 
57
 
 
58
return:         ; preds = %cond_next18
 
59
        %retval20 = load i32* %retval           ; <i32> [#uses=1]
 
60
        ret i32 %retval20
 
61
}
 
62
 
 
63
declare i32 @bar(...)
 
64
 
 
65
declare i32 @baz(...)
 
66
 
 
67
declare i32 @foo(...)
 
68
 
 
69
declare i32 @quux(...)