blob: 863c2e957b64721bd4fdac301a558f579592d488 [file] [log] [blame]
Rafael Espindola2dc0f2b2006-10-09 17:50:29 +00001; RUN: llvm-as < %s | llc -march=arm &&
2; RUN: llvm-as < %s | llc -march=arm | grep fcvtds &&
3; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd
4
Rafael Espindolab47e1d02006-10-10 18:55:14 +00005float %f1(double %x) {
Rafael Espindola2dc0f2b2006-10-09 17:50:29 +00006entry:
7 %tmp1 = cast double %x to float
8 ret float %tmp1
9}
10
Rafael Espindolab47e1d02006-10-10 18:55:14 +000011double %f2(float %x) {
Rafael Espindola2dc0f2b2006-10-09 17:50:29 +000012entry:
13 %tmp1 = cast float %x to double
14 ret double %tmp1
15}
Rafael Espindolab47e1d02006-10-10 18:55:14 +000016
17int %f3(float %x) {
18entry:
19 %tmp = cast float %x to int
20 ret int %tmp
21}
22
23int %f4(double %x) {
24entry:
25 %tmp = cast double %x to int
26 ret int %tmp
27}
Rafael Espindola493a7fc2006-10-10 20:38:57 +000028
29uint %f5(float %x) {
30entry:
31 %tmp = cast float %x to uint
32 ret uint %tmp
33}
34
35uint %f6(double %x) {
36entry:
37 %tmp = cast double %x to uint
38 ret uint %tmp
39}