~ubuntu-branches/ubuntu/maverick/clamav/maverick-backports

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/Integer/BitArith.ll

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran, Stephen Gran, Michael Tautschnig
  • Date: 2010-04-26 21:41:18 UTC
  • mfrom: (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100426214118-i6lo606wnh7ywfj6
Tags: 0.96+dfsg-4
[ Stephen Gran ]
* Fixed typo in clamav-milter's postinst

[ Michael Tautschnig ]
* Fixed typo in clamav-freshclam's postinst (closes: #579271)
* Debconf translation updates
  - Portuguese (closes: #579068)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
 
2
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 
3
; RUN: diff %t1.ll %t2.ll
 
4
 
 
5
 
 
6
declare void @"foo"(i31 %i, i63 %j, i10 %k)
 
7
 
 
8
 
 
9
; foo test basic arith operations
 
10
define void @"foo"(i31 %i, i63 %j, i10 %k)
 
11
begin
 
12
        %t1 = trunc i63 %j to i31 
 
13
        %t2 = add i31 %t1, %i
 
14
        %t20 = add i31 3, %t1
 
15
        %t3 = zext i31 %i to i63
 
16
        %t4 = sub i63 %t3, %j
 
17
        %t40 = sub i63 %j, -100 
 
18
        %t5 = mul i10 %k, 7
 
19
        %t6 = sdiv i63 %j, -2
 
20
        %t7 = udiv i63 %j, %t3
 
21
        %t8 = urem i10 %k, 10
 
22
        %t9 = srem i10 %k, -10
 
23
        ret void
 
24
end
 
25