1; RUN: llc < %s -mtriple=i686-unknown-linux-gnu | FileCheck %s
2
3define signext i16 @foo(i16 signext %x) nounwind {
4entry:
5; CHECK-LABEL: foo:
6; CHECK: movzwl 4(%esp), %eax
7; CHECK-NEXT: xorl $21998, %eax
8; CHECK-NEXT: # kill
9; CHECK-NEXT: retl
10  %0 = xor i16 %x, 21998
11  ret i16 %0
12}
13
14define signext i16 @bar(i16 signext %x) nounwind {
15entry:
16; CHECK-LABEL: bar:
17; CHECK: movzwl 4(%esp), %eax
18; CHECK-NEXT: xorl $54766, %eax
19; CHECK-NEXT: # kill
20; CHECK-NEXT: retl
21  %0 = xor i16 %x, 54766
22  ret i16 %0
23}
24