blob: ab888e694cfc299a1106087ca5d37b1fac7747a3 [file] [log] [blame]
Eli Friedman2cb1dfa2011-08-08 19:49:37 +00001; RUN: llc < %s -march=thumb -mcpu=cortex-m3 | FileCheck %s
2
3define 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
10define 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
17define 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
24define i32 @test4(i8 signext %z) nounwind {
25; CHECK: test4:
26; CHECK: uxtb
27 %r = zext i8 %z to i32
28 ret i32 %r
29}