~ubuntu-branches/ubuntu/jaunty/clamav/jaunty-backports

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/testl-commute.ll

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (1.39.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 11.
  • 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 {testl.*\(%r.i\), %} | count 3
 
2
; rdar://5671654
 
3
; The loads should fold into the testl instructions, no matter how
 
4
; the inputs are commuted.
 
5
 
 
6
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
 
7
target triple = "x86_64-apple-darwin7"
 
8
 
 
9
define i32 @test(i32* %P, i32* %G) nounwind {
 
10
entry:
 
11
        %0 = load i32* %P, align 4              ; <i32> [#uses=3]
 
12
        %1 = load i32* %G, align 4              ; <i32> [#uses=1]
 
13
        %2 = and i32 %1, %0             ; <i32> [#uses=1]
 
14
        %3 = icmp eq i32 %2, 0          ; <i1> [#uses=1]
 
15
        br i1 %3, label %bb1, label %bb
 
16
 
 
17
bb:             ; preds = %entry
 
18
        %4 = tail call i32 @bar() nounwind              ; <i32> [#uses=0]
 
19
        ret i32 %0
 
20
 
 
21
bb1:            ; preds = %entry
 
22
        ret i32 %0
 
23
}
 
24
 
 
25
define i32 @test2(i32* %P, i32* %G) nounwind {
 
26
entry:
 
27
        %0 = load i32* %P, align 4              ; <i32> [#uses=3]
 
28
        %1 = load i32* %G, align 4              ; <i32> [#uses=1]
 
29
        %2 = and i32 %0, %1             ; <i32> [#uses=1]
 
30
        %3 = icmp eq i32 %2, 0          ; <i1> [#uses=1]
 
31
        br i1 %3, label %bb1, label %bb
 
32
 
 
33
bb:             ; preds = %entry
 
34
        %4 = tail call i32 @bar() nounwind              ; <i32> [#uses=0]
 
35
        ret i32 %0
 
36
 
 
37
bb1:            ; preds = %entry
 
38
        ret i32 %0
 
39
}
 
40
define i32 @test3(i32* %P, i32* %G) nounwind {
 
41
entry:
 
42
        %0 = load i32* %P, align 4              ; <i32> [#uses=3]
 
43
        %1 = load i32* %G, align 4              ; <i32> [#uses=1]
 
44
        %2 = and i32 %0, %1             ; <i32> [#uses=1]
 
45
        %3 = icmp eq i32 %2, 0          ; <i1> [#uses=1]
 
46
        br i1 %3, label %bb1, label %bb
 
47
 
 
48
bb:             ; preds = %entry
 
49
        %4 = tail call i32 @bar() nounwind              ; <i32> [#uses=0]
 
50
        ret i32 %1
 
51
 
 
52
bb1:            ; preds = %entry
 
53
        ret i32 %1
 
54
}
 
55
 
 
56
declare i32 @bar()