]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[PATCH] RISC-V: Add -fno-vect-cost-model to pr112773 testcase
authorPatrick O'Neill <patrick@rivosinc.com>
Fri, 15 Dec 2023 21:47:19 +0000 (14:47 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Fri, 15 Dec 2023 21:47:19 +0000 (14:47 -0700)
The testcase for pr112773 started passing after r14-6472-g8501edba91e
which was before the actual fix. This patch adds -fno-vect-cost-model
which prevents the testcase from passing due to the vls change.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/partial/pr112773.c: Add
-fno-vect-cost-model.

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/testsuite/gcc.target/riscv/rvv/autovec/partial/pr112773.c

index 5f7374b0040a8847404dfee4f1b8dbff4dd7e16c..57104c9ebec7ac8c3cd3184016b5f6ad3a688e8f 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-additional-options "-march=rv32gcv_zvl256b -mabi=ilp32d -O3" } */
+/* { dg-additional-options "-march=rv32gcv_zvl256b -mabi=ilp32d -O3 -fno-vect-cost-model" } */
 
 long long a;
 int b, c;