[ARM] Enable shrink-wrapping by default.
[oota-llvm.git] / test / CodeGen / Thumb2 / thumb2-sxt-uxt.ll
1 ; RUN: llc -mtriple=thumb-eabi -mcpu=cortex-m3 %s -o - | FileCheck %s
2
3 define i32 @test1(i16 zeroext %z) nounwind {
4 ; CHECK-LABEL: test1:
5 ; CHECK: sxth
6   %r = sext i16 %z to i32
7   ret i32 %r
8 }
9
10 define i32 @test2(i8 zeroext %z) nounwind {
11 ; CHECK-LABEL: test2:
12 ; CHECK: sxtb
13   %r = sext i8 %z to i32
14   ret i32 %r
15 }
16
17 define i32 @test3(i16 signext %z) nounwind {
18 ; CHECK-LABEL: test3:
19 ; CHECK: uxth
20   %r = zext i16 %z to i32
21   ret i32 %r
22 }
23
24 define i32 @test4(i8 signext %z) nounwind {
25 ; CHECK-LABEL: test4:
26 ; CHECK: uxtb
27   %r = zext i8 %z to i32
28   ret i32 %r
29 }