<div dir="ltr">For reference, the extractelement with bad index should already have been simplified.<br><a href="https://reviews.llvm.org/rL319910">https://reviews.llvm.org/rL319910</a> recently made that stronger, but raised some concern for AMDGPU backend tests.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 12, 2017 at 8:01 AM, Igor Laevsky via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi Michael,
<div><br>
</div>
<div>In the source code I see the following operations:</div>
<div>  %122 = extractelement <4 x i32> %121, i32 6</div>
<div>and:</div>
<div>  %124 = insertelement <4 x i32> %121, i32 %123, i32 6</div>
<div><br>
</div>
<div>This operations has undefined result (see <a href="https://llvm.org/docs/LangRef.html#extractelement-instruction" target="_blank">https://llvm.org/docs/<wbr>LangRef.html#extractelement-<wbr>instruction</a>). Looks like a bug in the frontend. Do you know what’s
 the best approach here?</div>
<div><br>
</div>
<div><br>
<div>
<blockquote type="cite"><div><div class="h5">
<div>On 12 Dec 2017, at 13:45, Michel Dänzer <<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a>> wrote:</div>
<br class="m_-7138341727969775061Apple-interchange-newline">
</div></div><div>
<div><div><div class="h5">On 2017-12-12 11:08 AM, Igor Laevsky wrote:<br>
<blockquote type="cite">I reverted problematic changes in the <a href="https://reviews.llvm.org/rL320466" target="_blank">
https://reviews.llvm.org/<wbr>rL320466</a><br>
</blockquote>
<br>
Thanks.<br>
<br>
<br>
<blockquote type="cite">Is it possible to obtain an llvm-ir of the failing test case before the<br>
optimizations? I can see the miscompile, but I can’t reproduce it using<br>
optimised good case.<br>
</blockquote>
<br>
The attached should be the LLVM IR before optimizations.<br>
<br>
<br>
-- <br>
Earthling Michel Dänzer               |               <a href="http://www.amd.com" target="_blank">http://www.amd.<wbr>com</a><br>
Libre software enthusiast             |             Mesa and X developer<br>
</div></div><span id="m_-7138341727969775061cid:6937F4B9-DE00-4762-A45D-48FA8F0019E9@azulsystems.com"><fcc-read-to-pbo-after-clear.<wbr>ll></span></div>
</div>
</blockquote>
</div>
<br>
</div>
</div>

<br>______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>