~ubuntu-branches/ubuntu/maverick/clamav/maverick-proposed

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/extend.ll

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-12-17 12:30:20 UTC
  • mfrom: (0.35.17 sid)
  • Revision ID: james.westby@ubuntu.com-20101217123020-dbtsp3upnaxsgg89
Tags: 0.96.5+dfsg-1ubuntu1.10.10.1
* Microversion update for Maverick (LP: #691414)
  - Improved database login times
  - Expanded use of new bytecode signatures
  - Other bugfixes/improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | grep movzx | count 1
2
 
; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | grep movsx | count 1
3
 
 
4
 
@G1 = internal global i8 0              ; <i8*> [#uses=1]
5
 
@G2 = internal global i8 0              ; <i8*> [#uses=1]
6
 
 
7
 
define i16 @test1() {
8
 
        %tmp.0 = load i8* @G1           ; <i8> [#uses=1]
9
 
        %tmp.3 = zext i8 %tmp.0 to i16          ; <i16> [#uses=1]
10
 
        ret i16 %tmp.3
11
 
}
12
 
 
13
 
define i16 @test2() {
14
 
        %tmp.0 = load i8* @G2           ; <i8> [#uses=1]
15
 
        %tmp.3 = sext i8 %tmp.0 to i16          ; <i16> [#uses=1]
16
 
        ret i16 %tmp.3
17
 
}
18