Skip to content
Snippets Groups Projects
Commit 49b2387b authored by chenxiaolong's avatar chenxiaolong Committed by Lulu Cheng
Browse files

LoongArch: testsuite:Fix FAIL in lasx-xvstelm.c file.

After implementing the cost model on the LoongArch architecture, the GCC
compiler code has this feature turned on by default, which causes the
lasx-xvstelm.c file test to fail. Through analysis, this test case can
generate vectorization instructions required for detection only after
disabling the functionality of the cost model with the "-fno-vect-cost-model"
compilation option.

gcc/testsuite/ChangeLog:

	* gcc.target/loongarch/vector/lasx/lasx-xvstelm.c:Add compile
	option "-fno-vect-cost-model" to dg-options.
parent cb666ded
No related branches found
No related tags found
No related merge requests found
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-options "-O3 -mlasx" } */ /* { dg-options "-O3 -mlasx -fno-vect-cost-model" } */
/* { dg-final { scan-assembler-times "xvstelm.w" 8} } */ /* { dg-final { scan-assembler-times "xvstelm.w" 8} } */
#define LEN 256 #define LEN 256
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment