aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorLehua Ding <lehua.ding@rivai.ai>2023-10-17 17:48:25 +0800
committerLehua Ding <lehua.ding@rivai.ai>2023-10-17 18:00:28 +0800
commit5bb79a427adb57d4a55690f29d4f49e42d68c2a5 (patch)
treed8da18c2b84e62dd36c45763322e3302873d681f /gcc/testsuite
parentc4e773b4cc56ffb87ec4dd679416115d0c5b81ef (diff)
downloadgcc-5bb79a427adb57d4a55690f29d4f49e42d68c2a5.zip
gcc-5bb79a427adb57d4a55690f29d4f49e42d68c2a5.tar.gz
gcc-5bb79a427adb57d4a55690f29d4f49e42d68c2a5.tar.bz2
RISC-V: Fix failed testcase when use -cmodel=medany
This little path fix a failed testcase when use -cmodel=medany. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/base/cpymem-1.c: Split check.
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c12
1 files changed, 11 insertions, 1 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 9bb4904..549d664 100644
--- a/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c
+++ b/gcc/testsuite/gcc.target/riscv/rvv/base/cpymem-1.c
@@ -50,7 +50,7 @@ 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:
+** f3: { target { any-opts "-mcmodel=medlow" } }
** 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\)
@@ -61,6 +61,16 @@ void f2 (__INT32_TYPE__* a, __INT32_TYPE__* b, int l)
** ret
*/
+/*
+** f3: { target { any-opts "-mcmodel=medany" } }
+** lla\s+[ta][0-7],a_b
+** vsetivli\s+zero,16,e32,m4,ta,ma
+** vle32.v\s+v\d+,0\([ta][0-7]\)
+** lla\s+[ta][0-7],a_a
+** vse32\.v\s+v\d+,0\([ta][0-7]\)
+** ret
+*/
+
extern struct { __INT32_TYPE__ a[16]; } a_a, a_b;
void f3 ()