On Mon, Oct 27, 2014 at 7:07 PM, Sean Silva <[email protected]> wrote:

> Curiously, it looks like GCC is depending on definedness for 0 in its own
> headers:
> https://github.com/gcc-mirror/gcc/blob/master/gcc/config/i386/lzcntintrin.h
>
> *shrug*
>

I don't think that's really a justification for much of anything though.

We should still add UBSan checks for this, and make our code correct
according to the spec for these builtins.

Currently, I continue to prefer not using a builtin and instead defining
the __lzcnt stuff with a ternary operator.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to