summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2014-04-30 15:29:57 +0000
committerChad Rosier <mcrosier@codeaurora.org>2014-04-30 15:29:57 +0000
commitfa2e88da1c8b8d98c2f0ffeba963f0eaa3a18e9c (patch)
tree6cbb871d31a0a9cf234ede20e248bbf2cfa2234c /test
parent3dbcd2e69eabb390c45a86d35b911d1d4d756e20 (diff)
downloadllvm-fa2e88da1c8b8d98c2f0ffeba963f0eaa3a18e9c.tar.gz
llvm-fa2e88da1c8b8d98c2f0ffeba963f0eaa3a18e9c.tar.bz2
llvm-fa2e88da1c8b8d98c2f0ffeba963f0eaa3a18e9c.tar.xz
[ARM64][fast-isel] Fast-isel doesn't know how to handle f128.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/ARM64/fast-isel-noconvert.ll34
1 files changed, 33 insertions, 1 deletions
diff --git a/test/CodeGen/ARM64/fast-isel-noconvert.ll b/test/CodeGen/ARM64/fast-isel-noconvert.ll
index 3517970016..483d1799f9 100644
--- a/test/CodeGen/ARM64/fast-isel-noconvert.ll
+++ b/test/CodeGen/ARM64/fast-isel-noconvert.ll
@@ -33,4 +33,36 @@ define <2 x i64> @test_fptosi(<2 x double> %in) {
%res = fptosi <2 x double> %in to <2 x i64>
ret <2 x i64> %res
-} \ No newline at end of file
+}
+
+define fp128 @uitofp_i32_fp128(i32 %a) {
+entry:
+; CHECK-LABEL: uitofp_i32_fp128
+; CHECK: bl ___floatunsitf
+ %conv = uitofp i32 %a to fp128
+ ret fp128 %conv
+}
+
+define fp128 @uitofp_i64_fp128(i64 %a) {
+entry:
+; CHECK-LABEL: uitofp_i64_fp128
+; CHECK: bl ___floatunditf
+ %conv = uitofp i64 %a to fp128
+ ret fp128 %conv
+}
+
+define i32 @uitofp_fp128_i32(fp128 %a) {
+entry:
+; CHECK-LABEL: uitofp_fp128_i32
+; CHECK: ___fixunstfsi
+ %conv = fptoui fp128 %a to i32
+ ret i32 %conv
+}
+
+define i64 @uitofp_fp128_i64(fp128 %a) {
+entry:
+; CHECK-LABEL: uitofp_fp128_i64
+; CHECK: ___fixunstfdi
+ %conv = fptoui fp128 %a to i64
+ ret i64 %conv
+}