~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/nobt.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 btl
 
2
 
 
3
; This tests some cases where BT must not be generated.  See also bt.ll.
 
4
; Fixes 20040709-[12].c in gcc testsuite.
 
5
 
 
6
define void @test2(i32 %x, i32 %n) nounwind {
 
7
entry:
 
8
        %tmp1 = and i32 %x, 1
 
9
        %tmp2 = urem i32 %tmp1, 15
 
10
        %tmp3 = and i32 %tmp2, 1                ; <i32> [#uses=1]
 
11
        %tmp4 = icmp eq i32 %tmp3, %tmp2        ; <i1> [#uses=1]
 
12
        br i1 %tmp4, label %bb, label %UnifiedReturnBlock
 
13
 
 
14
bb:             ; preds = %entry
 
15
        call void @foo()
 
16
        ret void
 
17
 
 
18
UnifiedReturnBlock:             ; preds = %entry
 
19
        ret void
 
20
}
 
21
 
 
22
define void @test3(i32 %x, i32 %n) nounwind {
 
23
entry:
 
24
        %tmp1 = and i32 %x, 1
 
25
        %tmp2 = urem i32 %tmp1, 15
 
26
        %tmp3 = and i32 %tmp2, 1                ; <i32> [#uses=1]
 
27
        %tmp4 = icmp eq i32 %tmp2, %tmp3        ; <i1> [#uses=1]
 
28
        br i1 %tmp4, label %bb, label %UnifiedReturnBlock
 
29
 
 
30
bb:             ; preds = %entry
 
31
        call void @foo()
 
32
        ret void
 
33
 
 
34
UnifiedReturnBlock:             ; preds = %entry
 
35
        ret void
 
36
}
 
37
 
 
38
define void @test4(i32 %x, i32 %n) nounwind {
 
39
entry:
 
40
        %tmp1 = and i32 %x, 1
 
41
        %tmp2 = urem i32 %tmp1, 15
 
42
        %tmp3 = and i32 %tmp2, 1                ; <i32> [#uses=1]
 
43
        %tmp4 = icmp ne i32 %tmp2, %tmp3        ; <i1> [#uses=1]
 
44
        br i1 %tmp4, label %bb, label %UnifiedReturnBlock
 
45
 
 
46
bb:             ; preds = %entry
 
47
        call void @foo()
 
48
        ret void
 
49
 
 
50
UnifiedReturnBlock:             ; preds = %entry
 
51
        ret void
 
52
}
 
53
 
 
54
define void @test5(i32 %x, i32 %n) nounwind {
 
55
entry:
 
56
        %tmp1 = and i32 %x, 1
 
57
        %tmp2 = urem i32 %tmp1, 15
 
58
        %tmp3 = and i32 %tmp2, 1                ; <i32> [#uses=1]
 
59
        %tmp4 = icmp ne i32 %tmp2, %tmp3        ; <i1> [#uses=1]
 
60
        br i1 %tmp4, label %bb, label %UnifiedReturnBlock
 
61
 
 
62
bb:             ; preds = %entry
 
63
        call void @foo()
 
64
        ret void
 
65
 
 
66
UnifiedReturnBlock:             ; preds = %entry
 
67
        ret void
 
68
}
 
69
 
 
70
declare void @foo()