<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 18, 2013 at 5:32 PM, Katya Romanova <span dir="ltr"><<a href="mailto:Katya_Romanova@playstation.sony.com" target="_blank" class="cremed">Katya_Romanova@playstation.sony.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":ayh" style="overflow:hidden">-  __m128d __zero = _mm_setzero_pd();<br>
-  return __builtin_shufflevector(__a, __zero, 0, 1, 2, 2);<br>
+  return (__m256d)__builtin_ia32_pd256_pd((__v2df)__a);</div></blockquote></div><br>I think this is the wrong approach.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Rather than switching these to use an x86-specific builtin, instead it would be better to provide some generic form to produce an undef input to a shufflevector. That is a generally useful and completely target independent concept.</div>
</div>