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

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/pr1489.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 -disable-fp-elim -O0 -mcpu=i486 | grep 1082126238 | count 3
 
2
; RUN: llc < %s -disable-fp-elim -O0 -mcpu=i486 | grep -- -1236950581 | count 1
 
3
;; magic constants are 3.999f and half of 3.999
 
4
; ModuleID = '1489.c'
 
5
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"
 
6
target triple = "i686-apple-darwin8"
 
7
@.str = internal constant [13 x i8] c"%d %d %d %d\0A\00"                ; <[13 x i8]*> [#uses=1]
 
8
 
 
9
define i32 @quux() nounwind {
 
10
entry:
 
11
        %tmp1 = tail call i32 @lrintf( float 0x400FFDF3C0000000 )               ; <i32> [#uses=1]
 
12
        %tmp2 = icmp slt i32 %tmp1, 1           ; <i1> [#uses=1]
 
13
        %tmp23 = zext i1 %tmp2 to i32           ; <i32> [#uses=1]
 
14
        ret i32 %tmp23
 
15
}
 
16
 
 
17
declare i32 @lrintf(float)
 
18
 
 
19
define i32 @foo() nounwind {
 
20
entry:
 
21
        %tmp1 = tail call i32 @lrint( double 3.999000e+00 )             ; <i32> [#uses=1]
 
22
        %tmp2 = icmp slt i32 %tmp1, 1           ; <i1> [#uses=1]
 
23
        %tmp23 = zext i1 %tmp2 to i32           ; <i32> [#uses=1]
 
24
        ret i32 %tmp23
 
25
}
 
26
 
 
27
declare i32 @lrint(double)
 
28
 
 
29
define i32 @bar() nounwind {
 
30
entry:
 
31
        %tmp1 = tail call i32 @lrintf( float 0x400FFDF3C0000000 )               ; <i32> [#uses=1]
 
32
        %tmp2 = icmp slt i32 %tmp1, 1           ; <i1> [#uses=1]
 
33
        %tmp23 = zext i1 %tmp2 to i32           ; <i32> [#uses=1]
 
34
        ret i32 %tmp23
 
35
}
 
36
 
 
37
define i32 @baz() nounwind {
 
38
entry:
 
39
        %tmp1 = tail call i32 @lrintf( float 0x400FFDF3C0000000 )               ; <i32> [#uses=1]
 
40
        %tmp2 = icmp slt i32 %tmp1, 1           ; <i1> [#uses=1]
 
41
        %tmp23 = zext i1 %tmp2 to i32           ; <i32> [#uses=1]
 
42
        ret i32 %tmp23
 
43
}
 
44
 
 
45
define i32 @main() nounwind {
 
46
entry:
 
47
        %tmp = tail call i32 @baz( )            ; <i32> [#uses=1]
 
48
        %tmp1 = tail call i32 @bar( )           ; <i32> [#uses=1]
 
49
        %tmp2 = tail call i32 @foo( )           ; <i32> [#uses=1]
 
50
        %tmp3 = tail call i32 @quux( )          ; <i32> [#uses=1]
 
51
        %tmp5 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([13 x i8]* @.str, i32 0, i32 0), i32 %tmp3, i32 %tmp2, i32 %tmp1, i32 %tmp )              ; <i32> [#uses=0]
 
52
        ret i32 undef
 
53
}
 
54
 
 
55
declare i32 @printf(i8*, ...)