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

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/2009-03-03-BTHang.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=x86
 
2
; rdar://6642541
 
3
 
 
4
        %struct.HandleBlock = type { [30 x i32], [990 x i8*], %struct.HandleBlockTrailer }
 
5
        %struct.HandleBlockTrailer = type { %struct.HandleBlock* }
 
6
 
 
7
define hidden zeroext i8 @IsHandleAllocatedFromPool(i8** %h) nounwind optsize {
 
8
entry:
 
9
        %0 = ptrtoint i8** %h to i32            ; <i32> [#uses=2]
 
10
        %1 = and i32 %0, -4096          ; <i32> [#uses=1]
 
11
        %2 = inttoptr i32 %1 to %struct.HandleBlock*            ; <%struct.HandleBlock*> [#uses=3]
 
12
        %3 = getelementptr %struct.HandleBlock* %2, i32 0, i32 0, i32 0         ; <i32*> [#uses=1]
 
13
        %4 = load i32* %3, align 4096           ; <i32> [#uses=1]
 
14
        %5 = icmp eq i32 %4, 1751280747         ; <i1> [#uses=1]
 
15
        br i1 %5, label %bb, label %bb1
 
16
 
 
17
bb:             ; preds = %entry
 
18
        %6 = getelementptr %struct.HandleBlock* %2, i32 0, i32 1                ; <[990 x i8*]*> [#uses=1]
 
19
        %7 = ptrtoint [990 x i8*]* %6 to i32            ; <i32> [#uses=1]
 
20
        %8 = sub i32 %0, %7             ; <i32> [#uses=2]
 
21
        %9 = lshr i32 %8, 2             ; <i32> [#uses=1]
 
22
        %10 = ashr i32 %8, 7            ; <i32> [#uses=1]
 
23
        %11 = and i32 %10, 134217727            ; <i32> [#uses=1]
 
24
        %12 = getelementptr %struct.HandleBlock* %2, i32 0, i32 0, i32 %11              ; <i32*> [#uses=1]
 
25
        %not.i = and i32 %9, 31         ; <i32> [#uses=1]
 
26
        %13 = xor i32 %not.i, 31                ; <i32> [#uses=1]
 
27
        %14 = shl i32 1, %13            ; <i32> [#uses=1]
 
28
        %15 = load i32* %12, align 4            ; <i32> [#uses=1]
 
29
        %16 = and i32 %15, %14          ; <i32> [#uses=1]
 
30
        %17 = icmp eq i32 %16, 0                ; <i1> [#uses=1]
 
31
        %tmp = zext i1 %17 to i8                ; <i8> [#uses=1]
 
32
        ret i8 %tmp
 
33
 
 
34
bb1:            ; preds = %entry
 
35
        ret i8 0
 
36
}
 
37