]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: testsuite: Fix vmul test expectation and fix -ffast-math.
authorRobin Dapp <rdapp@ventanamicro.com>
Tue, 20 Jun 2023 07:12:41 +0000 (09:12 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Tue, 20 Jun 2023 13:04:09 +0000 (15:04 +0200)
I forgot to check for vfmul in the multiplication tests as well as
some -ffast-math arguments.  Fix this.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/autovec/binop/vadd-run.c: Add
-ffast-math.
* gcc.target/riscv/rvv/autovec/binop/vadd-zvfh-run.c: Dito.
* gcc.target/riscv/rvv/autovec/binop/vrem-rv32gcv.c: Remove
-ffast-math
* gcc.target/riscv/rvv/autovec/binop/vmul-rv32gcv.c: Check for
vfmul.
* gcc.target/riscv/rvv/autovec/binop/vmul-rv64gcv.c: Dito.

gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vadd-run.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vadd-zvfh-run.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vmul-rv32gcv.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vmul-rv64gcv.c
gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vrem-rv32gcv.c

index 5db0a3c79be9f080753e84d951ddbdcf63a05894..12fb952118e529561e373380df927f357657dccb 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run { target { riscv_vector } } } */
-/* { dg-additional-options "-std=c99 -fno-vect-cost-model --param=riscv-autovec-preference=fixed-vlmax" } */
+/* { dg-additional-options "-std=c99 -fno-vect-cost-model --param=riscv-autovec-preference=fixed-vlmax -ffast-math" } */
 
 #include "vadd-template.h"
 
index 1a11fe0fb3061e0cc30d5a0bc4d8f13b3f66acd2..30b467f50c7b2f38e8807d4d1a89c59081c4a2c1 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do run { target { riscv_vector && riscv_zvfh_hw } } } */
-/* { dg-additional-options "-std=c99 -fno-vect-cost-model --param=riscv-autovec-preference=fixed-vlmax" } */
+/* { dg-additional-options "-std=c99 -fno-vect-cost-model --param=riscv-autovec-preference=fixed-vlmax -ffast-math" } */
 
 #include "vadd-template.h"
 
index 1900c21121b12165f686e0bd77db44c9c0cd20c2..7d3dfade0eec5806b571e34de8d9ce12666631c2 100644 (file)
@@ -4,3 +4,4 @@
 #include "vmul-template.h"
 
 /* { dg-final { scan-assembler-times {\tvmul\.vv} 16 } } */
+/* { dg-final { scan-assembler-times {\tvfmul\.vv} 6 } } */
index c8508bcc1f7ff87384da1dd26f0032895adf8357..a549d6f7be414cf001090fe8c0f002bf47a81e45 100644 (file)
@@ -4,3 +4,4 @@
 #include "vmul-template.h"
 
 /* { dg-final { scan-assembler-times {\tvmul\.vv} 16 } } */
+/* { dg-final { scan-assembler-times {\tvfmul\.vv} 6 } } */
index c6fe79e37b8b9a389511f45e42bb7595f56e830f..86607d037771859d5e5964e55abfe872ff708610 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-additional-options "-std=c99 -fno-vect-cost-model -march=rv32gcv -mabi=ilp32d --param=riscv-autovec-preference=fixed-vlmax -ffast-math" } */
+/* { dg-additional-options "-std=c99 -fno-vect-cost-model -march=rv32gcv -mabi=ilp32d --param=riscv-autovec-preference=fixed-vlmax" } */
 
 #include "vrem-template.h"