更新时间:2022-03-28 22:40:26
关于在 Android 中使用 ARMv8 的文档不是很好,但是对于您的具体问题,本文档中已经很好地回答了:
The documentation on using ARMv8 in Android is not very good, but for your specific questions, they're answered quite well in this document:
回答您的具体问题:
mov R0, #42
vdup.8 D0, R0
变成
mov w0,#42
dup v0.8b,w0
和
vld4.8 {d0-d3}, [r0]!
变成
ld4 {v0.8b,v1.8b,v2.8b,v3.8b},[x0],#32