<div dir="ltr"><div class="" style="border-radius:5px;color:rgb(69,77,75);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;padding:0.5em;font-size:12px;background:rgb(255,255,204)">This post has NOT been accepted by the mailing list yet.</div><div id="message80696" class="" style="color:rgb(69,77,75);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px;background-color:rgb(250,249,245)">Hi all, <br><br>I am new to llvm so may <span class="" style="font-weight:bold;background:rgb(255,255,102)">not</span> be able to describe problem correctly. So, please ask for extra details. <br>I have architecture that has only i64 leagal type. <br>So in getCopyToParts function to handle case with  ValueVT=f32 and PartVT=i64, I added following code: <br><br>if(ValueVT == EVT(MVT::f32) && PartVT == MVT::i64){ <br> SDValue IntMVal = DAG.getNode(ISD::FP_EXTEND, DL, MVT::f64, Val); <br>Val = DAG.getNode(ISD::BITCAST, DL, PartVT, IntMVal); <br>} <br><br>this function when called by void RegsForValue::getCopyToRegs gives no problem. But when called by SoftenFloatRes_FP_EXTEND(SDNode *N) while softening result ends up with<span class="" style="font-weight:bold;background:rgb(255,255,102)">operands</span> <span class="" style="font-weight:bold;background:rgb(255,255,102)">not</span> <span class="" style="font-weight:bold;background:rgb(255,255,102)">processed</span> error for <br>CopyToReg node. <br><br>the sequence generated by my code in Optimzed Lowered Selection DAG: <br>          0x210f7d0: f64 = fp_extend 0x210e5b0 [ORD=4] <br><br>        0x210f3d0: i64 = bitcast 0x210f7d0 [ORD=4] <br><br>      0x210deb0: ch = CopyToReg 0x20d86e0, 0x21106e0, 0x210f3d0 [ORD=4] <br><br>And failed with : <br><span class="" style="font-weight:bold;background:rgb(255,255,102)">Operand</span> <span class="" style="font-weight:bold;background:rgb(255,255,102)">not</span> <span class="" style="font-weight:bold;background:rgb(255,255,102)">processed</span>? <br>0x210deb0: ch = CopyToReg 0x20d86e0, 0x21106e0, 0x2125d30 [ORD=4] [ID=1] <br><br>Clearly 3rd <span class="" style="font-weight:bold;background:rgb(255,255,102)">operand</span> of CopyToReg is some garbage here. Don't how it changed. <br><br>Any help is appreciated. <br><br>Thanks, <br>Akshay. </div></div>