~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/2009-09-10-LoadFoldingBug.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-darwin10.0 -relocation-model=pic -disable-fp-elim | FileCheck %s
 
2
 
 
3
; It's not legal to fold a load from 32-bit stack slot into a 64-bit
 
4
; instruction. If done, the instruction does a 64-bit load and that's not
 
5
; safe. This can happen we a subreg_to_reg 0 has been coalesced. One
 
6
; exception is when the instruction that folds the load is a move, then we
 
7
; can simply turn it into a 32-bit load from the stack slot.
 
8
; rdar://7170444
 
9
 
 
10
%struct.ComplexType = type { i32 }
 
11
 
 
12
define i32 @t(i32 %clientPort, i32 %pluginID, i32 %requestID, i32 %objectID, i64 %serverIdentifier, i64 %argumentsData, i32 %argumentsLength) ssp {
 
13
entry:
 
14
; CHECK: _t:
 
15
; CHECK: movl 16(%rbp),
 
16
  %0 = zext i32 %argumentsLength to i64           ; <i64> [#uses=1]
 
17
  %1 = zext i32 %clientPort to i64                ; <i64> [#uses=1]
 
18
  %2 = inttoptr i64 %1 to %struct.ComplexType*    ; <%struct.ComplexType*> [#uses=1]
 
19
  %3 = invoke i8* @pluginInstance(i8* undef, i32 %pluginID)
 
20
          to label %invcont unwind label %lpad    ; <i8*> [#uses=1]
 
21
 
 
22
invcont:                                          ; preds = %entry
 
23
  %4 = add i32 %requestID, %pluginID              ; <i32> [#uses=0]
 
24
  %5 = invoke zeroext i8 @invoke(i8* %3, i32 %objectID, i8* undef, i64 %argumentsData, i32 %argumentsLength, i64* undef, i32* undef)
 
25
          to label %invcont1 unwind label %lpad   ; <i8> [#uses=0]
 
26
 
 
27
invcont1:                                         ; preds = %invcont
 
28
  %6 = getelementptr inbounds %struct.ComplexType* %2, i64 0, i32 0 ; <i32*> [#uses=1]
 
29
  %7 = load i32* %6, align 4                      ; <i32> [#uses=1]
 
30
  invoke void @booleanAndDataReply(i32 %7, i32 undef, i32 %requestID, i32 undef, i64 undef, i32 undef)
 
31
          to label %invcont2 unwind label %lpad
 
32
 
 
33
invcont2:                                         ; preds = %invcont1
 
34
  ret i32 0
 
35
 
 
36
lpad:                                             ; preds = %invcont1, %invcont, %entry
 
37
  %8 = call i32 @vm_deallocate(i32 undef, i64 0, i64 %0) ; <i32> [#uses=0]
 
38
  unreachable
 
39
}
 
40
 
 
41
declare i32 @vm_deallocate(i32, i64, i64)
 
42
 
 
43
declare i8* @pluginInstance(i8*, i32)
 
44
 
 
45
declare zeroext i8 @invoke(i8*, i32, i8*, i64, i32, i64*, i32*)
 
46
 
 
47
declare void @booleanAndDataReply(i32, i32, i32, i32, i64, i32)