aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/may_dangle.rs
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2025-03-31 10:37:11 +0100
committerRichard Earnshaw <rearnsha@arm.com>2025-03-31 11:19:15 +0100
commitf30e180194bfbcd7594566ef050534388be31e8d (patch)
treeccf5356d4cc0942b6116efbe280770fcc548d2e2 /gcc/testsuite/rust/compile/may_dangle.rs
parentf3899e0fd3f9aa6b579a21e87b50c61ea5c448df (diff)
downloadgcc-f30e180194bfbcd7594566ef050534388be31e8d.zip
gcc-f30e180194bfbcd7594566ef050534388be31e8d.tar.gz
gcc-f30e180194bfbcd7594566ef050534388be31e8d.tar.bz2
arm: testsuite: fix vect-fmaxmin.c test
This is another case of a test that was both an executable test requiring specific hardware and an assembler scan test. The requirement for the hardware was masking some useful testing that could be done (by scanning the assembly output) on almost all test runs. Fixed in a similar manner to fmaxmin{,-2}.c by splitting the test into two, one that scans the assembler output and one that executes the compiled code if suitable hardware is available. The masked issue was that this test was expecting vectorization to occur that was incorrect given the options passed. For correct vectorization we need -funsafe-math-optimizations as the vector version of the single-precision operation will apply a truncation of denormal values. gcc/testsuite/ChangeLog: * gcc.target/arm/vect-fmaxmin-2.c: New compile test. Split from ... * gcc.target/arm/vect-fmaxmin.c: ... here. Remove scan-assembler subtests. For both, add -funsafe-math-optimizations.
Diffstat (limited to 'gcc/testsuite/rust/compile/may_dangle.rs')
0 files changed, 0 insertions, 0 deletions