aboutsummaryrefslogtreecommitdiff
path: root/libcpp/include/cpplib.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2025-08-04 11:45:28 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2025-08-04 11:45:28 +0100
commitfcfbe83d88c1bfae49e654b5095ebe46cbe361d8 (patch)
tree43067d105b44a31922d6a8bf48aecc02287d8c69 /libcpp/include/cpplib.h
parent0d276cd378e7a41b9004577a30b9a8ca16ec6b4c (diff)
downloadgcc-fcfbe83d88c1bfae49e654b5095ebe46cbe361d8.zip
gcc-fcfbe83d88c1bfae49e654b5095ebe46cbe361d8.tar.gz
gcc-fcfbe83d88c1bfae49e654b5095ebe46cbe361d8.tar.bz2
aarch64: Improve svdupq_lane expension for big-endian [PR121293]
If the index to svdupq_lane is variable, or is outside the range of the .Q form of DUP, the fallback expansion is to convert to VNx2DI and use TBL. The problem in this PR was that the conversion used subregs, and on big-endian targets, a bitcast from VNx2DI to another element size requires a REV[BHW] in the best case or a spill and reload in the worst case. (See the comment at the head of aarch64-sve.md for details.) Here we want the conversion to act like svreinterpret, so it should use aarch64_sve_reinterpret instead of subregs. gcc/ PR target/121293 * config/aarch64/aarch64-sve-builtins-base.cc (svdupq_lane::expand): Use aarch64_sve_reinterpret instead of subregs. Explicitly reinterpret the result back to the required mode, rather than leaving the caller to take a subreg. gcc/testsuite/ PR target/121293 * gcc.target/aarch64/sve/acle/general/dupq_lane_9.c: New test.
Diffstat (limited to 'libcpp/include/cpplib.h')
0 files changed, 0 insertions, 0 deletions