From: Roger Sayle Date: Wed, 8 Jun 2022 09:06:23 +0000 (+0100) Subject: [Committed] Add -mno-avx2 to recent gcc.target/i386/xop-vpcmov3.c X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8c258094195896a32bd7dc0601bc767c9258a71;p=platform%2Fupstream%2Fgcc.git [Committed] Add -mno-avx2 to recent gcc.target/i386/xop-vpcmov3.c Adding -march=cascadelake to the command line options of the recently added xop-vpcmov3.c test case causes problems as GCC then prefers to use AVX512's vpternlogd instruction, instead of the XOP vpcmov that the test is checking for. This is easily solved by adding an explicit -mno-avx512vl to the command line options. Committed to mainline as obvious (in hindsight). 2022-06-08 Roger Sayle gcc/testsuite/ChangeLog * gcc.target/i386/xop-pcmov3.c: Add -mno-avx512vl to dg-options. --- diff --git a/gcc/testsuite/gcc.target/i386/xop-pcmov3.c b/gcc/testsuite/gcc.target/i386/xop-pcmov3.c index 6c40f33..ea03d55 100644 --- a/gcc/testsuite/gcc.target/i386/xop-pcmov3.c +++ b/gcc/testsuite/gcc.target/i386/xop-pcmov3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -mxop" } */ +/* { dg-options "-O2 -mxop -mno-avx512vl" } */ typedef int v4si __attribute__ ((vector_size (16))); v4si foo(v4si c, v4si t, v4si f)