[PATCH] X86 Builtins: rewrite SSE2/AVX2 shift builtin intrinsics using shift operators
Eli Friedman
eli.friedman at gmail.com
Wed Jul 17 11:10:40 PDT 2013
On Wed, Jul 17, 2013 at 10:44 AM, <Andrea_DiBiagio at sn.scee.net> wrote:
> Hi all,
>
> I'd like to contribute a patch that rewrites (most of the) X86
> SSE2/AVX2 packed shifts builtin intrinsics using shift operators.
No. They don't have the same semantics in the boundary cases. (From
LangRef for lshr: "If op2 is (statically or dynamically) equal to or
larger than the number of bits in op1, the result is undefined.")
-Eli
More information about the cfe-commits
mailing list