~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/compare-inf.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-64 | FileCheck %s
 
2
 
 
3
; Convert oeq and une to ole/oge/ule/uge when comparing with infinity
 
4
; and negative infinity, because those are more efficient on x86.
 
5
 
 
6
; CHECK: oeq_inff:
 
7
; CHECK: ucomiss
 
8
; CHECK: jae
 
9
define float @oeq_inff(float %x, float %y) nounwind readonly {
 
10
  %t0 = fcmp oeq float %x, 0x7FF0000000000000
 
11
  %t1 = select i1 %t0, float 1.0, float %y
 
12
  ret float %t1
 
13
}
 
14
 
 
15
; CHECK: oeq_inf:
 
16
; CHECK: ucomisd
 
17
; CHECK: jae
 
18
define double @oeq_inf(double %x, double %y) nounwind readonly {
 
19
  %t0 = fcmp oeq double %x, 0x7FF0000000000000
 
20
  %t1 = select i1 %t0, double 1.0, double %y
 
21
  ret double %t1
 
22
}
 
23
 
 
24
; CHECK: une_inff:
 
25
; CHECK: ucomiss
 
26
; CHECK: jb
 
27
define float @une_inff(float %x, float %y) nounwind readonly {
 
28
  %t0 = fcmp une float %x, 0x7FF0000000000000
 
29
  %t1 = select i1 %t0, float 1.0, float %y
 
30
  ret float %t1
 
31
}
 
32
 
 
33
; CHECK: une_inf:
 
34
; CHECK: ucomisd
 
35
; CHECK: jb
 
36
define double @une_inf(double %x, double %y) nounwind readonly {
 
37
  %t0 = fcmp une double %x, 0x7FF0000000000000
 
38
  %t1 = select i1 %t0, double 1.0, double %y
 
39
  ret double %t1
 
40
}
 
41
 
 
42
; CHECK: oeq_neg_inff:
 
43
; CHECK: ucomiss
 
44
; CHECK: jae
 
45
define float @oeq_neg_inff(float %x, float %y) nounwind readonly {
 
46
  %t0 = fcmp oeq float %x, 0xFFF0000000000000
 
47
  %t1 = select i1 %t0, float 1.0, float %y
 
48
  ret float %t1
 
49
}
 
50
 
 
51
; CHECK: oeq_neg_inf:
 
52
; CHECK: ucomisd
 
53
; CHECK: jae
 
54
define double @oeq_neg_inf(double %x, double %y) nounwind readonly {
 
55
  %t0 = fcmp oeq double %x, 0xFFF0000000000000
 
56
  %t1 = select i1 %t0, double 1.0, double %y
 
57
  ret double %t1
 
58
}
 
59
 
 
60
; CHECK: une_neg_inff:
 
61
; CHECK: ucomiss
 
62
; CHECK: jb
 
63
define float @une_neg_inff(float %x, float %y) nounwind readonly {
 
64
  %t0 = fcmp une float %x, 0xFFF0000000000000
 
65
  %t1 = select i1 %t0, float 1.0, float %y
 
66
  ret float %t1
 
67
}
 
68
 
 
69
; CHECK: une_neg_inf:
 
70
; CHECK: ucomisd
 
71
; CHECK: jb
 
72
define double @une_neg_inf(double %x, double %y) nounwind readonly {
 
73
  %t0 = fcmp une double %x, 0xFFF0000000000000
 
74
  %t1 = select i1 %t0, double 1.0, double %y
 
75
  ret double %t1
 
76
}