]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: extract the base address to promote the combine of RTX.
authorzhaozhou <zhaozhou@loongson.cn>
Fri, 14 Nov 2025 03:05:08 +0000 (11:05 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Sat, 22 Nov 2025 07:38:23 +0000 (15:38 +0800)
commit799ca4cda74dec3d567f2c6f417ab09cb53b5025
tree22a5873052b63fa7e881994bab2efa06736d1e80
parent0483d99124fbd2c6dfebb0c735fdf077b37838da
LoongArch: extract the base address to promote the combine of RTX.

When use 256 bits vec for move src to dest, extract the base address
what plus operation to promote the combine of RTX.

gcc/ChangeLog:

* config/loongarch/loongarch.cc: Extract plus operation.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/vector/lasx/lasx-struct-move.c: New test.
gcc/config/loongarch/loongarch.cc
gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-struct-move.c [new file with mode: 0644]