Re: Calling Convention for Vector ?
"戎杰杰
Hi,
We met some problems as your mention also.
Consider some code will want args in vector regs, we study from SVE
vregs layout and config our RISCV vregs layout as following:
| v0-7 | v0-7 | Temporaries | Caller |
| v8-15 | v8-15 | Function arguments/return values | Caller |
| v16-23 | v16-23 | Function arguments | Caller |
| v24-31 | v24-31 | Saved register | Callee |
This configuration will fix like v0 mask reg,
or we can use 16 registers for two arguments in 8 LMUL.
We can make a draft to improving call convention with args in vector :)
--Jojo
在 2019年12月28日 +0800 AM12:12,Jim Wilson <jimw@...>,写道: On Thu, Dec 26, 2019 at 2:01 PM Earl Killian <earl.killian@...> wrote: |
|