1; RUN: llc -mtriple=thumb-eabi %s -o /dev/null
2
3define float @f1(double %x) {
4entry:
5	%tmp1 = fptrunc double %x to float		; <float> [#uses=1]
6	ret float %tmp1
7}
8
9define double @f2(float %x) {
10entry:
11	%tmp1 = fpext float %x to double		; <double> [#uses=1]
12	ret double %tmp1
13}
14
15define i32 @f3(float %x) {
16entry:
17	%tmp = fptosi float %x to i32		; <i32> [#uses=1]
18	ret i32 %tmp
19}
20
21define i32 @f4(float %x) {
22entry:
23	%tmp = fptoui float %x to i32		; <i32> [#uses=1]
24	ret i32 %tmp
25}
26
27define i32 @f5(double %x) {
28entry:
29	%tmp = fptosi double %x to i32		; <i32> [#uses=1]
30	ret i32 %tmp
31}
32
33define i32 @f6(double %x) {
34entry:
35	%tmp = fptoui double %x to i32		; <i32> [#uses=1]
36	ret i32 %tmp
37}
38
39define float @f7(i32 %a) {
40entry:
41	%tmp = sitofp i32 %a to float		; <float> [#uses=1]
42	ret float %tmp
43}
44
45define double @f8(i32 %a) {
46entry:
47	%tmp = sitofp i32 %a to double		; <double> [#uses=1]
48	ret double %tmp
49}
50
51define float @f9(i32 %a) {
52entry:
53	%tmp = uitofp i32 %a to float		; <float> [#uses=1]
54	ret float %tmp
55}
56
57define double @f10(i32 %a) {
58entry:
59	%tmp = uitofp i32 %a to double		; <double> [#uses=1]
60	ret double %tmp
61}
62