]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Robostify dynamic lmul test
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Wed, 10 Jan 2024 01:00:05 +0000 (09:00 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Wed, 10 Jan 2024 02:12:29 +0000 (10:12 +0800)
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.

gcc/testsuite/gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul2-7.c

index 87e963edc4793ee19404ace5c24370f3b35bbe3c..38cbefbe6255e83b43a681d0b9726dc0d91e9a9f 100644 (file)
@@ -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} } } */