Add a triple to switch.ll test.
[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-LABEL: 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-LABEL: 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 }