aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2011-11-20 23:26:14 +0100
committerUros Bizjak <uros@gcc.gnu.org>2011-11-20 23:26:14 +0100
commitfd9ee5972eb7ceb1e8da07b854431f1c7375ef53 (patch)
tree833f8577edde1311397314a2a358676fea86527b /gcc/config
parent215c6c972dd84d3124a4a6f522dde47bc54fed3a (diff)
downloadgcc-fd9ee5972eb7ceb1e8da07b854431f1c7375ef53.zip
gcc-fd9ee5972eb7ceb1e8da07b854431f1c7375ef53.tar.gz
gcc-fd9ee5972eb7ceb1e8da07b854431f1c7375ef53.tar.bz2
re PR target/51235 (ICE: in extract_insn, at recog.c:2137 (unrecognizable insn) with -O -ftree-vectorize -mavx2 -mxop)
PR target/51235 * config/i386/i386.c (ix86_expand_vcond): Generate TARGET_XOP patterns for supported mode only. PR target/51236 * config/i386/i386.c (ix86_expand_builtin) <IX86_BUILTIN_GATHERALTSIV4DI>: Use CODE_FOR_avx2_gathersiv4di. testsuite/ChangeLog: PR target/51235 * gcc.target/i386/pr51235.c: New test. PR target/51236 * gcc.target/i386/pr51236.c: New test. From-SVN: r181537
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/i386.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index d92f8e2..3436820 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -19619,8 +19619,12 @@ ix86_expand_int_vcond (rtx operands[])
cop0 = operands[4];
cop1 = operands[5];
- /* XOP supports all of the comparisons on all vector int types. */
- if (!TARGET_XOP)
+ /* XOP supports all of the comparisons on all 128-bit vector int types. */
+ if (TARGET_XOP
+ && (mode == V16QImode || mode == V8HImode
+ || mode == V4SImode || mode == V2DImode))
+ ;
+ else
{
/* Canonicalize the comparison to EQ, GT, GTU. */
switch (code)
@@ -30013,7 +30017,7 @@ rdrand_step:
icode = CODE_FOR_avx2_gatherdiv8sf;
goto gather_gen;
case IX86_BUILTIN_GATHERALTSIV4DI:
- icode = CODE_FOR_avx2_gathersiv4df;
+ icode = CODE_FOR_avx2_gathersiv4di;
goto gather_gen;
case IX86_BUILTIN_GATHERALTDIV8SI:
icode = CODE_FOR_avx2_gatherdiv8si;