Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-25 Thread Chenghui Pan
Thanks! I will try to improve it. On Mon, 2023-09-25 at 17:44 +0800, Xi Ruoyao wrote: > On Mon, 2023-09-25 at 17:38 +0800, Chenghui Pan wrote: > > Hi! > > > > After some attemptions, I think we still ne to check > > "check_effective_target_loongarch_sx" in vect_int_mod. I wrote some > > temp

Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-25 Thread Xi Ruoyao
On Mon, 2023-09-25 at 17:38 +0800, Chenghui Pan wrote: > Hi! > > After some attemptions, I think we still ne to check > "check_effective_target_loongarch_sx" in vect_int_mod. I wrote some > temp logics in gcc/testsuite/lib/target-supports.exp like this: > > diff --git

Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-25 Thread Chenghui Pan
Hi! After some attemptions, I think we still ne to check "check_effective_target_loongarch_sx" in vect_int_mod. I wrote some temp logics in gcc/testsuite/lib/target-supports.exp like this: diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index

Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-24 Thread Chenghui Pan
Thanks for your advice! I will check it out and submit a new version of patch. On Sun, 2023-09-24 at 18:05 +0800, Xi Ruoyao wrote: > On Wed, 2023-09-20 at 09:15 +0800, Chenghui Pan wrote: > > LoongArch failed to pass gcc.dg/pr104992.c with -mlsx and -mlasx. > > This test uses > > different

Re: [PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-24 Thread Xi Ruoyao
On Wed, 2023-09-20 at 09:15 +0800, Chenghui Pan wrote: > LoongArch failed to pass gcc.dg/pr104992.c with -mlsx and -mlasx. This test > uses > different dg-final directives depending on the vect_int_mod result, LoongArch > SX/ASX supports this operations but corresponding description is not

[PATCH v1] Update check_effective_target_vect_int_mod according to LoongArch SX/ASX capabilities.

2023-09-19 Thread Chenghui Pan
LoongArch failed to pass gcc.dg/pr104992.c with -mlsx and -mlasx. This test uses different dg-final directives depending on the vect_int_mod result, LoongArch SX/ASX supports this operations but corresponding description is not defined in target-supports.exp. This patch solves the problem above