[gcc r14-9352] LoongArch: testsuite:Fix problems with incorrect results in vector test cases.

2024-03-07 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:ae1b05641ccf1cd4739b0998ce61cda6e5b772dd commit r14-9352-gae1b05641ccf1cd4739b0998ce61cda6e5b772dd Author: chenxiaolong Date: Wed Mar 6 16:54:06 2024 +0800 LoongArch: testsuite:Fix problems with incorrect results in vector test cases. In simd_correctness_che

[gcc r14-9351] LoongArch: Use /lib instead of /lib64 as the library search path for MUSL.

2024-03-07 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:2f7d4728dbfd976788f77b8f43d4dc3c718b71b7 commit r14-9351-g2f7d4728dbfd976788f77b8f43d4dc3c718b71b7 Author: Yang Yujie Date: Wed Mar 6 09:19:59 2024 +0800 LoongArch: Use /lib instead of /lib64 as the library search path for MUSL. gcc/ChangeLog:

[gcc r15-1764] LoongArch: Fix explicit-relocs-{extreme-, }tls-desc.c tests.

2024-07-02 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:20909c97211f25fb29edcd12cb148309c919bf81 commit r15-1764-g20909c97211f25fb29edcd12cb148309c919bf81 Author: Lulu Cheng Date: Fri Jun 28 15:04:26 2024 +0800 LoongArch: Fix explicit-relocs-{extreme-,}tls-desc.c tests. After r15-1579, ADD and LD/ST pairs will be

[gcc r15-1765] LoongArch: Define loongarch_insn_cost and set the cost of movcf2gr and movgr2cf.

2024-07-02 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:90c8782615e5fadb566ed4fbe4e08af9ea3d2d2d commit r15-1765-g90c8782615e5fadb566ed4fbe4e08af9ea3d2d2d Author: Lulu Cheng Date: Fri Jun 28 15:09:48 2024 +0800 LoongArch: Define loongarch_insn_cost and set the cost of movcf2gr and movgr2cf. The following two FAIL

[gcc r15-1986] LoongArch: TFmode is not allowed to be stored in the float register.

2024-07-11 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:abeb6c8a62758faa0719e818e6e8a7db15a6793b commit r15-1986-gabeb6c8a62758faa0719e818e6e8a7db15a6793b Author: Lulu Cheng Date: Thu Jul 4 10:37:26 2024 +0800 LoongArch: TFmode is not allowed to be stored in the float register. PR target/115752 gc

[gcc r15-1987] LoongArch: Remove unreachable codes.

2024-07-11 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:3bc1a86d534db98d2e7647b734a198098f51267f commit r15-1987-g3bc1a86d534db98d2e7647b734a198098f51267f Author: Lulu Cheng Date: Thu Jul 4 15:00:40 2024 +0800 LoongArch: Remove unreachable codes. gcc/ChangeLog: * config/loongarch/loongarch.cc

[gcc r14-10417] LoongArch: TFmode is not allowed to be stored in the float register.

2024-07-12 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:89f9342980b7976f98ba43fac6a64a7a2214b6e6 commit r14-10417-g89f9342980b7976f98ba43fac6a64a7a2214b6e6 Author: Lulu Cheng Date: Thu Jul 4 10:37:26 2024 +0800 LoongArch: TFmode is not allowed to be stored in the float register. PR target/115752 g

[gcc r13-8910] LoongArch: TFmode is not allowed to be stored in the float register.

2024-07-12 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:616c3290785c204b3019e7aaff8a7d9bb425d336 commit r13-8910-g616c3290785c204b3019e7aaff8a7d9bb425d336 Author: Lulu Cheng Date: Thu Jul 4 10:37:26 2024 +0800 LoongArch: TFmode is not allowed to be stored in the float register. PR target/115752 gc

[gcc r15-2167] LoongArch: Organize the code related to split move and merge the same functions.

2024-07-19 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:390c3e4ed28f6c7ef176c90b557fa0203678dbb3 commit r15-2167-g390c3e4ed28f6c7ef176c90b557fa0203678dbb3 Author: Lulu Cheng Date: Fri Jul 12 09:57:40 2024 +0800 LoongArch: Organize the code related to split move and merge the same functions. gcc/ChangeLog:

[gcc r14-9407] LoongArch: Fixed an issue with the implementation of the template atomic_compare_and_swapsi.

2024-03-08 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:3a3fbec0a4d3f36de58df9ef0b3992a3ffb359c2 commit r14-9407-g3a3fbec0a4d3f36de58df9ef0b3992a3ffb359c2 Author: Lulu Cheng Date: Tue Mar 5 14:43:04 2024 +0800 LoongArch: Fixed an issue with the implementation of the template atomic_compare_and_swapsi. If the hard

