Hi Pan,
This patch appears to be tripping up our postcommit for building linux
with vector https://github.com/patrick-rivos/gcc-postcommit-ci/issues/1325.
FAIL: gcc.target/riscv/rvv/autovec/binop/vec_sat_u_sub_zip-run.c
execution test
Looking at the logs, the test fails due to the __builtin_abort call when
d.x[k] != d.expect[k].
diff --git
a/gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vec_sat_binary_vx.h
b/gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vec_sat_binary_vx.h
new file mode 100644
index 00000000000..d238c6392de
--- /dev/null
+++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vec_sat_binary_vx.h
@@ -0,0 +1,22 @@
+#ifndef HAVE_DEFINED_VEC_SAT_BINARY_VX_H
+#define HAVE_DEFINED_VEC_SAT_BINARY_VX_H
+
+int
+main ()
+{
+ unsigned i, k;
+ T d;
+
+ for (i = 0; i < sizeof (DATA) / sizeof (DATA[0]); i++)
+ {
+ RUN_BINARY_VX (&d.x[N], d.b, N);
+
+ for (k = 0; k < N; k++)
+ if (d.x[k] != d.expect[k])
+ __builtin_abort ();
+ }
+
+ return 0;
+}
+
+#endif
I think you forgot to initialize d = data[i] in the loop?
Edwin