summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2013-10-05 00:31:41 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2013-10-05 00:31:41 +0000
commitb648122c5f4dfa651d46c10c39ddf4f2f8cf1170 (patch)
treeb334a6e82e1b796d4d4ae02e1951183e9e0ae93b /test
parenteee74fbbb64e5a4fd3af90611128ded5d759c82f (diff)
downloadllvm-b648122c5f4dfa651d46c10c39ddf4f2f8cf1170.tar.gz
llvm-b648122c5f4dfa651d46c10c39ddf4f2f8cf1170.tar.bz2
llvm-b648122c5f4dfa651d46c10c39ddf4f2f8cf1170.tar.xz
[Sparc] Respect hasHardQuad parameter correctly when lowering SINT_TO_FP with fp128 operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/SPARC/fp128.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/fp128.ll b/test/CodeGen/SPARC/fp128.ll
index e3d361335d..2406af753f 100644
--- a/test/CodeGen/SPARC/fp128.ll
+++ b/test/CodeGen/SPARC/fp128.ll
@@ -113,3 +113,16 @@ entry:
}
declare fp128 @llvm.fabs.f128(fp128) nounwind readonly
+
+; HARD-LABEL: int_to_f128
+; HARD: fitoq
+
+; SOFT-LABEL: int_to_f128
+; SOFT: _Q_itoq
+
+define void @int_to_f128(fp128* noalias sret %scalar.result, i32 %i) {
+entry:
+ %0 = sitofp i32 %i to fp128
+ store fp128 %0, fp128* %scalar.result, align 8
+ ret void
+}