diff options
author | xuli <xuli1@eswincomputing.com> | 2023-12-18 07:10:24 +0000 |
---|---|---|
committer | xuli <xuli1@eswincomputing.com> | 2023-12-18 07:11:12 +0000 |
commit | 7b4d6734b87ed1002e24d8bf6d4fd1dfb4fda383 (patch) | |
tree | ac071c2c5720cb1e65da9a931f589ccb2935e054 | |
parent | ecedb59617555a7bec7dac8a3f15324e31e2604e (diff) | |
download | gcc-7b4d6734b87ed1002e24d8bf6d4fd1dfb4fda383.zip gcc-7b4d6734b87ed1002e24d8bf6d4fd1dfb4fda383.tar.gz gcc-7b4d6734b87ed1002e24d8bf6d4fd1dfb4fda383.tar.bz2 |
testsuite: Fix cpymem-1.c dump checks under different riscv-sim for RVV.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/base/cpymem-1.c: Fix checks.
-rw-r--r-- | gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c index 549d664..ccde757 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-additional-options "-O1" } */ +/* { dg-additional-options "-O1 -fno-schedule-insns -fno-schedule-insns2" } */ /* { dg-add-options riscv_v } */ /* { dg-final { check-function-bodies "**" "" } } */ @@ -50,11 +50,34 @@ void f2 (__INT32_TYPE__* a, __INT32_TYPE__* b, int l) Use extern here so that we get a known alignment, lest DATA_ALIGNMENT force us to make the scan pattern accomodate code for different alignments depending on word size. -** f3: { target { any-opts "-mcmodel=medlow" } } +** f3: { target { { any-opts "-mcmodel=medlow" } && { no-opts "-march=rv64gcv_zvl512b" "-march=rv64gcv_zvl1024b" "--param=riscv-autovec-lmul=dynamic" "--param=riscv-autovec-lmul=m2" "--param=riscv-autovec-lmul=m4" "--param=riscv-autovec-lmul=m8" "--param=riscv-autovec-preference=fixed-vlmax" } } } ** lui\s+[ta][0-7],%hi\(a_a\) +** addi\s+[ta][0-7],[ta][0-7],%lo\(a_a\) ** lui\s+[ta][0-7],%hi\(a_b\) ** addi\s+a4,[ta][0-7],%lo\(a_b\) -** vsetivli\s+zero,16,e32,m4,ta,ma +** vsetivli\s+zero,16,e32,m8,ta,ma +** vle32.v\s+v\d+,0\([ta][0-7]\) +** vse32\.v\s+v\d+,0\([ta][0-7]\) +** ret +*/ + +/* +** f3: { target { { any-opts "-mcmodel=medlow --param=riscv-autovec-preference=fixed-vlmax" "-mcmodel=medlow -march=rv64gcv_zvl512b --param=riscv-autovec-preference=fixed-vlmax" } && { no-opts "-march=rv64gcv_zvl1024b" } } } +** lui\s+[ta][0-7],%hi\(a_a\) +** lui\s+[ta][0-7],%hi\(a_b\) +** addi\s+[ta][0-7],[ta][0-7],%lo\(a_a\) +** addi\s+a4,[ta][0-7],%lo\(a_b\) +** vl(1|4|2)re32\.v\s+v\d+,0\([ta][0-7]\) +** vs(1|4|2)r\.v\s+v\d+,0\([ta][0-7]\) +** ret +*/ + +/* +** f3: { target { { any-opts "-mcmodel=medlow -march=rv64gcv_zvl1024b" "-mcmodel=medlow -march=rv64gcv_zvl512b" } && { no-opts "--param=riscv-autovec-preference=fixed-vlmax" } } } +** lui\s+[ta][0-7],%hi\(a_a\) +** lui\s+[ta][0-7],%hi\(a_b\) +** addi\s+a4,[ta][0-7],%lo\(a_b\) +** vsetivli\s+zero,16,e32,(m1|m4|mf2),ta,ma ** vle32.v\s+v\d+,0\([ta][0-7]\) ** addi\s+[ta][0-7],[ta][0-7],%lo\(a_a\) ** vse32\.v\s+v\d+,0\([ta][0-7]\) |