summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC
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
commit30781deb1c11a41fc2c1056c262f840434e7383e (patch)
tree5d33f4331faaaa298d08cb0e99948dd0b975fb77 /llvm/test/CodeGen/SPARC
parent9e429ae779a35d543ae303ddd8a94251d9969f0a (diff)
downloadbcm5719-llvm-30781deb1c11a41fc2c1056c262f840434e7383e.tar.gz
bcm5719-llvm-30781deb1c11a41fc2c1056c262f840434e7383e.zip
[Sparc] Respect hasHardQuad parameter correctly when lowering SINT_TO_FP with fp128 operand.
llvm-svn: 192015
Diffstat (limited to 'llvm/test/CodeGen/SPARC')
-rw-r--r--llvm/test/CodeGen/SPARC/fp128.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/SPARC/fp128.ll b/llvm/test/CodeGen/SPARC/fp128.ll
index e3d361335d8..2406af753fa 100644
--- a/llvm/test/CodeGen/SPARC/fp128.ll
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud