aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSimon Cook <simon.cook@embecosm.com>2020-07-10 14:53:19 +0100
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:17:21 -0300
commit3c7b6756e8c647212bc82c7456b0328d2343ce45 (patch)
treef31431f4c513352d39a53636c21337923b689264 /gcc
parent99e8d6aea5bf73e5a2b88e2e033e154dd79e2cba (diff)
downloadgcc-3c7b6756e8c647212bc82c7456b0328d2343ce45.zip
gcc-3c7b6756e8c647212bc82c7456b0328d2343ce45.tar.gz
gcc-3c7b6756e8c647212bc82c7456b0328d2343ce45.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.target/riscv/read-thread-pointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c b/gcc/testsuite/gcc.target/riscv/read-thread-pointer.c
index 760f8ea..401fb42 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" } } */