~ubuntu-branches/ubuntu/natty/clamav/natty-security

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/PowerPC/subc.ll

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-02 21:04:10 UTC
  • mfrom: (0.35.17 sid)
  • Revision ID: james.westby@ubuntu.com-20101202210410-ppgyckmylngsfa8o
Tags: 0.96.5+dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Drop initial signature definitions from clamav-base
  - Drop build-dep on electric-fence (in Universe)
  - Add apparmor profiles for clamd and freshclam along with maintainer
    script changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; All of these should be codegen'd without loading immediates
2
 
; RUN: llc < %s -march=ppc32 -o %t
3
 
; RUN: grep subfc %t | count 1
4
 
; RUN: grep subfe %t | count 1
5
 
; RUN: grep subfze %t | count 1
6
 
; RUN: grep subfme %t | count 1
7
 
; RUN: grep subfic %t | count 2
8
 
 
9
 
define i64 @sub_ll(i64 %a, i64 %b) {
10
 
entry:
11
 
        %tmp.2 = sub i64 %a, %b         ; <i64> [#uses=1]
12
 
        ret i64 %tmp.2
13
 
}
14
 
 
15
 
define i64 @sub_l_5(i64 %a) {
16
 
entry:
17
 
        %tmp.1 = sub i64 5, %a          ; <i64> [#uses=1]
18
 
        ret i64 %tmp.1
19
 
}
20
 
 
21
 
define i64 @sub_l_m5(i64 %a) {
22
 
entry:
23
 
        %tmp.1 = sub i64 -5, %a         ; <i64> [#uses=1]
24
 
        ret i64 %tmp.1
25
 
}