add float -> double and double -> float conversion
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30835 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/ARM/fpconv.ll b/test/CodeGen/ARM/fpconv.ll
new file mode 100644
index 0000000..310a115
--- /dev/null
+++ b/test/CodeGen/ARM/fpconv.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -march=arm &&
+; RUN: llvm-as < %s | llc -march=arm | grep fcvtds &&
+; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd
+
+float %f(double %x) {
+entry:
+ %tmp1 = cast double %x to float
+ ret float %tmp1
+}
+
+double %g(float %x) {
+entry:
+ %tmp1 = cast float %x to double
+ ret double %tmp1
+}