https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110665
Bug ID: 110665 Summary: RISC-V do not preserve vector registers in interrupt handler Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: lehua.ding at rivai dot ai Target Milestone: --- When an interrupt handler uses vector registers or calls other functions, the handler needs to preserve the content in vector registers like GP or FP registers. Currently, the GCC fully ignores the existence of vector registers for this case even using -march=rv64gcv option. Issue on Compiler Explorer: https://godbolt.org/z/nTGzr4o5P