[gcc r14-7084] RISC-V: Robostify dynamic lmul test
Lehua Ding
lhtin@gcc.gnu.org
Wed Jan 10 02:13:31 GMT 2024
https://gcc.gnu.org/g:cf4dcf83a7df7805186aca7db0595bbf59cd40eb
commit r14-7084-gcf4dcf83a7df7805186aca7db0595bbf59cd40eb
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Wed Jan 10 09:00:05 2024 +0800
RISC-V: Robostify dynamic lmul test
While working on refining the cost model, I notice this test will generate unexpected
scalar xor instructions if we don't tune cost model carefully.
Add more assembler to avoid future regression.
Committed.
gcc/testsuite/ChangeLog:
* gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-7.c: Add assembler-not check.
Diff:
---
gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-7.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-7.c b/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-7.c
index 87e963edc47..38cbefbe625 100644
--- a/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-7.c
+++ b/gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-7.c
@@ -22,3 +22,4 @@ x264_pixel_8x8 (unsigned char *pix1, unsigned char *pix2, int i_stride_pix2)
}
/* { dg-final { scan-assembler {e32,m2} } } */
+/* { dg-final { scan-assembler-not {xor} } } */
More information about the Gcc-cvs
mailing list