[PATCH] RISC-V: Correct the mode that is causing the program to fail for XTheadCondMov
Xi Ruoyao
xry111@xry111.site
Sun Jan 19 13:14:00 GMT 2025
On Sun, 2025-01-19 at 20:42 +0800, Jin Ma wrote:
/* snip */
> diff --git a/gcc/testsuite/gcc.target/riscv/xtheadcondmov-bug.c b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-bug.c
> new file mode 100644
> index 000000000000..33658b863514
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/riscv/xtheadcondmov-bug.c
> @@ -0,0 +1,12 @@
> +/* { dg-do compile { target { rv64 } } } */
> +/* { dg-options "-march=rv64gc_xtheadcondmov -mabi=lp64d -O2" } */
> +
> +__attribute__((noinline, noclone)) long long int
The attributes are useless as nothing is calling the function in the
tests.
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
More information about the Gcc-patches
mailing list