[PATCH] [MIPS] OperationAction for FP_TO_FP16, FP16_TO_FP
Pirama Arumuga Nainar
pirama at google.com
Thu Apr 2 10:45:01 PDT 2015
Hi srhines,
Set operation action for FP16 conversion opcodes, so the Op legalizer
can choose the gnu_* libcalls for Mips.
http://reviews.llvm.org/D8804
Files:
lib/Target/Mips/MipsISelLowering.cpp
Index: lib/Target/Mips/MipsISelLowering.cpp
===================================================================
--- lib/Target/Mips/MipsISelLowering.cpp
+++ lib/Target/Mips/MipsISelLowering.cpp
@@ -339,6 +339,10 @@
setOperationAction(ISD::FREM, MVT::f32, Expand);
setOperationAction(ISD::FREM, MVT::f64, Expand);
+ // Lower f16 conversion operations into library calls
+ // setOperationAction(ISD::FP16_TO_FP, MVT::f32, Expand);
+ // setOperationAction(ISD::FP_TO_FP16, MVT::f32, Expand);
+
setOperationAction(ISD::EH_RETURN, MVT::Other, Custom);
setOperationAction(ISD::VASTART, MVT::Other, Custom);
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8804.23167.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150402/2afe955d/attachment.bin>
More information about the llvm-commits
mailing list