optimize the testcase for architectures that use ".srodata"
Commit Message
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
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
>
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
@@ -7,4 +7,4 @@
const volatile int foo = 30;
-/* { dg-final { scan-assembler "\\.rodata" } } */
+/* { dg-final { scan-assembler "\\.s\?rodata" } } */