Home | History | Annotate | Download | only in Thumb2
      1 ; RUN: llc < %s -march=thumb -mcpu=cortex-m3 | FileCheck %s
      2 
      3 define i32 @test1(i16 zeroext %z) nounwind {
      4 ; CHECK: 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: 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: 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: test4:
     26 ; CHECK: uxtb
     27   %r = zext i8 %z to i32
     28   ret i32 %r
     29 }
     30