[gcc r14-9408] LoongArch: testsuite: Add compilation options to the regname-fp-s9.c.

2024-03-08 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:6fe63013e3292a45288461b7efa9d52e0ac234dc commit r14-9408-g6fe63013e3292a45288461b7efa9d52e0ac234dc Author: Lulu Cheng Date: Thu Mar 7 09:44:03 2024 +0800 LoongArch: testsuite: Add compilation options to the regname-fp-s9.c. When the value of the macro DEFAULT

[gcc r13-8413] LoongArch: Fixed an issue with the implementation of the template atomic_compare_and_swapsi.

2024-03-08 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:bf784936bc8be013db8b3e35002e76838f830f40 commit r13-8413-gbf784936bc8be013db8b3e35002e76838f830f40 Author: Lulu Cheng Date: Tue Mar 5 14:43:04 2024 +0800 LoongArch: Fixed an issue with the implementation of the template atomic_compare_and_swapsi. If the hard

[gcc r12-10200] LoongArch: Fixed an issue with the implementation of the template atomic_compare_and_swapsi.

2024-03-08 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:d77ed1d6eb82fb5ef5cd94c06f5c67db753fb7c2 commit r12-10200-gd77ed1d6eb82fb5ef5cd94c06f5c67db753fb7c2 Author: Lulu Cheng Date: Tue Mar 5 14:43:04 2024 +0800 LoongArch: Fixed an issue with the implementation of the template atomic_compare_and_swapsi. If the har

[gcc r14-9486] LoongArch: Remove masking process for operand 3 of xvpermi.q.

2024-03-14 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:d7d05824ae68da24908d97a10b9ec59d08f75a90 commit r14-9486-gd7d05824ae68da24908d97a10b9ec59d08f75a90 Author: Chenghui Pan Date: Thu Mar 14 09:26:54 2024 +0800 LoongArch: Remove masking process for operand 3 of xvpermi.q. The behavior of non-zero unused bits in

[gcc r14-9562] LoongArch: Remove unused/useless definitions.

2024-03-19 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:0529f98b7b1b0eadb009a7aa3161462897e53745 commit r14-9562-g0529f98b7b1b0eadb009a7aa3161462897e53745 Author: Chenghui Pan Date: Fri Mar 15 09:30:25 2024 +0800 LoongArch: Remove unused/useless definitions. This patch removes some unnecessary definitions of targe

[gcc r14-9563] LoongArch: Change loongarch_expand_vec_cmp()'s return type from bool to void.

2024-03-19 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:1938d9d2bb8ecf84d2aa3c3ef2fb78ec19433057 commit r14-9563-g1938d9d2bb8ecf84d2aa3c3ef2fb78ec19433057 Author: Chenghui Pan Date: Fri Mar 15 09:30:26 2024 +0800 LoongArch: Change loongarch_expand_vec_cmp()'s return type from bool to void. This function is always

[gcc r14-9564] LoongArch: Combine UNITS_PER_FP_REG and UNITS_PER_FPREG macros.

2024-03-19 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:994d8f922b9d88f45775f57a490409ab1c3baf59 commit r14-9564-g994d8f922b9d88f45775f57a490409ab1c3baf59 Author: Chenghui Pan Date: Fri Mar 15 09:30:27 2024 +0800 LoongArch: Combine UNITS_PER_FP_REG and UNITS_PER_FPREG macros. These macros are completely same in de

[gcc r14-9736] LoongArch: Add descriptions of the compilation options.

2024-03-31 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:7f424c3167b72db1ecd661ccb71559bf27cbcfc1 commit r14-9736-g7f424c3167b72db1ecd661ccb71559bf27cbcfc1 Author: Lulu Cheng Date: Sat Mar 30 15:14:14 2024 +0800 LoongArch: Add descriptions of the compilation options. Add descriptions for the compilation options '-m

[gcc r14-9737] LoongArch: Split loongarch_option_override_internal into smaller procedures

2024-03-31 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:d28ea8e5a70474cf9d28bf0c008092c936ad1358 commit r14-9737-gd28ea8e5a70474cf9d28bf0c008092c936ad1358 Author: Yang Yujie Date: Sat Mar 30 16:43:14 2024 +0800 LoongArch: Split loongarch_option_override_internal into smaller procedures gcc/ChangeLog:

[gcc r13-8545] LoongArch: gcc13: Implement option save/restore.

