testsuite/arm: add missing -mthumb to several tests
authorChristophe Lyon <christophe.lyon@linaro.org>
Mon, 23 Nov 2020 09:58:43 +0000 (09:58 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Mon, 23 Nov 2020 09:59:23 +0000 (09:59 +0000)
commit771a4552b63ede699c261d94c426451fad38793a
tree417e0213354f5b6d6d70f2d7d3aece5a4cc5bacf
parentd3585f5d0df47ffa453f5fe436fdf588301e5314
testsuite/arm: add missing -mthumb to several tests

Some tests force -mcpu=cortex-mXX but do not add -mthumb, causing
errors if GCC is not configured to default to Thumb code
(--with-mode=thumb):
cc1: error: target CPU does not support ARM mode

This patch adds -mthumb where relevant.

2020-11-23  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
* gcc.target/arm/cortex-m55-nodsp-flag-hard.c: Add -mthumb.
* gcc.target/arm/cortex-m55-nodsp-flag-softfp.c: Likewise.
* gcc.target/arm/cortex-m55-nodsp-nofp-flag-softfp.c: Likewise.
* gcc.target/arm/cortex-m55-nofp-flag-hard.c: Likewise.
* gcc.target/arm/cortex-m55-nofp-flag-softfp.c: Likewise.
* gcc.target/arm/cortex-m55-nofp-nomve-flag-softfp.c: Likewise.
* gcc.target/arm/cortex-m55-nomve-flag-hard.c: Likewise.
* gcc.target/arm/cortex-m55-nomve-flag-softfp.c: Likewise.
* gcc.target/arm/cortex-m55-nomve.fp-flag-hard.c: Likewise.
* gcc.target/arm/cortex-m55-nomve.fp-flag-softfp.c: Likewise.
* gcc.target/arm/mve/intrinsics/pr97327.c: Likewise.
gcc/testsuite/gcc.target/arm/cortex-m55-nodsp-flag-hard.c
gcc/testsuite/gcc.target/arm/cortex-m55-nodsp-flag-softfp.c
gcc/testsuite/gcc.target/arm/cortex-m55-nodsp-nofp-flag-softfp.c
gcc/testsuite/gcc.target/arm/cortex-m55-nofp-flag-hard.c
gcc/testsuite/gcc.target/arm/cortex-m55-nofp-flag-softfp.c
gcc/testsuite/gcc.target/arm/cortex-m55-nofp-nomve-flag-softfp.c
gcc/testsuite/gcc.target/arm/cortex-m55-nomve-flag-hard.c
gcc/testsuite/gcc.target/arm/cortex-m55-nomve-flag-softfp.c
gcc/testsuite/gcc.target/arm/cortex-m55-nomve.fp-flag-hard.c
gcc/testsuite/gcc.target/arm/cortex-m55-nomve.fp-flag-softfp.c
gcc/testsuite/gcc.target/arm/mve/intrinsics/pr97327.c