summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fastisel-softfloat.ll
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2017-07-12 15:26:06 +0000
committerDavide Italiano <davide@freebsd.org>2017-07-12 15:26:06 +0000
commita63981aaa9a99b34f436644bc023f77bd33b9a1d (patch)
treefd0cba0c89602ebcddfedcc79a1ea073cd61d3e5 /llvm/test/CodeGen/X86/fastisel-softfloat.ll
parent57226ef33cd31cef0bcfd8cb492b8d1a2253ac3a (diff)
downloadbcm5719-llvm-a63981aaa9a99b34f436644bc023f77bd33b9a1d.tar.gz
bcm5719-llvm-a63981aaa9a99b34f436644bc023f77bd33b9a1d.zip
[X86/FastIsel] Fall-back to SelectionDAG when lowering soft-floats.
FastIsel can't handle them, so we would end up crashing during register class selection. Fixes PR26522. Differential Revision: https://reviews.llvm.org/D35272 llvm-svn: 307797
Diffstat (limited to 'llvm/test/CodeGen/X86/fastisel-softfloat.ll')
-rw-r--r--llvm/test/CodeGen/X86/fastisel-softfloat.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/fastisel-softfloat.ll b/llvm/test/CodeGen/X86/fastisel-softfloat.ll
new file mode 100644
index 00000000000..e4330db81e1
--- /dev/null
+++ b/llvm/test/CodeGen/X86/fastisel-softfloat.ll
@@ -0,0 +1,15 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc %s -o - | FileCheck %s
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+define float @pr26522(float %pat) #0 {
+; CHECK-LABEL: pr26522:
+; CHECK: # BB#0:
+; CHECK-NEXT: movl %edi, %eax
+; CHECK-NEXT: retq
+ ret float %pat
+}
+
+attributes #0 = { noinline optnone "target-features"="+soft-float" }
OpenPOWER on IntegriCloud