aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/R600/fp64_to_sint.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/R600/fp64_to_sint.ll')
-rw-r--r--test/CodeGen/R600/fp64_to_sint.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/R600/fp64_to_sint.ll b/test/CodeGen/R600/fp64_to_sint.ll
new file mode 100644
index 0000000..42f9f34
--- /dev/null
+++ b/test/CodeGen/R600/fp64_to_sint.ll
@@ -0,0 +1,9 @@
+; RUN: llc < %s -march=r600 -mcpu=SI | FileCheck %s --check-prefix=CHECK
+
+; CHECK: @fp64_to_sint
+; CHECK: V_CVT_I32_F64_e32
+define void @fp64_to_sint(i32 addrspace(1)* %out, double %in) {
+ %result = fptosi double %in to i32
+ store i32 %result, i32 addrspace(1)* %out
+ ret void
+}