optimize the testcase for architectures that use ".srodata"

Message ID 20221118054904.240603-1-chenyixuan@iscas.ac.cn
State Accepted
Headers
Series optimize the testcase for architectures that use ".srodata" |

Checks

Context Check Description
snail/gcc-patch-check success Github commit url

Commit Message

陈逸轩 Nov. 18, 2022, 5:49 a.m. UTC
  2022-11-18  Yixuan Chen  <chenyixuan@iscas.ac.cn>

        * gcc.dg/pr25521.c: optimize the testcast for architectures that use ".srodata"

testsuite/gcc.dg/pr25521.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Richard Biener Nov. 18, 2022, 8:47 a.m. UTC | #1
On Fri, Nov 18, 2022 at 6:49 AM Yixuan Chen <chenyixuan@iscas.ac.cn> wrote:

OK.

> 2022-11-18  Yixuan Chen  <chenyixuan@iscas.ac.cn>
>
>         * gcc.dg/pr25521.c: optimize the testcast for architectures that use ".srodata"
>
> testsuite/gcc.dg/pr25521.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.dg/pr25521.c b/gcc/testsuite/gcc.dg/pr25521.c
> index 74fe2ae6626..63363a03b9f 100644
> --- a/gcc/testsuite/gcc.dg/pr25521.c
> +++ b/gcc/testsuite/gcc.dg/pr25521.c
> @@ -7,4 +7,4 @@
>  const volatile int foo = 30;
>
>
> -/* { dg-final { scan-assembler "\\.rodata" } } */
> +/* { dg-final { scan-assembler "\\.s\?rodata" } } */
> --
> 2.37.2
>
  
Jeff Law Nov. 18, 2022, 3:48 p.m. UTC | #2
On 11/17/22 22:49, Yixuan Chen wrote:
> Subject:
> [PATCH] optimize the testcase for architectures that use ".srodata"
> From:
> Yixuan Chen <chenyixuan@iscas.ac.cn>
> Date:
> 11/17/22, 22:49
>
> To:
> gcc-patches@gcc.gnu.org
> CC:
> kito.cheng@gmail.com, andrew@sifive.com, oriachiuan@gmail.com, 
> jiawei@iscas.ac.cn, Yixuan Chen <chenyixuan@iscas.ac.cn>
>
>
> 2022-11-18  Yixuan Chen<chenyixuan@iscas.ac.cn>
>
>          * gcc.dg/pr25521.c: optimize the testcast for architectures that use ".srodata"

I fixed up the ChangeLog a bit and committed this for you. Thanks.

jeff
  

Patch

diff --git a/gcc/testsuite/gcc.dg/pr25521.c b/gcc/testsuite/gcc.dg/pr25521.c
index 74fe2ae6626..63363a03b9f 100644
--- a/gcc/testsuite/gcc.dg/pr25521.c
+++ b/gcc/testsuite/gcc.dg/pr25521.c
@@ -7,4 +7,4 @@ 
 const volatile int foo = 30;
 
 
-/* { dg-final { scan-assembler "\\.rodata" } } */
+/* { dg-final { scan-assembler "\\.s\?rodata" } } */