On 12/2/24 7:02 AM, Jakub Jelinek wrote:
On Sun, Dec 01, 2024 at 08:56:39AM -0700, Jeff Law wrote:
diff --git a/gcc/testsuite/gcc.dg/crc-side-instr-1.c
b/gcc/testsuite/gcc.dg/crc-side-instr-1.c
new file mode 100644
index 00000000000..69738d5c866
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/crc-side-instr-1.c
@@ -0,0 +1,27 @@
+/* { dg-do compile } */
+/* { dg-options "-fdump-tree-crc-details" } */
+/* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Os" "-flto" } } */
...
and similarly for all other crc-side-instr*.c
These tests are clearly written for gcc.dg/torture/, but placed in gcc.dg/,
where we don't cycle through different options and none of explicit -O0,
-O1, -Os or -flto will be among the options, only -fdump-tree-crc-details
will be and so it will be compiled without optimizations and
all the scan-tree-dump directives UNRESOLVED because crc dump doesn't exist
at -O0.
We can certainly move them into gcc.dg/torture. Let me do a little
testing around that to make sure we don't go notably backwards.
jeff