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