Hi!

On 2024-12-03T12:32:35-0700, Jeff Law <jeffreya...@gmail.com> wrote:
> Jakub noted that these tests were using dg-skip-if directives that 
> implied the tests were expected to run under multiple optimization 
> options, which means they probably should be in gcc.dg/torture rather 
> than in the gcc.dg directory.
>
> This moves the relevant tests from gcc.dg to gcc.dg/torture.

Right.

> diff --git a/gcc/testsuite/gcc.dg/crc-linux-1.c 
> b/gcc/testsuite/gcc.dg/torture/crc-linux-1.c
> similarity index 100%
> rename from gcc/testsuite/gcc.dg/crc-linux-1.c
> rename to gcc/testsuite/gcc.dg/torture/crc-linux-1.c
> diff --git a/gcc/testsuite/gcc.dg/crc-linux-2.c 
> b/gcc/testsuite/gcc.dg/torture/crc-linux-2.c
> similarity index 100%
> rename from gcc/testsuite/gcc.dg/crc-linux-2.c
> rename to gcc/testsuite/gcc.dg/torture/crc-linux-2.c
> diff --git a/gcc/testsuite/gcc.dg/crc-linux-4.c 
> b/gcc/testsuite/gcc.dg/torture/crc-linux-4.c
> similarity index 100%
> rename from gcc/testsuite/gcc.dg/crc-linux-4.c
> rename to gcc/testsuite/gcc.dg/torture/crc-linux-4.c
> diff --git a/gcc/testsuite/gcc.dg/crc-linux-5.c 
> b/gcc/testsuite/gcc.dg/torture/crc-linux-5.c
> similarity index 100%
> rename from gcc/testsuite/gcc.dg/crc-linux-5.c
> rename to gcc/testsuite/gcc.dg/torture/crc-linux-5.c

The same also applies to 'gcc.dg/crc-linux-3.c': otherwise, it's compiled
just at '-O0', where the CRC optimization pass isn't active.  I've thus
pushed to trunk branch commit 310c8a6728cab1aa1c6816b5469ae4d603e2dfdd
"'git mv gcc/testsuite/gcc.dg/{,torture/}crc-linux-3.c'", see attached.


Grüße
 Thomas


>From 310c8a6728cab1aa1c6816b5469ae4d603e2dfdd Mon Sep 17 00:00:00 2001
From: Thomas Schwinge <tschwi...@baylibre.com>
Date: Mon, 9 Dec 2024 09:59:04 +0100
Subject: [PATCH] 'git mv gcc/testsuite/gcc.dg/{,torture/}crc-linux-3.c'

Like recent commit 96f5fd3089075b56ea9ea85060213cc4edd7251a
"Move some CRC tests into the gcc.dg/torture directory" moved a few files, this
one also needs to go into torture testing: otherwise, it's compiled just at
'-O0', where the CRC optimization pass isn't active.

	gcc/testsuite/
	* gcc.dg/crc-linux-3.c: Move...
	* gcc.dg/torture/crc-linux-3.c: ... here.
---
 gcc/testsuite/gcc.dg/{ => torture}/crc-linux-3.c | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename gcc/testsuite/gcc.dg/{ => torture}/crc-linux-3.c (100%)

diff --git a/gcc/testsuite/gcc.dg/crc-linux-3.c b/gcc/testsuite/gcc.dg/torture/crc-linux-3.c
similarity index 100%
rename from gcc/testsuite/gcc.dg/crc-linux-3.c
rename to gcc/testsuite/gcc.dg/torture/crc-linux-3.c
-- 
2.34.1

Reply via email to