Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

SoftenFloatOp_FP_TO_SINT assertion #5238

Open Quuxplusone opened 15 years ago

Quuxplusone commented 15 years ago
Bugzilla Link PR4725
Status NEW
Importance P normal
Reported by Jakob Stoklund Olesen (stoklund@2pi.dk)
Reported on 2009-08-15 13:42:21 -0700
Last modified on 2009-08-15 13:42:21 -0700
Version trunk
Hardware All All
CC llvm-bugs@lists.llvm.org
Fixed by commit(s)
Attachments 2009-08-09-FPTOSINT_F64_I16.ll (404 bytes, application/octet-stream)
Blocks
Blocked by
See also
Created attachment 3315
Test case for Blackfin back-end

The attached test case fails with

Assertion failed: (LC != RTLIB::UNKNOWN_LIBCALL && "Unsupported FP_TO_SINT!"),
function SoftenFloatOp_FP_TO_SINT, file
/Users/stoklund/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp, line 693.

I believe this happens when using soft-float on any target with legal i8 or i16
types:

llc -march=x86 -soft-float
llc -march=x86-64 -soft-float
llc -march=pic16
llc -march=bfin
llc -march=msp430
Quuxplusone commented 15 years ago

Attached 2009-08-09-FPTOSINT_F64_I16.ll (404 bytes, application/octet-stream): Test case for Blackfin back-end