如何在ARM64内联装配中使用多向量类型?
在具有GCC的ARM64编译器中,__ ASM __
,如何使用多矢量霓虹灯类型(例如uint8x16x4_t
)?
uint8x16x4_t Meow()
{
uint8x16x4_t result;
__asm__(
"meow %0"
: "=w"(result));
return result;
}
这将导致以下组件输出:
meow v0
有没有办法将其成为类似的东西?:
meow { v0.16b - v3.16b }
甚至更好,请参考各个部分。
In ARM64 compilers with GCC-like __asm__
, how could I make use of multi-vector NEON types like uint8x16x4_t
?
uint8x16x4_t Meow()
{
uint8x16x4_t result;
__asm__(
"meow %0"
: "=w"(result));
return result;
}
That results in the following assembly output:
meow v0
Is there a way to get it to be something like this?:
meow { v0.16b - v3.16b }
Or even better, refer to the individual parts somehow.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须手动执行此操作,但是可以使用
t
,u
和v
修饰符这样做。并且可以从字面上指定后缀。以下代码:给我:
You'll have to do it manually, but you can do so with the
T
,U
andV
modifiers. And suffixes can just be specified literally. The following code:gives me: