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

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/bswap.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
; bswap should be constant folded when it is passed a constant argument
 
2
 
 
3
; RUN: llc < %s -march=x86 | \
 
4
; RUN:   grep bswapl | count 3
 
5
; RUN: llc < %s -march=x86 | grep rolw | count 1
 
6
 
 
7
declare i16 @llvm.bswap.i16(i16)
 
8
 
 
9
declare i32 @llvm.bswap.i32(i32)
 
10
 
 
11
declare i64 @llvm.bswap.i64(i64)
 
12
 
 
13
define i16 @W(i16 %A) {
 
14
        %Z = call i16 @llvm.bswap.i16( i16 %A )         ; <i16> [#uses=1]
 
15
        ret i16 %Z
 
16
}
 
17
 
 
18
define i32 @X(i32 %A) {
 
19
        %Z = call i32 @llvm.bswap.i32( i32 %A )         ; <i32> [#uses=1]
 
20
        ret i32 %Z
 
21
}
 
22
 
 
23
define i64 @Y(i64 %A) {
 
24
        %Z = call i64 @llvm.bswap.i64( i64 %A )         ; <i64> [#uses=1]
 
25
        ret i64 %Z
 
26
}
 
27