更新时间:2022-03-28 22:39:50
在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