[ARM] Rework expectation for call to Armv8-M nonsecure function
commitb8aca6ed686b69c59f6c9d466d2d79bc1cabb911
authorthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Nov 2017 10:01:33 +0000 (17 10:01 +0000)
committerthopre01 <thopre01@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Nov 2017 10:01:33 +0000 (17 10:01 +0000)
tree3f7cb0b66cee3d7807532bdcf03801cd02124bfc
parent46b7a424bf3ef8275a4c85f9b571d9565b5c6fd8
[ARM] Rework expectation for call to Armv8-M nonsecure function

Testcase gcc.target/arm/cmse/cmse-14.c checks whether bar is called via
__gnu_cmse_nonsecure_call libcall and not via a direct call. However the
pattern is a bit surprising in that it needs to explicitely allow "by"
due to allowing anything before the 'b'.

This patch rewrites the logic to look for b as a first non-whitespace
letter followed iby anything (to match bl and conditional branches)
followed by some spaces and then bar.

2017-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/testsuite/
    * gcc.target/arm/cmse/cmse-14.c: Change logic to match branch
    instruction to bar.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254861 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/cmse/cmse-14.c