~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/PowerPC/bswap-load-store.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=ppc32 | FileCheck %s -check-prefix=X32
 
2
; RUN: llc < %s -march=ppc64 | FileCheck %s -check-prefix=X64
 
3
 
 
4
 
 
5
define void @STWBRX(i32 %i, i8* %ptr, i32 %off) {
 
6
        %tmp1 = getelementptr i8* %ptr, i32 %off                ; <i8*> [#uses=1]
 
7
        %tmp1.upgrd.1 = bitcast i8* %tmp1 to i32*               ; <i32*> [#uses=1]
 
8
        %tmp13 = tail call i32 @llvm.bswap.i32( i32 %i )                ; <i32> [#uses=1]
 
9
        store i32 %tmp13, i32* %tmp1.upgrd.1
 
10
        ret void
 
11
}
 
12
 
 
13
define i32 @LWBRX(i8* %ptr, i32 %off) {
 
14
        %tmp1 = getelementptr i8* %ptr, i32 %off                ; <i8*> [#uses=1]
 
15
        %tmp1.upgrd.2 = bitcast i8* %tmp1 to i32*               ; <i32*> [#uses=1]
 
16
        %tmp = load i32* %tmp1.upgrd.2          ; <i32> [#uses=1]
 
17
        %tmp14 = tail call i32 @llvm.bswap.i32( i32 %tmp )              ; <i32> [#uses=1]
 
18
        ret i32 %tmp14
 
19
}
 
20
 
 
21
define void @STHBRX(i16 %s, i8* %ptr, i32 %off) {
 
22
        %tmp1 = getelementptr i8* %ptr, i32 %off                ; <i8*> [#uses=1]
 
23
        %tmp1.upgrd.3 = bitcast i8* %tmp1 to i16*               ; <i16*> [#uses=1]
 
24
        %tmp5 = call i16 @llvm.bswap.i16( i16 %s )              ; <i16> [#uses=1]
 
25
        store i16 %tmp5, i16* %tmp1.upgrd.3
 
26
        ret void
 
27
}
 
28
 
 
29
define i16 @LHBRX(i8* %ptr, i32 %off) {
 
30
        %tmp1 = getelementptr i8* %ptr, i32 %off                ; <i8*> [#uses=1]
 
31
        %tmp1.upgrd.4 = bitcast i8* %tmp1 to i16*               ; <i16*> [#uses=1]
 
32
        %tmp = load i16* %tmp1.upgrd.4          ; <i16> [#uses=1]
 
33
        %tmp6 = call i16 @llvm.bswap.i16( i16 %tmp )            ; <i16> [#uses=1]
 
34
        ret i16 %tmp6
 
35
}
 
36
 
 
37
declare i32 @llvm.bswap.i32(i32)
 
38
 
 
39
declare i16 @llvm.bswap.i16(i16)
 
40
 
 
41
 
 
42
; X32: stwbrx
 
43
; X32: lwbrx
 
44
; X32: sthbrx
 
45
; X32: lhbrx
 
46
 
 
47
; X64: stwbrx
 
48
; X64: lwbrx
 
49
; X64: sthbrx
 
50
; X64: lhbrx
 
51