<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Cameron,<div><br></div><div>I do not think this is quite right.</div><div><br></div><div>CVTSD2SS has three operands for the SSE variant.</div><div>Indeed, the converted operand is set to the low quadword (or doubleword) of the destination register ($dst), and the high quadword (doublewords) are left unchanged ($src1).</div><div><br></div><div>CVTSD2SS does what you want for the FP variant (one source one destination):</div><div><br></div><div><div>def CVTSD2SSrr  : SDI<0x5A, MRMSrcReg, (outs FR32:$dst), (ins FR64:$src),</div><div>                      "cvtsd2ss\t{$src, $dst|$dst, $src}",</div><div>                      [(set FR32:$dst, (fround FR64:$src))],</div><div>                      IIC_SSE_CVT_Scalar_RR>, Sched<[WriteCvtF2F]>;</div></div><div><br></div><div><br></div><div>Am I missing something?</div><div><br></div><div><div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">-Quentin</div>

</div>
<br><div><div>On Oct 15, 2013, at 12:28 PM, Cameron McInally <<a href="mailto:cameron.mcinally@nyu.edu">cameron.mcinally@nyu.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hey guys,<br><br>Here is a small patch to fix the Int_CVTSD2SS patterns. This SSE2<br>instruction expects two operands, not three.<br><br>Also, I do not have commit access.<br><br>Thanks,<br>Cameron<br><span><Int_CVTSD2SS.patch></span>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits<br></blockquote></div><br></div></body></html>