~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/promote-i16.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -march=x86 | FileCheck %s
 
2
 
 
3
define signext i16 @foo(i16 signext %x) nounwind {
 
4
entry:
 
5
; CHECK: foo:
 
6
; CHECK-NOT: movzwl
 
7
; CHECK: movswl 4(%esp), %eax
 
8
; CHECK: xorl $21998, %eax
 
9
  %0 = xor i16 %x, 21998
 
10
  ret i16 %0
 
11
}
 
12
 
 
13
define signext i16 @bar(i16 signext %x) nounwind {
 
14
entry:
 
15
; CHECK: bar:
 
16
; CHECK-NOT: movzwl
 
17
; CHECK: movswl 4(%esp), %eax
 
18
; CHECK: xorl $-10770, %eax
 
19
  %0 = xor i16 %x, 54766
 
20
  ret i16 %0
 
21
}