aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-array.cc
diff options
context:
space:
mode:
authorGuo Jie <guojie@loongson.cn>2024-12-30 10:37:18 +0800
committerLulu Cheng <chenglulu@loongson.cn>2025-01-02 09:27:39 +0800
commit693a5e6ae83f8606a5af674e18166060cd6a2e0c (patch)
tree80b3ee83336ea28d34a76e67ba2b997736151037 /gcc/fortran/trans-array.cc
parent429d08fbfb14f7c733bb151d6f4782eb5c958cb9 (diff)
downloadgcc-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