projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
As Dan pointed out, movzbl, movsbl, and friends are nicer than their alias
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
promote-i16.ll
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: movzwl 4(%esp), %eax
7
; CHECK: xorl $21998, %eax
8
; CHECK: movswl %ax, %eax
9
%0 = xor i16 %x, 21998
10
ret i16 %0
11
}