On 4/3/25 12:32 AM, Jin Ma wrote:
XThreadVector does not support the vsext/vzext instructions; however,
due to the reuse of RVV optimizations, it may generate these instructions
in certain cases. To prevent the error "Unknown opcode 'th.vsext.vf2',"
we should disable these patterns.

gcc/ChangeLog:

        * config/riscv/vector.md: Disable vsext/vzext for XTheadVector.

gcc/testsuite/ChangeLog:

        * gcc.target/riscv/rvv/xtheadvector/vsext.c: New test.
        * gcc.target/riscv/rvv/xtheadvector/vzext.c: New test.
Mostly OK. The only change we might need is removal of the "-save-temps" option in the testcase. I don't think that should be necessary, we certainly don't need it with other scan-asm tests.

OK with the -save-temps removed.

jeff

Reply via email to