testsuite/arm: Fix scan-assembler-times in pr96770.c with movt/movw
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 16 Apr 2021 19:58:25 +0000 (19:58 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Fri, 16 Apr 2021 19:58:25 +0000 (19:58 +0000)
commit0754a104bed7c8a937f0623ad15ca03387131210
treef08d70a666120d331cec226ac915e9113a4b5b06
parent49813aad3292f7f2bef69206274da78a9a7116ed
testsuite/arm: Fix scan-assembler-times in pr96770.c with movt/movw

The previous change to this testcase missed the fact that the data may
be accessed via an anchor, depending on the optimization level,
leading to false failures.

This patch restricts matching to upper16:lower16 followed by
non-spaces, followed by +4 (in f4) or +320 (in f5).

Using '.*' instead of '[^ \]' would match accross the whole assembly
file, which is not what we want, hence the limitation with spaces.

2021-04-16  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
PR target/96770
* gcc.target/arm/pure-code/pr96770.c: Fix scan-assembler-times
with movt/movw.
gcc/testsuite/gcc.target/arm/pure-code/pr96770.c