[Obvious] arm: Fix test from failing on some targets [PR91816]
authorStam Markianos-Wright <stam.markianos-wright@arm.com>
Mon, 30 Nov 2020 10:32:58 +0000 (10:32 +0000)
committerStam Markianos-Wright <stam.markianos-wright@arm.com>
Mon, 30 Nov 2020 10:36:26 +0000 (10:36 +0000)
commitdee11eb742484daa9efae64a4a2d62ebc751ca27
tree49db544773277b242d453ea4fcd29e69708c1677
parent4d87bd39bafae86747944b2f8c53fdbc43b8dac3
[Obvious] arm: Fix test from failing on some targets [PR91816]

This recently submitted test was found to fail on some Cortex-M
targets. This was because codegen on these CPUs would emit a ldr
instead of a movw/movt pair, resulting in an overall smaller test
(i.e. the branch wasn't as far) and the behaviour being tested
for not being triggered.

This commit doubles the size of the test to account for this.

gcc/testsuite/ChangeLog:

* gcc.target/arm/pr91816.c: New test.
gcc/testsuite/gcc.target/arm/pr91816.c