summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM64
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
commit864e35db0af705b515f2e300debf96f0b2d55406 (patch)
treec5257e9b5f0f981688317c44bde230404dea4a97 /llvm/test/CodeGen/ARM64
parent194924e64b0ff9d3951f1827d70eb63cb2bfd22e (diff)
downloadbcm5719-llvm-864e35db0af705b515f2e300debf96f0b2d55406.tar.gz
bcm5719-llvm-864e35db0af705b515f2e300debf96f0b2d55406.zip
[ARM64][fast-isel] Fast-isel doesn't know how to handle f128.
llvm-svn: 207659
Diffstat (limited to 'llvm/test/CodeGen/ARM64')
-rw-r--r--llvm/test/CodeGen/ARM64/fast-isel-noconvert.ll34
1 files changed, 33 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM64/fast-isel-noconvert.ll b/llvm/test/CodeGen/ARM64/fast-isel-noconvert.ll
index 35179700161..483d1799f9c 100644
--- a/llvm/test/CodeGen/ARM64/fast-isel-noconvert.ll
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud