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

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/2004-02-12-Memcpy.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 -mtriple=i686-pc-linux-gnu | grep movs | count 1
 
2
 
 
3
@A = global [32 x i32] zeroinitializer
 
4
@B = global [32 x i32] zeroinitializer
 
5
 
 
6
declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)
 
7
 
 
8
define void @main() nounwind {
 
9
  ; dword copy
 
10
  call void @llvm.memcpy.i32(i8* bitcast ([32 x i32]* @A to i8*),
 
11
                           i8* bitcast ([32 x i32]* @B to i8*),
 
12
                           i32 128, i32 4 )
 
13
 
 
14
  ; word copy
 
15
  call void @llvm.memcpy.i32( i8* bitcast ([32 x i32]* @A to i8*),
 
16
                           i8* bitcast ([32 x i32]* @B to i8*),
 
17
                           i32 128, i32 2 )
 
18
 
 
19
  ; byte copy
 
20
  call void @llvm.memcpy.i32( i8* bitcast ([32 x i32]* @A to i8*),
 
21
                           i8* bitcast ([32 x i32]* @B to i8*),
 
22
                            i32 128, i32 1 )
 
23
 
 
24
  ret void
 
25
}