2024-03-31 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:4736b317047ae6b04f7609843f21cb68fef6a0c1 commit r13-8545-g4736b317047ae6b04f7609843f21cb68fef6a0c1 Author: Lulu Cheng Date: Fri Mar 15 16:23:05 2024 +0800 LoongArch: gcc13: Implement option save/restore. LTO option streaming and target attributes both require

[gcc r12-10303] LoongArch: gcc12: Implement option save/restore.

2024-03-31 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:bf0b32d7929f8b4b15b21658d572b89ded03d8f8 commit r12-10303-gbf0b32d7929f8b4b15b21658d572b89ded03d8f8 Author: Lulu Cheng Date: Fri Mar 15 16:41:20 2024 +0800 LoongArch: gcc12: Implement option save/restore. LTO option streaming and target attributes both requir

[gcc r14-9741] LoongArch: Regenerate loongarch.opt.urls.

2024-04-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:6f9ba3ea55477cf1bd3d37e40ad116150c06a75e commit r14-9741-g6f9ba3ea55477cf1bd3d37e40ad116150c06a75e Author: Lulu Cheng Date: Mon Apr 1 11:00:21 2024 +0800 LoongArch: Regenerate loongarch.opt.urls. Fixes: d28ea8e5a704 ("LoongArch: Split loongarch_option_overrid

[gcc r14-9742] LoongArch: Add support for TLS descriptors.

2024-04-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:b253b4695ddac43301bb572895095b9569165ff4 commit r14-9742-gb253b4695ddac43301bb572895095b9569165ff4 Author: mengqinggang Date: Tue Apr 2 09:57:20 2024 +0800 LoongArch: Add support for TLS descriptors. Add support for TLS descriptors on normal code model and ex

[gcc r14-9743] LoongArch: Fix missing plugin header

2024-04-02 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:078f4a958cd2267d5b1dccda838785836ac19b79 commit r14-9743-g078f4a958cd2267d5b1dccda838785836ac19b79 Author: Yang Yujie Date: Tue Apr 2 09:20:32 2024 +0800 LoongArch: Fix missing plugin header gcc/ChangeLog: * config/loongarch/t-loongarch: Add

[gcc r14-9766] LoongArch: Remove unused code.

2024-04-02 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:8677182f32234786fccce25583232ec5181dde75 commit r14-9766-g8677182f32234786fccce25583232ec5181dde75 Author: Jiahao Xu Date: Wed Apr 3 09:38:23 2024 +0800 LoongArch: Remove unused code. gcc/ChangeLog: * config/loongarch/lasx.md: Remove unused c

[gcc r14-9824] LoongArch: Set default alignment for functions jumps and loops [PR112919].

2024-04-07 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:8f0ff6b998748f3581e0f06e3108193866b1209d commit r14-9824-g8f0ff6b998748f3581e0f06e3108193866b1209d Author: Lulu Cheng Date: Tue Apr 2 14:29:08 2024 +0800 LoongArch: Set default alignment for functions jumps and loops [PR112919]. Xi Ruoyao set the alignment ru

[gcc r14-9866] LoongArch: Enable switchable target

2024-04-09 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:8657d76d583f0f87000e9003ba75922f2bbe4455 commit r14-9866-g8657d76d583f0f87000e9003ba75922f2bbe4455 Author: Yang Yujie Date: Mon Apr 8 16:45:13 2024 +0800 LoongArch: Enable switchable target This patch fixes the back-end context switching in cases where functi

[gcc r14-9984] LoongArch: Add indexes for some compilation options.

2024-04-15 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:46d914d0e0b7e982627edb285c41c67cc4e640ac commit r14-9984-g46d914d0e0b7e982627edb285c41c67cc4e640ac Author: Lulu Cheng Date: Tue Apr 9 11:48:13 2024 +0800 LoongArch: Add indexes for some compilation options. gcc/ChangeLog: * config/loongarch/l

[gcc r14-10083] LoongArch: Define ISA versions

2024-04-22 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:b4ebdd153b2b068082b452772095260b03b78cc2 commit r14-10083-gb4ebdd153b2b068082b452772095260b03b78cc2 Author: Yang Yujie Date: Tue Apr 23 10:42:47 2024 +0800 LoongArch: Define ISA versions These ISA versions are defined as -march= parameters and are recomme

[gcc r14-10084] LoongArch: Define builtin macros for ISA evolutions

2024-04-22 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:77e114bb0dc03d1df7f84221e3132d19030c34b4 commit r14-10084-g77e114bb0dc03d1df7f84221e3132d19030c34b4 Author: Yang Yujie Date: Tue Apr 23 10:42:48 2024 +0800 LoongArch: Define builtin macros for ISA evolutions Detailed description of these definitions can be fo

[gcc r12-10403] LoongArch: Fix eh_return epilogue for normal returns.

2024-04-29 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:bb78099d2624b52c781ed6e5d85e43d54c3cda1a commit r12-10403-gbb78099d2624b52c781ed6e5d85e43d54c3cda1a Author: Yang Yujie Date: Fri Dec 8 18:01:18 2023 +0800 LoongArch: Fix eh_return epilogue for normal returns. On LoongArch, the regitsters $r4 - $r7 (EH_RETURN_

[gcc r13-8661] LoongArch: Fix eh_return epilogue for normal returns.

2024-04-29 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:88f22217521564e1a956e14ac55456caa160e055 commit r13-8661-g88f22217521564e1a956e14ac55456caa160e055 Author: Yang Yujie Date: Fri Dec 8 18:01:18 2023 +0800 LoongArch: Fix eh_return epilogue for normal returns. On LoongArch, the regitsters $r4 - $r7 (EH_RETURN_D

[gcc r15-2660] LoongArch: Remove gawk extension from a generator script.

2024-08-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:c48f38288fb17b70784ae5e71cb741e664da023a commit r15-2660-gc48f38288fb17b70784ae5e71cb741e664da023a Author: Yang Yujie Date: Tue Jul 23 10:04:26 2024 +0800 LoongArch: Remove gawk extension from a generator script. gcc/ChangeLog: * config/loong

[gcc r14-10549] LoongArch: Remove gawk extension from a generator script.

2024-08-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:79d32baea4a94dd1d4e267a0e172fb15c238fb37 commit r14-10549-g79d32baea4a94dd1d4e267a0e172fb15c238fb37 Author: Yang Yujie Date: Tue Jul 23 10:04:26 2024 +0800 LoongArch: Remove gawk extension from a generator script. gcc/ChangeLog: * config/loon

[gcc r15-2877] LoongArch: Use iorn and andn standard pattern names.

2024-08-11 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:75e852b49fca399b9fd00a9cc943d9366e509711 commit r15-2877-g75e852b49fca399b9fd00a9cc943d9366e509711 Author: Lulu Cheng Date: Thu Aug 1 16:07:25 2024 +0800 LoongArch: Use iorn and andn standard pattern names. R15-1890 introduced new optabs iorc and andc, and it

[gcc r15-2878] LoongArch: Drop vcond{,u} expanders.

2024-08-11 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:0498f8bda1d08b8ed8100d759917792baf2da15f commit r15-2878-g0498f8bda1d08b8ed8100d759917792baf2da15f Author: Lulu Cheng Date: Thu Aug 8 10:39:54 2024 +0800 LoongArch: Drop vcond{,u} expanders. Optabs vcond{,u} will be removed for GCC 15. Since regtest shows no

[gcc r15-2879] LoongArch: Provide ashr lshr and ashl RTL pattern for vectors.

2024-08-11 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:7bf4cd48d4494ba65680578e9c7ae9a1b809aeaf commit r15-2879-g7bf4cd48d4494ba65680578e9c7ae9a1b809aeaf Author: Lulu Cheng Date: Thu Aug 8 09:59:28 2024 +0800 LoongArch: Provide ashr lshr and ashl RTL pattern for vectors. We support vashr vlshr and vashl. However,

[gcc r15-4130] LoongArch: Add support to annotate tablejump

2024-10-07 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:0ee028f556401846d27edf0ff67647a1a7a26b6c commit r15-4130-g0ee028f556401846d27edf0ff67647a1a7a26b6c Author: Xi Ruoyao Date: Thu Jul 11 19:43:48 2024 +0800 LoongArch: Add support to annotate tablejump This is per the request from the kernel developers. For gen

[gcc r15-4588] libffi: LoongArch: Fix soft-float builds of libffi

2024-10-23 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:a616b7e1db7319c587b9c65fe9548c59c67d1234 commit r15-4588-ga616b7e1db7319c587b9c65fe9548c59c67d1234 Author: Yang Yujie Date: Sat Jan 27 15:09:46 2024 +0800 libffi: LoongArch: Fix soft-float builds of libffi This patch correspond to the upstream PR: https:/

[gcc r15-5583] LoongArch: Remove redundant code.

2024-11-21 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:a3a375b2d1801b1bed8cb6c5a12fdda491215fd1 commit r15-5583-ga3a375b2d1801b1bed8cb6c5a12fdda491215fd1 Author: Lulu Cheng Date: Sat Nov 2 10:01:31 2024 +0800 LoongArch: Remove redundant code. TARGET_ASM_ALIGNED_{HI,SI,QI}_OP are defined repeatedly and deleted.

[gcc r15-5584] LoongArch: Modify the document to remove options that don't exist.

2024-11-21 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:92864116586aa1bb143f29ef4761f7efdfe48528 commit r15-5584-g92864116586aa1bb143f29ef4761f7efdfe48528 Author: Lulu Cheng Date: Wed Oct 9 15:50:13 2024 +0800 LoongArch: Modify the document to remove options that don't exist. gcc/ChangeLog: * doc/

[gcc r15-5817] LoongArch: testsuite: Fix loongarch/vect-frint-scalar.c.

2024-11-30 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:4f650ef8d56ca61ed4d0df9bdcd810b6a2e808df commit r15-5817-g4f650ef8d56ca61ed4d0df9bdcd810b6a2e808df Author: Lulu Cheng Date: Tue Nov 26 14:51:30 2024 +0800 LoongArch: testsuite: Fix loongarch/vect-frint-scalar.c. In r15-5327, change the default language versio

[gcc r15-5818] LoongArch: testsuite: Fix l{a}sx-andn-iorn.c.

2024-11-30 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:4ad1c87ad25b3fb01caa731927b7b26357acf7b4 commit r15-5818-g4ad1c87ad25b3fb01caa731927b7b26357acf7b4 Author: Lulu Cheng Date: Tue Nov 26 16:04:24 2024 +0800 LoongArch: testsuite: Fix l{a}sx-andn-iorn.c. Add '-fdump-tree-optimized' to this testcases. gc

[gcc r15-5819] LoongArch: Mask shift offset when emit {xv, v}{srl, sll, sra} with sameimm vector

2024-11-30 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:cd107c1603ad5e030ee1001ec244e4d0d3f0b79b commit r15-5819-gcd107c1603ad5e030ee1001ec244e4d0d3f0b79b Author: Jinyang He Date: Thu Nov 28 09:26:25 2024 +0800 LoongArch: Mask shift offset when emit {xv, v}{srl, sll, sra} with sameimm vector For {xv,v}{srl,sll,sr

[gcc r15-6477] LoongArch: Implement vector cbranch optab for LSX and LASX

2024-12-31 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:81d4707a00a2d74a9caf2d806e5b0ebe13e1247c commit r15-6477-g81d4707a00a2d74a9caf2d806e5b0ebe13e1247c Author: Jiahao Xu Date: Wed Dec 25 17:59:36 2024 +0800 LoongArch: Implement vector cbranch optab for LSX and LASX In order to support vectorization of loops wit

[gcc r15-6487] LoongArch: Remove useless UNSPECs and define_mode_attrs

2025-01-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:429d08fbfb14f7c733bb151d6f4782eb5c958cb9 commit r15-6487-g429d08fbfb14f7c733bb151d6f4782eb5c958cb9 Author: Guo Jie Date: Mon Dec 30 10:34:56 2024 +0800 LoongArch: Remove useless UNSPECs and define_mode_attrs gcc/ChangeLog: * config/loongarch/

[gcc r15-6490] LoongArch: Adjust insn patterns for better combine

2025-01-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:66b6e578d99ea20e2c67593be7a772d7710e05b2 commit r15-6490-g66b6e578d99ea20e2c67593be7a772d7710e05b2 Author: Guo Jie Date: Mon Dec 30 10:38:35 2024 +0800 LoongArch: Adjust insn patterns for better combine For some instruction patterns with commutative operands,

[gcc r15-6492] LoongArch: Add standard patterns uabd and sabd

2025-01-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:ea7476516dbd600b09ab1f05f4ed977c1cc7bb95 commit r15-6492-gea7476516dbd600b09ab1f05f4ed977c1cc7bb95 Author: Guo Jie Date: Mon Dec 30 15:12:02 2024 +0800 LoongArch: Add standard patterns uabd and sabd gcc/ChangeLog: * config/loongarch/lasx.md (

[gcc r15-6489] LoongArch: Fix bugs in insn patterns lasx_xvrepl128vei_b/h/w/d_internal

2025-01-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:18d3b87b17fd6157e3aff64099a5bf84ea5f82f3 commit r15-6489-g18d3b87b17fd6157e3aff64099a5bf84ea5f82f3 Author: Guo Jie Date: Mon Dec 30 10:37:57 2024 +0800 LoongArch: Fix bugs in insn patterns lasx_xvrepl128vei_b/h/w/d_internal There are two aspects that affect t

[gcc r15-6488] LoongArch: Fix selector error in lasx_xvexth_h/w/d* patterns

2025-01-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:693a5e6ae83f8606a5af674e18166060cd6a2e0c commit r15-6488-g693a5e6ae83f8606a5af674e18166060cd6a2e0c Author: Guo Jie Date: Mon Dec 30 10:37:18 2024 +0800 LoongArch: Fix selector error in lasx_xvexth_h/w/d* patterns The xvexth related instructions operate SEPARA

[gcc r15-6491] LoongArch: Add some vector pack/unpack patterns

2025-01-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:66a88e0f1726024fe0d34badd1db45c1b2ccf042 commit r15-6491-g66a88e0f1726024fe0d34badd1db45c1b2ccf042 Author: Guo Jie Date: Mon Dec 30 10:38:51 2024 +0800 LoongArch: Add some vector pack/unpack patterns gcc/ChangeLog: * config/loongarch/lasx.md

[gcc r15-6493] LoongArch: Optimize for conditional move operations

2025-01-01 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:d55d40afd42a280c80729b538e3cce994f20961d commit r15-6493-gd55d40afd42a280c80729b538e3cce994f20961d Author: Guo Jie Date: Mon Dec 30 10:39:13 2024 +0800 LoongArch: Optimize for conditional move operations The optimization example is as follows. From:

[gcc r15-6617] LoongArch: Optimize initializing fp resgister to zero

2025-01-07 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:61400b669688848dc764d946a4d16fb51a27e286 commit r15-6617-g61400b669688848dc764d946a4d16fb51a27e286 Author: Deng Jianbo Date: Tue Dec 31 19:33:23 2024 +0800 LoongArch: Optimize initializing fp resgister to zero In LoongArch, currently uses instruction movgr2fr

[gcc r15-6445] LoongArch: Support immediate_operand for vec_cmp

2024-12-26 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:4731ead79fac259258dbb027090f3d085f518040 commit r15-6445-g4731ead79fac259258dbb027090f3d085f518040 Author: Jiahao Xu Date: Wed Dec 18 15:45:17 2024 +0800 LoongArch: Support immediate_operand for vec_cmp We can't vectorize the code into instructions like vslti

[gcc r15-7386] LoongArch: Fix ICE caused by illegal calls to builtin functions [PR118561].

2025-02-06 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:50d2bde68a097c2e9fb3bdd7e6664c899828 commit r15-7386-g50d2bde68a097c2e9fb3bdd7e6664c899828 Author: Lulu Cheng Date: Wed Jan 22 17:57:21 2025 +0800 LoongArch: Fix ICE caused by illegal calls to builtin functions [PR118561]. PR target/118561

[gcc r14-11275] LoongArch: Fix ICE caused by illegal calls to builtin functions [PR118561].

2025-02-06 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:9a09fc9b8495f6cfa7b848b0064a96112dcb4a7f commit r14-11275-g9a09fc9b8495f6cfa7b848b0064a96112dcb4a7f Author: Lulu Cheng Date: Wed Jan 22 17:57:21 2025 +0800 LoongArch: Fix ICE caused by illegal calls to builtin functions [PR118561]. PR target/118561

[gcc r15-5580] LoongArch: Make __builtin_lsx_vorn_v and __builtin_lasx_xvorn_v arguments and return values unsigned

2024-11-21 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:ae7e25662f3f1255786f6bc13428d95b4ace6839 commit r15-5580-gae7e25662f3f1255786f6bc13428d95b4ace6839 Author: Xi Ruoyao Date: Thu Oct 31 23:58:23 2024 +0800 LoongArch: Make __builtin_lsx_vorn_v and __builtin_lasx_xvorn_v arguments and return values unsigned Ali

[gcc r15-5581] LoongArch: Fix clerical errors in lasx_xvreplgr2vr_* and lsx_vreplgr2vr_*.

2024-11-21 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:f0cb64fb3f9d8e6f765007d4d62f1f5df73dc498 commit r15-5581-gf0cb64fb3f9d8e6f765007d4d62f1f5df73dc498 Author: Lulu Cheng Date: Sat Nov 2 15:30:40 2024 +0800 LoongArch: Fix clerical errors in lasx_xvreplgr2vr_* and lsx_vreplgr2vr_*. [x]vldi.{b/h/w/d} is not imple

[gcc r14-10960] LoongArch: Make __builtin_lsx_vorn_v and __builtin_lasx_xvorn_v arguments and return values unsigned

2024-11-21 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:bd82a141ee45589e3fc85cb25bc7c45a07449d7a commit r14-10960-gbd82a141ee45589e3fc85cb25bc7c45a07449d7a Author: Xi Ruoyao Date: Thu Oct 31 23:58:23 2024 +0800 LoongArch: Make __builtin_lsx_vorn_v and __builtin_lasx_xvorn_v arguments and return values unsigned Al

[gcc r14-10961] LoongArch: Fix clerical errors in lasx_xvreplgr2vr_* and lsx_vreplgr2vr_*.

2024-11-21 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:8cf47ce60cb02fa63e13ea0d5443906aa039101f commit r14-10961-g8cf47ce60cb02fa63e13ea0d5443906aa039101f Author: Lulu Cheng Date: Sat Nov 2 15:30:40 2024 +0800 LoongArch: Fix clerical errors in lasx_xvreplgr2vr_* and lsx_vreplgr2vr_*. [x]vldi.{b/h/w/d} is not impl

[gcc r15-6817] LoongArch: Generate the final immediate for lu12i.w, lu32i.d and lu52i.d

2025-01-10 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:f30423ea8c2152dcee91056e75a4f3736cce6a6e commit r15-6817-gf30423ea8c2152dcee91056e75a4f3736cce6a6e Author: mengqinggang Date: Fri Jan 10 10:27:09 2025 +0800 LoongArch: Generate the final immediate for lu12i.w, lu32i.d and lu52i.d Generate 0x1010 instead of 0x

[gcc r15-6755] LoongArch: Opitmize the cost of vec_construct.

2025-01-09 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:e8a57884ad4898fdec5c13a8933d73bcbaf06099 commit r15-6755-ge8a57884ad4898fdec5c13a8933d73bcbaf06099 Author: chenxiaolong Date: Tue Jan 7 21:04:51 2025 +0800 LoongArch: Opitmize the cost of vec_construct. When analyzing 525 on LoongArch architecture, it was fou

[gcc r15-7092] LoongArch: Implement target attribute.

2025-01-21 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:c01ad91886527f685e67037ab4d36a6b0cd07c08 commit r15-7092-gc01ad91886527f685e67037ab4d36a6b0cd07c08 Author: Lulu Cheng Date: Tue Jan 7 11:42:25 2025 +0800 LoongArch: Implement target attribute. Add function attributes support for LoongArch. Currently,

[gcc r15-7093] LoongArch: Implement target pragma.

2025-01-21 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:4d2a1c292611514dfa5de4cbdb8a426eb437c964 commit r15-7093-g4d2a1c292611514dfa5de4cbdb8a426eb437c964 Author: Lulu Cheng Date: Tue Jan 7 12:00:12 2025 +0800 LoongArch: Implement target pragma. The target pragmas defined correspond to the target function attribut

[gcc r15-6432] LoongArch: Implement TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS hook

2024-12-25 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:44e61bd7124c762e81d8c6e615fbe7c88f773637 commit r15-6432-g44e61bd7124c762e81d8c6e615fbe7c88f773637 Author: Jiahao Xu Date: Tue Dec 17 10:41:48 2024 +0800 LoongArch: Implement TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS hook The hook changes the allocno class to ei

[gcc r15-7581] LoongArch: Fix the issue of function jump out of range caused by crtbeginS.o [PR118844].

2025-02-16 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:ae14d7d04da8c6cb542269722638071f999f94d8 commit r15-7581-gae14d7d04da8c6cb542269722638071f999f94d8 Author: Lulu Cheng Date: Wed Feb 12 14:29:58 2025 +0800 LoongArch: Fix the issue of function jump out of range caused by crtbeginS.o [PR118844]. Due to the pre

[gcc r15-7522] LoongArch: Split the function loongarch_cpu_cpp_builtins into two functions.

2025-02-13 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:c1af05f3d0320b5af98f27a76abfc9263bd42bb8 commit r15-7522-gc1af05f3d0320b5af98f27a76abfc9263bd42bb8 Author: Lulu Cheng Date: Tue Feb 11 20:05:13 2025 +0800 LoongArch: Split the function loongarch_cpu_cpp_builtins into two functions. Split the implementation of

[gcc r15-7521] LoongArch: Move the function loongarch_register_pragmas to loongarch-c.cc.

2025-02-13 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:46ce50b44e3d06f103c9136bc052a7354e07cfca commit r15-7521-g46ce50b44e3d06f103c9136bc052a7354e07cfca Author: Lulu Cheng Date: Wed Feb 12 09:57:02 2025 +0800 LoongArch: Move the function loongarch_register_pragmas to loongarch-c.cc. gcc/ChangeLog:

[gcc r15-7523] LoongArch: After setting the compilation options, update the predefined macros.

2025-02-13 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:753306bbaebb4a56ee8dde893e14dbd9e5269df6 commit r15-7523-g753306bbaebb4a56ee8dde893e14dbd9e5269df6 Author: Lulu Cheng Date: Tue Feb 11 20:36:17 2025 +0800 LoongArch: After setting the compilation options, update the predefined macros. PR target/11882

[gcc r15-7524] LoongArch: When -mfpu=none, '__loongarch_frecipe' shouldn't be defined [PR118843].

2025-02-13 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:ee579b7c257468b9032ab4583ec455fa871d4428 commit r15-7524-gee579b7c257468b9032ab4583ec455fa871d4428 Author: Lulu Cheng Date: Wed Feb 12 11:50:50 2025 +0800 LoongArch: When -mfpu=none, '__loongarch_frecipe' shouldn't be defined [PR118843]. PR target/11

[gcc r15-7525] LoongArch: Adjust the cost of ADDRESS_REG_REG.

2025-02-13 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:7c50f95421b6de50e4f40773558d0072eafb2365 commit r15-7525-g7c50f95421b6de50e4f40773558d0072eafb2365 Author: Lulu Cheng Date: Tue Dec 10 20:59:22 2024 +0800 LoongArch: Adjust the cost of ADDRESS_REG_REG. After changing this cost from 1 to 3, the performance of

[gcc r14-11316] LoongArch: When -mfpu=none, '__loongarch_frecipe' shouldn't be defined [PR118843].

2025-02-16 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:889fb66025cef4e434cc60e35add9f7406e38db7 commit r14-11316-g889fb66025cef4e434cc60e35add9f7406e38db7 Author: Lulu Cheng Date: Wed Feb 12 11:50:50 2025 +0800 LoongArch: When -mfpu=none, '__loongarch_frecipe' shouldn't be defined [PR118843]. PR target/1

[gcc r14-11321] LoongArch: Fix the issue of function jump out of range caused by crtbeginS.o [PR118844].

2025-02-20 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:9ffecde121af883b60bbe60d00425036bc873048 commit r14-11321-g9ffecde121af883b60bbe60d00425036bc873048 Author: Lulu Cheng Date: Wed Feb 12 14:29:58 2025 +0800 LoongArch: Fix the issue of function jump out of range caused by crtbeginS.o [PR118844]. Due to the pr

[gcc r15-7920] LoongArch: testsuite: Fix gcc.dg/vect/slp-26.c.

2025-03-09 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:62a6a53766ba46ada1112472b71d4ea21411ea39 commit r15-7920-g62a6a53766ba46ada1112472b71d4ea21411ea39 Author: Lulu Cheng Date: Mon Mar 3 17:09:10 2025 +0800 LoongArch: testsuite: Fix gcc.dg/vect/slp-26.c. After d34cda720988674bcf8a24267c9e1ec61335d6de, what was

[gcc r15-7918] LoongArch: testsuite: Fix pr112325.c and pr117888-1.c.

2025-03-09 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:671702b29f252b417810b7a1dc7506f096339577 commit r15-7918-g671702b29f252b417810b7a1dc7506f096339577 Author: Lulu Cheng Date: Mon Mar 3 16:52:43 2025 +0800 LoongArch: testsuite: Fix pr112325.c and pr117888-1.c. By default, vectorization is not enabled on LoongA

[gcc r15-7919] LoongArch: testsuite: Fix gcc.dg/vect/bb-slp-77.c.

2025-03-09 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:546567367a9d5c4ff3f1f416b55cf168153d03c7 commit r15-7919-g546567367a9d5c4ff3f1f416b55cf168153d03c7 Author: Lulu Cheng Date: Mon Mar 3 16:58:28 2025 +0800 LoongArch: testsuite: Fix gcc.dg/vect/bb-slp-77.c. The issue is the same as 12383255fe4e82c31f5e42c72a8fb

[gcc r15-8962] LoongArch: Support Q suffix for __float128.

2025-03-26 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:7c8da04c412ed4f54596f10434aa46592d000fbf commit r15-8962-g7c8da04c412ed4f54596f10434aa46592d000fbf Author: Lulu Cheng Date: Sat Mar 22 14:37:01 2025 +0800 LoongArch: Support Q suffix for __float128. In r14-3635 supports `__float128`, but does not support the

[gcc r14-11456] LoongArch: Support Q suffix for __float128.

2025-03-27 Thread LuluCheng via Gcc-cvs
https://gcc.gnu.org/g:243e634f5bee3912685756f31d3648df73fa6938 commit r14-11456-g243e634f5bee3912685756f31d3648df73fa6938 Author: Lulu Cheng Date: Sat Mar 22 14:37:01 2025 +0800 LoongArch: Support Q suffix for __float128. In r14-3635 supports `__float128`, but does not support the