~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/fold-call-3.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 -mtriple=x86_64-apple-darwin | grep call | grep 560
 
2
; rdar://6522427
 
3
 
 
4
        %"struct.clang::Action" = type { %"struct.clang::ActionBase" }
 
5
        %"struct.clang::ActionBase" = type { i32 (...)** }
 
6
        %"struct.clang::ActionBase::ActionResult<0u>" = type { i8*, i8 }
 
7
@NumTrials = internal global i32 10000000               ; <i32*> [#uses=2]
 
8
@llvm.used = appending global [1 x i8*] [ i8* bitcast (void (i8*, %"struct.clang::Action"*)* @_Z25RawPointerPerformanceTestPvRN5clang6ActionE to i8*) ], section "llvm.metadata"                ; <[1 x i8*]*> [#uses=0]
 
9
 
 
10
define void @_Z25RawPointerPerformanceTestPvRN5clang6ActionE(i8* %Val, %"struct.clang::Action"* %Actions) nounwind {
 
11
entry:
 
12
        %0 = alloca %"struct.clang::ActionBase::ActionResult<0u>", align 8              ; <%"struct.clang::ActionBase::ActionResult<0u>"*> [#uses=3]
 
13
        %1 = load i32* @NumTrials, align 4              ; <i32> [#uses=1]
 
14
        %2 = icmp eq i32 %1, 0          ; <i1> [#uses=1]
 
15
        br i1 %2, label %return, label %bb.nph
 
16
 
 
17
bb.nph:         ; preds = %entry
 
18
        %3 = getelementptr %"struct.clang::Action"* %Actions, i64 0, i32 0, i32 0               ; <i32 (...)***> [#uses=1]
 
19
        %mrv_gep = bitcast %"struct.clang::ActionBase::ActionResult<0u>"* %0 to i64*            ; <i64*> [#uses=1]
 
20
        %mrv_gep1 = getelementptr %"struct.clang::ActionBase::ActionResult<0u>"* %0, i64 0, i32 1               ; <i8*> [#uses=1]
 
21
        %4 = bitcast i8* %mrv_gep1 to i64*              ; <i64*> [#uses=1]
 
22
        %5 = getelementptr %"struct.clang::ActionBase::ActionResult<0u>"* %0, i64 0, i32 0              ; <i8**> [#uses=1]
 
23
        br label %bb
 
24
 
 
25
bb:             ; preds = %bb, %bb.nph
 
26
        %Trial.01 = phi i32 [ 0, %bb.nph ], [ %12, %bb ]                ; <i32> [#uses=1]
 
27
        %Val_addr.02 = phi i8* [ %Val, %bb.nph ], [ %11, %bb ]          ; <i8*> [#uses=1]
 
28
        %6 = load i32 (...)*** %3, align 8              ; <i32 (...)**> [#uses=1]
 
29
        %7 = getelementptr i32 (...)** %6, i64 70               ; <i32 (...)**> [#uses=1]
 
30
        %8 = load i32 (...)** %7, align 8               ; <i32 (...)*> [#uses=1]
 
31
        %9 = bitcast i32 (...)* %8 to { i64, i64 } (%"struct.clang::Action"*, i8*)*             ; <{ i64, i64 } (%"struct.clang::Action"*, i8*)*> [#uses=1]
 
32
        %10 = call { i64, i64 } %9(%"struct.clang::Action"* %Actions, i8* %Val_addr.02) nounwind                ; <{ i64, i64 }> [#uses=2]
 
33
        %mrv_gr = extractvalue { i64, i64 } %10, 0              ; <i64> [#uses=1]
 
34
        store i64 %mrv_gr, i64* %mrv_gep
 
35
        %mrv_gr2 = extractvalue { i64, i64 } %10, 1             ; <i64> [#uses=1]
 
36
        store i64 %mrv_gr2, i64* %4
 
37
        %11 = load i8** %5, align 8             ; <i8*> [#uses=1]
 
38
        %12 = add i32 %Trial.01, 1              ; <i32> [#uses=2]
 
39
        %13 = load i32* @NumTrials, align 4             ; <i32> [#uses=1]
 
40
        %14 = icmp ult i32 %12, %13             ; <i1> [#uses=1]
 
41
        br i1 %14, label %bb, label %return
 
42
 
 
43
return:         ; preds = %bb, %entry
 
44
        ret void
 
45
}