Any way to compile with ARMv8.1+ instructions?

For aarch64 it seems like from the assembly code, compare and swap functions would be compiled into multiple RISC instructions. Some processors like Ampere Altra use Neoverse N1 cores that support ARMv8.2 instruction set, and have CISC instructions cas, casa, casl and casal.

Is there any way I can compile binaries taking advantage of those instructions?

Never mind I just need to compile the code with flag as follows

RUSTFLAGS="-C target-cpu=neoverse-n1" cargo build --release

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.