~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/Generic/cast-fp.ll

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s
 
2
@a_fstr = internal constant [8 x i8] c"a = %f\0A\00"            ; <[8 x i8]*> [#uses=1]
 
3
@a_lstr = internal constant [10 x i8] c"a = %lld\0A\00"         ; <[10 x i8]*> [#uses=1]
 
4
@a_dstr = internal constant [8 x i8] c"a = %d\0A\00"            ; <[8 x i8]*> [#uses=1]
 
5
@b_dstr = internal constant [8 x i8] c"b = %d\0A\00"            ; <[8 x i8]*> [#uses=1]
 
6
@b_fstr = internal constant [8 x i8] c"b = %f\0A\00"            ; <[8 x i8]*> [#uses=1]
 
7
@A = global double 2.000000e+00         ; <double*> [#uses=1]
 
8
@B = global i32 2               ; <i32*> [#uses=1]
 
9
 
 
10
declare i32 @printf(i8*, ...)
 
11
 
 
12
define i32 @main() {
 
13
        %a = load double* @A            ; <double> [#uses=4]
 
14
        %a_fs = getelementptr [8 x i8]* @a_fstr, i64 0, i64 0           ; <i8*> [#uses=1]
 
15
        call i32 (i8*, ...)* @printf( i8* %a_fs, double %a )            ; <i32>:1 [#uses=0]
 
16
        %a_d2l = fptosi double %a to i64                ; <i64> [#uses=1]
 
17
        %a_ls = getelementptr [10 x i8]* @a_lstr, i64 0, i64 0          ; <i8*> [#uses=1]
 
18
        call i32 (i8*, ...)* @printf( i8* %a_ls, i64 %a_d2l )           ; <i32>:2 [#uses=0]
 
19
        %a_d2i = fptosi double %a to i32                ; <i32> [#uses=2]
 
20
        %a_ds = getelementptr [8 x i8]* @a_dstr, i64 0, i64 0           ; <i8*> [#uses=3]
 
21
        call i32 (i8*, ...)* @printf( i8* %a_ds, i32 %a_d2i )           ; <i32>:3 [#uses=0]
 
22
        %a_d2sb = fptosi double %a to i8                ; <i8> [#uses=1]
 
23
        call i32 (i8*, ...)* @printf( i8* %a_ds, i8 %a_d2sb )           ; <i32>:4 [#uses=0]
 
24
        %a_d2i2sb = trunc i32 %a_d2i to i8              ; <i8> [#uses=1]
 
25
        call i32 (i8*, ...)* @printf( i8* %a_ds, i8 %a_d2i2sb )         ; <i32>:5 [#uses=0]
 
26
        %b = load i32* @B               ; <i32> [#uses=2]
 
27
        %b_ds = getelementptr [8 x i8]* @b_dstr, i64 0, i64 0           ; <i8*> [#uses=1]
 
28
        call i32 (i8*, ...)* @printf( i8* %b_ds, i32 %b )               ; <i32>:6 [#uses=0]
 
29
        %b_i2d = sitofp i32 %b to double                ; <double> [#uses=1]
 
30
        %b_fs = getelementptr [8 x i8]* @b_fstr, i64 0, i64 0           ; <i8*> [#uses=1]
 
31
        call i32 (i8*, ...)* @printf( i8* %b_fs, double %b_i2d )                ; <i32>:7 [#uses=0]
 
32
        ret i32 0
 
33
}