[llvm] [RISCV] Support isel for Zacas for 2*XLen types. (PR #77814)

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 08:13:28 PST 2024


jyknight wrote:

> There is no 128-bit atomic load for RISC-V currently defined

Perhaps the simplest path forward to address that would be to define an extension which has no instructions, but simply specifies that a 128-bit vector load or store is a single memory operation. E.g.
```
	vsetivli	zero, 2, e64, m1 # (optionally ta, ma)
	vle64.v	v8, (a0)
	vse64.v	v8, (a1)
```
That'd be analogous to how it's done on x86/aarch64.

https://github.com/llvm/llvm-project/pull/77814


More information about the llvm-commits mailing list