Bootstrapped and regtested on loongarch64-linux-gnu. Ok for trunk?
Please keep my aosc.io mail in Cc as there seems some deliverability
issue from loongson.cn to xry111.site.
Xi Ruoyao (6):
LoongArch: unify frint/ftint unspecs and avoid unsound
fix/unsigned_fix RTX
LoongArch: utilize scalar ftintxx instructions
LoongArch: use the frint instruction for nearbyint with
-fno-trapping-math
LoongArch: omit the broadcasting using SIMD instruction for rounding
scalar if -fno-trapping-math
LoongArch: use LSX for scalar fixuns_trunc
LoongArch: eliminate redundant extension after [x]vpickve2gr
gcc/config/loongarch/lasx.md | 58 ---
gcc/config/loongarch/loongarch-builtins.cc | 12 +-
gcc/config/loongarch/loongarch-ftypes.def | 10 +-
gcc/config/loongarch/loongarch-protos.h | 2 +-
gcc/config/loongarch/loongarch.cc | 114 +++---
gcc/config/loongarch/loongarch.md | 126 +++++--
gcc/config/loongarch/lsx.md | 115 ------
gcc/config/loongarch/simd.md | 329 ++++++++++++++----
.../gcc.target/loongarch/fixuns-lsx.c | 28 ++
gcc/testsuite/gcc.target/loongarch/ftintrne.c | 28 ++
.../gcc.target/loongarch/nearbyint-notrap.c | 14 +
.../gcc.target/loongarch/roundeven-notrap.c | 14 +
.../loongarch/vector/lasx/lasx-builtin.c | 10 +-
.../vector/lasx/lasx-xvpickve2gr-1.c | 50 +++
.../vector/lasx/vect-extract-256-128.c | 24 +-
.../loongarch/vector/lsx/lsx-builtin.c | 4 +-
.../loongarch/vector/lsx/lsx-vpickve2gr-1.c | 34 ++
17 files changed, 594 insertions(+), 378 deletions(-)
create mode 100644 gcc/testsuite/gcc.target/loongarch/fixuns-lsx.c
create mode 100644 gcc/testsuite/gcc.target/loongarch/ftintrne.c
create mode 100644 gcc/testsuite/gcc.target/loongarch/nearbyint-notrap.c
create mode 100644 gcc/testsuite/gcc.target/loongarch/roundeven-notrap.c
create mode 100644
gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpickve2gr-1.c
create mode 100644
gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vpickve2gr-1.c
--
2.56.1