您能否在链接的文档中指定一个示例部分,其中调用了这些 16 位浮点操作?我看到定义了很多 16 位整数运算。你用的是ARM的编译器还是gcc?您是在谈论 SIMD 还是 NEON?
“与 ARMv6 架构中的 32 位宽 SIMD 相比,NEON™ 技术建立在 SIMD 的概念之上,具有一个专用模块,可提供 128 位宽的矢量运算。”
编辑:
我在没有编译器投诉的情况下尝试了这个:
int myfun ( int a)
{
__fp16 b;
b=a+1;
return(b+1);
}
使用这个命令行:
arm-none-linux-gnueabi-gcc -S -mcpu=mpcore -mfp16-format=ieee -mfpu=neon-fp16 simd.c
使用 codesourcery lite 2011.03
arm-none-linux-gnueabi-gcc --version
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2011.03-41) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.