From c19f95fb1b8f15090eb1d1682e86de425fbd3c78 Mon Sep 17 00:00:00 2001 From: Simon Cook Date: Fri, 10 Jul 2020 14:53:19 +0100 Subject: [PATCH] RISC-V: Fix regular expression in target-specific test Some square brackets were missing escape characters, causing DejaGnu to try and call a proc with the name "at". gcc/testsuite/ChangeLog: * gcc.target/riscv/read-thread-pointer.c: Fix escaping on regular expression. --- gcc/testsuite/gcc.target/riscv/read-thread-pointer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c index 760f8eafb40..401fb421129 100644 --- a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c +++ b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c @@ -4,4 +4,4 @@ void *get_tp() { return __builtin_thread_pointer (); } -/* { dg-final { scan-assembler "mv\[ \t\]*[at][0-9]+,tp" } } */ +/* { dg-final { scan-assembler "mv\[ \t\]*\[at\]\[0-9\]+,tp" } } */ -- 2.30.2