FCVTZS D0,D0真的是AARCH64 SIMD指令吗?

发布于 2025-02-08 14:39:43 字数 379 浏览 1 评论 0原文

GCC似乎将fcvtzs d0,d0作为simd指令进行了分类,但是clang没有。谁是对的?

$ cat toto.s
    fcvtzs d0,d0
$ aarch64-linux-gnu-gcc-10 -mcpu=cortex-a53+nosimd -c toto.s
toto.s: Assembler messages:
toto.s:1: Error: selected processor does not support `fcvtzs d0,d0'
$ clang -target aarch64-linux-gnu -mcpu=cortex-a53+nosimd -c toto.s

gcc seems to classify fcvtzs d0,d0 as as SIMD instruction, but clang does not. Who is right?

$ cat toto.s
    fcvtzs d0,d0
$ aarch64-linux-gnu-gcc-10 -mcpu=cortex-a53+nosimd -c toto.s
toto.s: Assembler messages:
toto.s:1: Error: selected processor does not support `fcvtzs d0,d0'
$ clang -target aarch64-linux-gnu -mcpu=cortex-a53+nosimd -c toto.s

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拧巴小姐 2025-02-15 14:39:44

您可以将指令分类为实践中的FP和高级SIMD,始终可以一起使用。

我会阅读 fcvtzs的武器定义作为支持GCC对fcvtzs(读取和写作d寄存器)的SISD形式的分类为需要+SIMD的指令。推理将是指令的编码类(标量单位和双重精节)以及共享的伪代码调用checkfpadvsimdenabled64

我说这个问题有点神秘,因为checkfpadvsimdenabled64的体系结构伪代码的定义看起来像这样!

AArch64.CheckFPAdvSIMDEnabled()
    AArch64.CheckFPEnabled();

一种技术性;您的错误消息来自汇编器而不是GCC;直到最近也不同意这两个工具。

You’re far in to the arcane classification of instructions as practically speaking FP and Advanced SIMD are always available together.

I would read the Arm definition of FCVTZS as supporting GCC’S classification of the SISD form of FCVTZS (reading and writing D registers) as an instruction that requires +simd. The reasoning would be the encoding class of the instruction (Scalar single-precision and double-precision) and the shared pseudo-code calling CheckFPAdvSIMDEnabled64.

I say the question gets a bit arcane, because the architecture pseudocode definition of CheckFPAdvSIMDEnabled64 looks like this!

AArch64.CheckFPAdvSIMDEnabled()
    AArch64.CheckFPEnabled();

One technicality; your error message comes from the assembler not GCC; until recently these two tools also disagreed with each other.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文