aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fpconv.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/fpconv.ll')
-rw-r--r--test/CodeGen/ARM/fpconv.ll46
1 files changed, 39 insertions, 7 deletions
diff --git a/test/CodeGen/ARM/fpconv.ll b/test/CodeGen/ARM/fpconv.ll
index 863c2e957b..a86feb6c05 100644
--- a/test/CodeGen/ARM/fpconv.ll
+++ b/test/CodeGen/ARM/fpconv.ll
@@ -1,6 +1,14 @@
; RUN: llvm-as < %s | llc -march=arm &&
+; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd &&
; RUN: llvm-as < %s | llc -march=arm | grep fcvtds &&
-; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd
+; RUN: llvm-as < %s | llc -march=arm | grep ftosis &&
+; RUN: llvm-as < %s | llc -march=arm | grep ftouis &&
+; RUN: llvm-as < %s | llc -march=arm | grep ftosid &&
+; RUN: llvm-as < %s | llc -march=arm | grep ftouid &&
+; RUN: llvm-as < %s | llc -march=arm | grep fsitos &&
+; RUN: llvm-as < %s | llc -march=arm | grep fsitod &&
+; RUN: llvm-as < %s | llc -march=arm | grep fuitos &&
+; RUN: llvm-as < %s | llc -march=arm | grep fuitod
float %f1(double %x) {
entry:
@@ -20,16 +28,16 @@ entry:
ret int %tmp
}
-int %f4(double %x) {
+uint %f4(float %x) {
entry:
- %tmp = cast double %x to int
- ret int %tmp
+ %tmp = cast float %x to uint
+ ret uint %tmp
}
-uint %f5(float %x) {
+int %f5(double %x) {
entry:
- %tmp = cast float %x to uint
- ret uint %tmp
+ %tmp = cast double %x to int
+ ret int %tmp
}
uint %f6(double %x) {
@@ -37,3 +45,27 @@ entry:
%tmp = cast double %x to uint
ret uint %tmp
}
+
+float %f7(int %a) {
+entry:
+ %tmp = cast int %a to float
+ ret float %tmp
+}
+
+double %f8(int %a) {
+entry:
+ %tmp = cast int %a to double
+ ret double %tmp
+}
+
+float %f9(uint %a) {
+entry:
+ %tmp = cast uint %a to float
+ ret float %tmp
+}
+
+double %f10(uint %a) {
+entry:
+ %tmp = cast uint %a to double
+ ret double %tmp
+}