aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/ext/stdio_sync_filebuf.h
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2024-06-26 02:08:18 -0300
committerRichard Ball <richard.ball@arm.com>2024-08-20 16:11:48 +0100
commit25812d8b789748911e800a972e5a3a030e3ac905 (patch)
treefb3b3bcba6621bd6f269b9953c7c0a5cb7df8ca0 /libstdc++-v3/include/ext/stdio_sync_filebuf.h
parent76ac16766a7e9432723de4e338192ef823518b8a (diff)
downloadgcc-releases/gcc-14.zip
gcc-releases/gcc-14.tar.gz
gcc-releases/gcc-14.tar.bz2
[testsuite] [arm] [vect] adjust mve-vshr test [PR113281]releases/gcc-14
The test was too optimistic, alas. We used to vectorize shifts by clamping the shift counts below the bit width of the types (e.g. at 15 for 16-bit vector elements), but (uint16_t)32768 >> (uint16_t)16 is well defined (because of promotion to 32-bit int) and must yield 0, not 1 (as before the fix). Unfortunately, in the gimple model of vector units, such large shift counts wouldn't be well-defined, so we won't vectorize such shifts any more, unless we can tell they're in range or undefined. So the test that expected the vectorization we no longer performed needs to be adjusted. Instead of nobbling the test, Richard Earnshaw suggested annotating the test with the expected ranges so as to enable the optimization, and Christophe Lyon suggested a further simplification. Co-Authored-By: Richard Earnshaw <Richard.Earnshaw@arm.com> for gcc/testsuite/ChangeLog PR tree-optimization/113281 * gcc.target/arm/simd/mve-vshr.c: Add expected ranges. (cherry picked from commit 54d2339c9f87f702e02e571a5460e11c19e1c02f)
Diffstat (limited to 'libstdc++-v3/include/ext/stdio_sync_filebuf.h')
0 files changed, 0 insertions, 0 deletions