~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/ExecutionEngine/2008-06-05-APInt-OverAShr.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: llvm-as %s -o %t.bc
 
2
; RUN: lli -force-interpreter=true %t.bc | grep 1
 
3
 
 
4
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-f80:32:32"
 
5
target triple = "i686-pc-linux-gnu"
 
6
@.str = internal constant [10 x i8] c"MSB = %d\0A\00"           ; <[10 x i8]*> [#uses=1]
 
7
 
 
8
define i65 @foo(i65 %x) {
 
9
entry:
 
10
        %x_addr = alloca i65            ; <i65*> [#uses=2]
 
11
        %retval = alloca i65            ; <i65*> [#uses=2]
 
12
        %tmp = alloca i65               ; <i65*> [#uses=2]
 
13
        %"alloca point" = bitcast i65 0 to i65          ; <i65> [#uses=0]
 
14
        store i65 %x, i65* %x_addr
 
15
        %tmp1 = load i65* %x_addr, align 4              ; <i65> [#uses=1]
 
16
        %tmp2 = ashr i65 %tmp1, 65              ; <i65> [#uses=1]
 
17
        store i65 %tmp2, i65* %tmp, align 4
 
18
        %tmp3 = load i65* %tmp, align 4         ; <i65> [#uses=1]
 
19
        store i65 %tmp3, i65* %retval, align 4
 
20
        br label %return
 
21
 
 
22
return:         ; preds = %entry
 
23
        %retval4 = load i65* %retval            ; <i65> [#uses=1]
 
24
        ret i65 %retval4
 
25
}
 
26
 
 
27
define i32 @main() {
 
28
entry:
 
29
        %retval = alloca i32            ; <i32*> [#uses=1]
 
30
        %iftmp.0 = alloca i32           ; <i32*> [#uses=3]
 
31
        %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
 
32
        %tmp = call i65 @foo( i65 -9 )          ; <i65> [#uses=1]
 
33
        %tmp1 = lshr i65 %tmp, 64               ; <i65> [#uses=1]
 
34
        %tmp2 = xor i65 %tmp1, 1                ; <i65> [#uses=1]
 
35
        %tmp3 = and i65 %tmp2, 1                ; <i65> [#uses=1]
 
36
        %tmp34 = trunc i65 %tmp3 to i8          ; <i8> [#uses=1]
 
37
        %toBool = icmp ne i8 %tmp34, 0          ; <i1> [#uses=1]
 
38
        br i1 %toBool, label %cond_true, label %cond_false
 
39
 
 
40
cond_true:              ; preds = %entry
 
41
        store i32 0, i32* %iftmp.0, align 4
 
42
        br label %cond_next
 
43
 
 
44
cond_false:             ; preds = %entry
 
45
        store i32 1, i32* %iftmp.0, align 4
 
46
        br label %cond_next
 
47
 
 
48
cond_next:              ; preds = %cond_false, %cond_true
 
49
        %tmp5 = getelementptr [10 x i8]* @.str, i32 0, i32 0            ; <i8*> [#uses=1]
 
50
        %tmp6 = load i32* %iftmp.0, align 4             ; <i32> [#uses=1]
 
51
        %tmp7 = call i32 (i8*, ...)* @printf( i8* noalias  %tmp5, i32 %tmp6 ) nounwind          ; <i32> [#uses=0]
 
52
        br label %return
 
53
 
 
54
return:         ; preds = %cond_next
 
55
    store i32 0, i32* %retval, align 4
 
56
        %retval8 = load i32* %retval            ; <i32> [#uses=1]
 
57
        ret i32 %retval8
 
58
}
 
59
 
 
60
declare i32 @printf(i8* noalias , ...) nounwind