aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@foss.st.com>2021-08-06 14:25:47 +0000
committerChristophe Lyon <christophe.lyon@foss.st.com>2021-08-06 14:25:47 +0000
commitaff75af3b50f8c039ed6fbfa3f313ba45d44f6e6 (patch)
treee01be7185959b11d265a52096b30f758eee04640
parenta22b3e022c2b45047a28d901042888eb77620499 (diff)
downloadgcc-aff75af3b50f8c039ed6fbfa3f313ba45d44f6e6.zip
gcc-aff75af3b50f8c039ed6fbfa3f313ba45d44f6e6.tar.gz
gcc-aff75af3b50f8c039ed6fbfa3f313ba45d44f6e6.tar.bz2
arm: Fix pr69245.c testcase for reorder assembler architecture directives [PR101723]
In gcc.target/arm/pr69245.c, to have a .fpu neon-vfpv4 directive, make sure code for fn1() is emitted, by removing the static keyword. Fix a typo in gcc.target/arm/pr69245.c, where \s should be \\s. 2021-08-06 Christophe Lyon <christophe.lyon@foss.st.com> gcc/testsuite/ PR target/101723 * gcc.target/arm/pr69245.c: Make sure to emit code for fn1, fix typo.
-rw-r--r--gcc/testsuite/gcc.target/arm/pr69245.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.target/arm/pr69245.c b/gcc/testsuite/gcc.target/arm/pr69245.c
index 34b97a2..58a6104 100644
--- a/gcc/testsuite/gcc.target/arm/pr69245.c
+++ b/gcc/testsuite/gcc.target/arm/pr69245.c
@@ -12,7 +12,7 @@
#pragma GCC target "fpu=neon-vfpv4"
int a, c, d;
float b;
-static int fn1 ()
+ int fn1 ()
{
return 0;
}
@@ -26,5 +26,5 @@ void fn2 ()
/* Because we don't know the exact command-line options used to invoke the test
we cannot expect these tests to match exactly once. But they must appear at
least once. */
-/* { dg-final { scan-assembler "\.fpu\s+vfp\n" } } */
-/* { dg-final { scan-assembler "\.fpu\s+neon-vfpv4\n" } } */
+/* { dg-final { scan-assembler "\.fpu\\s+vfp\n" } } */
+/* { dg-final { scan-assembler "\.fpu\\s+neon-vfpv4\n" } } */