<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;"><br><div><div>On May 2, 2014, at 6:00 PM, Filipe Cabecinhas <<a href="mailto:filcab+llvm.phabricator@gmail.com">filcab+llvm.phabricator@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">I'm not sure it's possible.</div></blockquote><div><br></div><div>It is possible to represent blends using vector selects in the IR. Are you missing a clang builtin? </div><br><blockquote type="cite"><div dir="ltr"><div>I'm generating them from the headers for the intrinsics, I don't know if it's possible to directly generate selects. Let me know if I'm missing something.</div>
<div><br></div><div>Here's the patch.</div><div><br></div><div><a href="http://reviews.llvm.org/D3601#C75942NL780">http://reviews.llvm.org/D3601#C75942NL780</a></div><div><br></div><div>Filipe</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, May 2, 2014 at 4:54 PM, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</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"><div class=""><br><div><div>On May 2, 2014, at 4:50 PM, Filipe Cabecinhas <<a href="mailto:filcab+llvm.phabricator@gmail.com" target="_blank">filcab+llvm.phabricator@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">I'm proposing a patch for clang's simd intrinsics to generate</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">shufflevectors from the blend intrinsics.</span></blockquote>
</div><div><br></div></div><div>Why are you not generating vector selects?  </div></div></blockquote></div><br></div></div>
</blockquote></div><br></body></html>