This patch defines spaceship{sf,df,si,di} for AArch64. This is a fix for the poor codegen on floating-point types raised by the PR, and an improvement to that for integers where this optab applies.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117013. Successfully bootstrapped and regtested on aarch64-linux-gnu. OK for stage 1? Spencer Abson (1): AArch64: Define the spaceship optab [PR117013] gcc/config/aarch64/aarch64-protos.h | 1 + gcc/config/aarch64/aarch64.cc | 73 +++++++ gcc/config/aarch64/aarch64.md | 43 ++++ .../g++.target/aarch64/spaceship_1.C | 192 ++++++++++++++++++ .../g++.target/aarch64/spaceship_2.C | 72 +++++++ .../g++.target/aarch64/spaceship_3.C | 9 + 6 files changed, 390 insertions(+) create mode 100644 gcc/testsuite/g++.target/aarch64/spaceship_1.C create mode 100644 gcc/testsuite/g++.target/aarch64/spaceship_2.C create mode 100644 gcc/testsuite/g++.target/aarch64/spaceship_3.C -- 2.34.1