On Mon, Aug 22, 2011 at 8:51 PM, Kirill Yukhin wrote: > Attached fix for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50155 > > ChangeLog entry: > 2011-08-22  Kirill Yukhin   > >        PR target/50155 >        * config/i386/sse.md (VI1248_AVX2): New. >        (3): Update. >        (*3): Likewise. >        (_andnot3): Likewise. >        (avx2_pbroadcast): Likewise. > > testsuite/ChangeLog entry: > 2011-08-22  Kirill Yukhin   > >        PR target/50155 >        * gcc.target/i386/pr50155.c: New test. > > New test fails without fix, passed with it applied. > > Ok for trunk if bootstrap will success? No. - you are disabling andnotps for 256bit integer modes on !TARGET_AVX2 targets. - avx2_pbroadcast change is a no-op. I found two additional problems with the patch: - order of evaluation of cond RTX in mode attribute calculation is wrong for *andnot3 and *3 instructions. - shortmode mode attribute is not used (minor) Attached (lightly tested) patch fixes all problems and adds additional asserts into mentioned logic instructions. Uros.