~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/MBlaze/shift.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
; Ensure that shifts are lowered to loops when the barrel shifter unit is
 
2
; not available in the hardware and that loops are not used when the
 
3
; barrel shifter unit is available in the hardware.
 
4
;
 
5
; RUN: llc < %s -march=mblaze | FileCheck -check-prefix=FUN %s
 
6
; RUN: llc < %s -march=mblaze -mattr=+barrel | FileCheck -check-prefix=SHT %s
 
7
 
 
8
define i8 @test_i8(i8 %a, i8 %b) {
 
9
    ; FUN:        test_i8:
 
10
    ; SHT:        test_i8:
 
11
 
 
12
    %tmp.1 = shl i8 %a, %b
 
13
    ; FUN-NOT:    bsll
 
14
    ; FUN:        andi
 
15
    ; FUN:        add
 
16
    ; FUN:        bnei
 
17
    ; SHT-NOT:    andi
 
18
    ; SHT-NOT:    bnei
 
19
    ; SHT:        bsll
 
20
 
 
21
    ret i8 %tmp.1
 
22
    ; FUN:        rtsd
 
23
    ; SHT:        rtsd
 
24
}
 
25
 
 
26
define i8 @testc_i8(i8 %a, i8 %b) {
 
27
    ; FUN:        testc_i8:
 
28
    ; SHT:        testc_i8:
 
29
 
 
30
    %tmp.1 = shl i8 %a, 5
 
31
    ; FUN-NOT:    bsll
 
32
    ; FUN:        andi
 
33
    ; FUN:        add
 
34
    ; FUN:        bnei
 
35
    ; SHT-NOT:    andi
 
36
    ; SHT-NOT:    add
 
37
    ; SHT-NOT:    bnei
 
38
    ; SHT:        bslli
 
39
 
 
40
    ret i8 %tmp.1
 
41
    ; FUN:        rtsd
 
42
    ; SHT:        rtsd
 
43
}
 
44
 
 
45
define i16 @test_i16(i16 %a, i16 %b) {
 
46
    ; FUN:        test_i16:
 
47
    ; SHT:        test_i16:
 
48
 
 
49
    %tmp.1 = shl i16 %a, %b
 
50
    ; FUN-NOT:    bsll
 
51
    ; FUN:        andi
 
52
    ; FUN:        add
 
53
    ; FUN:        bnei
 
54
    ; SHT-NOT:    andi
 
55
    ; SHT-NOT:    bnei
 
56
    ; SHT:        bsll
 
57
 
 
58
    ret i16 %tmp.1
 
59
    ; FUN:        rtsd
 
60
    ; SHT:        rtsd
 
61
}
 
62
 
 
63
define i16 @testc_i16(i16 %a, i16 %b) {
 
64
    ; FUN:        testc_i16:
 
65
    ; SHT:        testc_i16:
 
66
 
 
67
    %tmp.1 = shl i16 %a, 5
 
68
    ; FUN-NOT:    bsll
 
69
    ; FUN:        andi
 
70
    ; FUN:        add
 
71
    ; FUN:        bnei
 
72
    ; SHT-NOT:    andi
 
73
    ; SHT-NOT:    add
 
74
    ; SHT-NOT:    bnei
 
75
    ; SHT:        bslli
 
76
 
 
77
    ret i16 %tmp.1
 
78
    ; FUN:        rtsd
 
79
    ; SHT:        rtsd
 
80
}
 
81
 
 
82
define i32 @test_i32(i32 %a, i32 %b) {
 
83
    ; FUN:        test_i32:
 
84
    ; SHT:        test_i32:
 
85
 
 
86
    %tmp.1 = shl i32 %a, %b
 
87
    ; FUN-NOT:    bsll
 
88
    ; FUN:        andi
 
89
    ; FUN:        add
 
90
    ; FUN:        bnei
 
91
    ; SHT-NOT:    andi
 
92
    ; SHT-NOT:    bnei
 
93
    ; SHT:        bsll
 
94
 
 
95
    ret i32 %tmp.1
 
96
    ; FUN:        rtsd
 
97
    ; SHT:        rtsd
 
98
}
 
99
 
 
100
define i32 @testc_i32(i32 %a, i32 %b) {
 
101
    ; FUN:        testc_i32:
 
102
    ; SHT:        testc_i32:
 
103
 
 
104
    %tmp.1 = shl i32 %a, 5
 
105
    ; FUN-NOT:    bsll
 
106
    ; FUN:        andi
 
107
    ; FUN:        add
 
108
    ; FUN:        bnei
 
109
    ; SHT-NOT:    andi
 
110
    ; SHT-NOT:    add
 
111
    ; SHT-NOT:    bnei
 
112
    ; SHT:        bslli
 
113
 
 
114
    ret i32 %tmp.1
 
115
    ; FUN:        rtsd
 
116
    ; SHT:        rtsd
 
117
}