~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/zext-inreg-0.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=x86 | not grep and
 
2
; RUN: llc < %s -march=x86-64 > %t
 
3
; RUN: not grep and %t
 
4
; RUN: not grep movzbq %t
 
5
; RUN: not grep movzwq %t
 
6
; RUN: not grep movzlq %t
 
7
 
 
8
; These should use movzbl instead of 'and 255'.
 
9
; This related to not having a ZERO_EXTEND_REG opcode.
 
10
 
 
11
define i32 @a(i32 %d) nounwind  {
 
12
        %e = add i32 %d, 1
 
13
        %retval = and i32 %e, 255
 
14
        ret i32 %retval
 
15
}
 
16
define i32 @b(float %d) nounwind  {
 
17
        %tmp12 = fptoui float %d to i8
 
18
        %retval = zext i8 %tmp12 to i32
 
19
        ret i32 %retval
 
20
}
 
21
define i32 @c(i32 %d) nounwind  {
 
22
        %e = add i32 %d, 1
 
23
        %retval = and i32 %e, 65535
 
24
        ret i32 %retval
 
25
}
 
26
define i64 @d(i64 %d) nounwind  {
 
27
        %e = add i64 %d, 1
 
28
        %retval = and i64 %e, 255
 
29
        ret i64 %retval
 
30
}
 
31
define i64 @e(i64 %d) nounwind  {
 
32
        %e = add i64 %d, 1
 
33
        %retval = and i64 %e, 65535
 
34
        ret i64 %retval
 
35
}
 
36
define i64 @f(i64 %d) nounwind  {
 
37
        %e = add i64 %d, 1
 
38
        %retval = and i64 %e, 4294967295
 
39
        ret i64 %retval
 
40
}
 
41
 
 
42
define i32 @g(i8 %d) nounwind  {
 
43
        %e = add i8 %d, 1
 
44
        %retval = zext i8 %e to i32
 
45
        ret i32 %retval
 
46
}
 
47
define i32 @h(i16 %d) nounwind  {
 
48
        %e = add i16 %d, 1
 
49
        %retval = zext i16 %e to i32
 
50
        ret i32 %retval
 
51
}
 
52
define i64 @i(i8 %d) nounwind  {
 
53
        %e = add i8 %d, 1
 
54
        %retval = zext i8 %e to i64
 
55
        ret i64 %retval
 
56
}
 
57
define i64 @j(i16 %d) nounwind  {
 
58
        %e = add i16 %d, 1
 
59
        %retval = zext i16 %e to i64
 
60
        ret i64 %retval
 
61
}
 
62
define i64 @k(i32 %d) nounwind  {
 
63
        %e = add i32 %d, 1
 
64
        %retval = zext i32 %e to i64
 
65
        ret i64 %retval
 
66
}