<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Robin,<div><br></div><div>It sounds like you want to support half (f16 in LLVM terms) as a storage only interchange format. AArch64 and X86 (among others) do the same thing. You shouldn’t need the “-soft-float” option or anything of that nature at all. That, as you’ve found, disables all hard float operations. There’s been some recent cleanup in how this is handled in LLVM that should help guide you in what the Mips backend needs to do. In particular, Tim Northover’s recent patch, r213374.</div><div><br></div><div>Regards,</div><div>  Jim</div><div><br><div><blockquote type="cite"><div>On Jul 24, 2014, at 6:32 PM, 刘亚龙 <<a href="mailto:liuyalong.email@gmail.com">liuyalong.email@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div><div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;">Hi all,</div>
<div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;"><span style="FONT-FAMILY:''">    </span><span style="LINE-HEIGHT:1.5;BACKGROUND-COLOR:window;FONT-FAMILY:'';FONT-SIZE:10.5pt">-soft-float can not be rightly use by llc. All float function operation will call soft float, but not hard.</span></div>

<div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;"><span style="FONT-FAMILY:''">    My mips device cannot support half float type, so I hack the llvm, and add soft half float and add -soft-float option.</span></div>

<div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;"><span style="FONT-FAMILY:''">    I add the function define for </span><span style="LINE-HEIGHT:1.5;BACKGROUND-COLOR:window;FONT-FAMILY:'';FONT-SIZE:10.5pt">__gnu_f2h_ieee() and __gnu_h2f_ieee (), and it can call the soft half float.</span></div>

<div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;"><span style="FONT-FAMILY:''">    However, all the others function about float also call the soft float, how I do make only </span><span style="LINE-HEIGHT:1.5;BACKGROUND-COLOR:window;FONT-SIZE:10.5pt">__gnu_f2h_ieee() use soft float, other use hard float???</span></div>

<div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;"><br></div>
<div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;"><span style="FONT-FAMILY:''">    Thank you all !!</span></div>

<div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;"><br style="LINE-HEIGHT:1.5;BACKGROUND-COLOR:window;FONT-SIZE:10.5pt">
<span style="LINE-HEIGHT:1.5;BACKGROUND-COLOR:window;FONT-FAMILY:'';FONT-SIZE:10.5pt">Cheers, </span></div>
<div style="text-transform: none; background-color: rgb(255, 255, 255); text-indent: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 14px; line-height: 21px; font-family: 'Segoe UI'; white-space: normal; letter-spacing: normal; word-spacing: 0px;"><span style="LINE-HEIGHT:1.5;BACKGROUND-COLOR:window;FONT-FAMILY:'';FONT-SIZE:10.5pt"><span style="LINE-HEIGHT:1.5;BACKGROUND-COLOR:window;FONT-FAMILY:'';FONT-SIZE:10.5pt">    </span>Robin</span></div>
_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></div></blockquote></div><br></div></body></html>