~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/PowerPC/2007-04-30-InlineAsmEarlyClobber.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 | grep {subfc r3,r5,r4}
 
2
; RUN: llc < %s | grep {subfze r4,r6}
 
3
; RUN: llc < %s -regalloc=local | grep {subfc r6,r5,r4}
 
4
; RUN: llc < %s -regalloc=local | grep {subfze r3,r3}
 
5
; The first argument of subfc must not be the same as any other register.
 
6
 
 
7
; PR1357
 
8
 
 
9
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
 
10
target triple = "powerpc-apple-darwin8.8.0"
 
11
 
 
12
;long long test(int A, int B, int C) {
 
13
;  unsigned X, Y;
 
14
;  __asm__ ("subf%I3c %1,%4,%3\n\tsubfze %0,%2"
 
15
;                 : "=r" (X), "=&r" (Y)
 
16
;                 : "r" (A), "rI" (B), "r" (C));
 
17
;  return ((long long)Y << 32) | X;
 
18
;}
 
19
 
 
20
define i64 @test(i32 %A, i32 %B, i32 %C) nounwind {
 
21
entry:
 
22
        %Y = alloca i32, align 4                ; <i32*> [#uses=2]
 
23
        %tmp4 = call i32 asm "subf${3:I}c $1,$4,$3\0A\09subfze $0,$2", "=r,=*&r,r,rI,r"( i32* %Y, i32 %A, i32 %B, i32 %C )              ; <i32> [#uses=1]
 
24
        %tmp5 = load i32* %Y            ; <i32> [#uses=1]
 
25
        %tmp56 = zext i32 %tmp5 to i64          ; <i64> [#uses=1]
 
26
        %tmp7 = shl i64 %tmp56, 32              ; <i64> [#uses=1]
 
27
        %tmp89 = zext i32 %tmp4 to i64          ; <i64> [#uses=1]
 
28
        %tmp10 = or i64 %tmp7, %tmp89           ; <i64> [#uses=1]
 
29
        ret i64 %tmp10
 
30
}