]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Move pr116353.c from being x86 specific to being generic
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Wed, 28 Jan 2026 20:16:43 +0000 (12:16 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Thu, 29 Jan 2026 20:01:17 +0000 (12:01 -0800)
While working on ifcvt's noce_can_force_operand, I noticed that
the testcase pr116353.c was added as x86 specific testcase but
it has nothing in it that is x86 specific. It is currently
compiled at -O2 but there is no reason why it can't be compiled
at any other optimization level.
So this moves the testcase to be a torture testcase.

The original issue showed up on x86 with respect to ifcvt
where there was a vec_select which does not have an optab for it
but it might show up on other targets too.

Tested on x86_64-linux-gnu.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr116353.c: Move to...
* gcc.dg/torture/pr116353.c: ...here.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/gcc.dg/torture/pr116353.c [moved from gcc/testsuite/gcc.target/i386/pr116353.c with 98% similarity]

similarity index 98%
rename from gcc/testsuite/gcc.target/i386/pr116353.c
rename to gcc/testsuite/gcc.dg/torture/pr116353.c
index 8e254653d5d7ff0bfda3d3e652ff21eab12e3455..65ea83518cd3552e5c1366e7d1fbd8b0a4c96d4b 100644 (file)
@@ -1,6 +1,5 @@
 /* PR tree-optimization/116353 */
 /* { dg-do compile } */
-/* { dg-options "-O2" } */
 
 enum desmode { C };
 struct {