[cfe-dev] Signed overflow and vectors?

Chris Lattner clattner at apple.com
Fri May 6 11:45:28 PDT 2011


On May 5, 2011, at 12:00 PM, Eli Friedman wrote:

> Looking at http://llvm.org/bugs/show_bug.cgi?id=9850 , I realized that
> we are setting nsw flags on vector instructions.  To fix that bug, at
> the very least, we need to fix *mmintrin.h to not use instructions
> with undefined overflow behavior.  But generally, do we want to be
> setting nsw on vector addition/subtraction/etc. generated by clang?

I think "no", we shouldn't be setting these on vector operations.

-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110506/7abb20de/attachment.html>


More information about the cfe-dev mailing list