diff options
author | Guo Jie <guojie@loongson.cn> | 2024-12-30 10:37:18 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2025-01-02 09:27:39 +0800 |
commit | 693a5e6ae83f8606a5af674e18166060cd6a2e0c (patch) | |
tree | 80b3ee83336ea28d34a76e67ba2b997736151037 /gcc/fortran/trans-array.cc | |
parent | 429d08fbfb14f7c733bb151d6f4782eb5c958cb9 (diff) | |
download | gcc-693a5e6ae83f8606a5af674e18166060cd6a2e0c.zip gcc-693a5e6ae83f8606a5af674e18166060cd6a2e0c.tar.gz gcc-693a5e6ae83f8606a5af674e18166060cd6a2e0c.tar.bz2 |
LoongArch: Fix selector error in lasx_xvexth_h/w/d* patterns
The xvexth related instructions operate SEPARATELY according to
the high and low 128 bits, and sign/zero extend the upper half
of every 128 bits in src to the corresponding 128 bits in dest.
For xvexth.d.w, the rule for the first element of dest should be:
dest.D[0] = sign_extend (src.W[2] ,64);
instead of:
dest.D[0] = sign_extend (src.W[4] ,64);
gcc/ChangeLog:
* config/loongarch/lasx.md: Fix selector index.
Diffstat (limited to 'gcc/fortran/trans-array.cc')
0 files changed, 0 insertions, 0 deletions