2010-04-28 08:30:49 +00:00
|
|
|
; RUN: llc < %s -march=x86 | FileCheck %s
|
|
|
|
|
|
|
|
define signext i16 @foo(i16 signext %x) nounwind {
|
|
|
|
entry:
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: foo:
|
2011-06-16 01:15:49 +00:00
|
|
|
; CHECK-NOT: movzwl
|
2011-06-16 01:35:45 +00:00
|
|
|
; CHECK: movswl 4(%esp), %eax
|
2011-06-16 01:15:49 +00:00
|
|
|
; CHECK: xorl $21998, %eax
|
2010-04-28 08:30:49 +00:00
|
|
|
%0 = xor i16 %x, 21998
|
|
|
|
ret i16 %0
|
|
|
|
}
|
2011-06-16 01:15:49 +00:00
|
|
|
|
|
|
|
define signext i16 @bar(i16 signext %x) nounwind {
|
|
|
|
entry:
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: bar:
|
2011-06-16 01:15:49 +00:00
|
|
|
; CHECK-NOT: movzwl
|
2011-06-16 01:35:45 +00:00
|
|
|
; CHECK: movswl 4(%esp), %eax
|
2011-06-16 01:15:49 +00:00
|
|
|
; CHECK: xorl $-10770, %eax
|
|
|
|
%0 = xor i16 %x, 54766
|
|
|
|
ret i16 %0
|
|
|
|
}
|