~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/pr3495-2.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 -march=x86 -relocation-model=pic -disable-fp-elim -stats |& grep {Number of loads added} | grep 1
 
2
; PR3495
 
3
;
 
4
; This test may not be testing what it was supposed to test.
 
5
; It used to have two spills and four reloads, but not it only has one spill and one reload.
 
6
 
 
7
target datalayout = "e-p:32:32:32"
 
8
target triple = "i386-apple-darwin9.6"
 
9
        %struct.constraintVCGType = type { i32, i32, i32, i32 }
 
10
        %struct.nodeVCGType = type { %struct.constraintVCGType*, i32, i32, i32, %struct.constraintVCGType*, i32, i32, i32 }
 
11
 
 
12
define fastcc void @SCC_DFSBelowVCG(%struct.nodeVCGType* %VCG, i32 %net, i32 %label) nounwind {
 
13
entry:
 
14
        %0 = getelementptr %struct.nodeVCGType* %VCG, i32 %net, i32 5           ; <i32*> [#uses=2]
 
15
        %1 = load i32* %0, align 4              ; <i32> [#uses=1]
 
16
        %2 = icmp eq i32 %1, 0          ; <i1> [#uses=1]
 
17
        br i1 %2, label %bb5, label %bb.nph3
 
18
 
 
19
bb.nph3:                ; preds = %entry
 
20
        %3 = getelementptr %struct.nodeVCGType* %VCG, i32 %net, i32 4           ; <%struct.constraintVCGType**> [#uses=1]
 
21
        br label %bb
 
22
 
 
23
bb:             ; preds = %bb3, %bb.nph3
 
24
        %s.02 = phi i32 [ 0, %bb.nph3 ], [ %12, %bb3 ]          ; <i32> [#uses=2]
 
25
        %4 = load %struct.constraintVCGType** %3, align 4               ; <%struct.constraintVCGType*> [#uses=1]
 
26
        %5 = icmp eq i32 0, 0           ; <i1> [#uses=1]
 
27
        br i1 %5, label %bb1, label %bb3
 
28
 
 
29
bb1:            ; preds = %bb
 
30
        %6 = getelementptr %struct.constraintVCGType* %4, i32 %s.02, i32 0              ; <i32*> [#uses=1]
 
31
        %7 = load i32* %6, align 4              ; <i32> [#uses=2]
 
32
        %8 = getelementptr %struct.nodeVCGType* %VCG, i32 %7, i32 7             ; <i32*> [#uses=1]
 
33
        %9 = load i32* %8, align 4              ; <i32> [#uses=1]
 
34
        %10 = icmp eq i32 %9, 0         ; <i1> [#uses=1]
 
35
        br i1 %10, label %bb2, label %bb3
 
36
 
 
37
bb2:            ; preds = %bb1
 
38
        %11 = getelementptr %struct.nodeVCGType* %VCG, i32 %7, i32 4            ; <%struct.constraintVCGType**> [#uses=0]
 
39
        br label %bb.i
 
40
 
 
41
bb.i:           ; preds = %bb.i, %bb2
 
42
        br label %bb.i
 
43
 
 
44
bb3:            ; preds = %bb1, %bb
 
45
        %12 = add i32 %s.02, 1          ; <i32> [#uses=2]
 
46
        %13 = load i32* %0, align 4             ; <i32> [#uses=1]
 
47
        %14 = icmp ugt i32 %13, %12             ; <i1> [#uses=1]
 
48
        br i1 %14, label %bb, label %bb5
 
49
 
 
50
bb5:            ; preds = %bb3, %entry
 
51
        %15 = getelementptr %struct.nodeVCGType* %VCG, i32 %net, i32 6          ; <i32*> [#uses=1]
 
52
        store i32 %label, i32* %15, align 4
 
53
        ret void
 
54
}