Comments (2)
In the documentation (both Chinese and English) those instructions are said to match the behavior of IEEE 754-2008
maxNum
andminNum
operations.IEEE 754-2008 says if one operand of those operations is a signaling NaN, the execution should signal and produce a quiet NaN. For example, according to IEEE 754-2008, the result of
maxNum(sNaN, 1.0)
should beqNaN
.OTOH, the test on Loongson 3A5000 shows the instructions signals for
sNaN
, but returns another, non-NaN operand instead of aqNaN
. For example,fmax.s $f0, $f0, $f1
puts1.0f
into$f0
when$f0
containssNaN
and$f1
contains1.0f
. This does not match IEEE 754-2008, but matches the behavior of LLVM minnum/maxnum intrinsics.IMO the documentation should be updated to show the difference. I'm not sure if the descriptions for other floating-point instructions need to be updated as well.
Can you give me a test case?
from loongarch-documentation.
Sorry, it seems I misprogramed the test and get the false result from compiler optimization...
By using inline assembly directly the issue gone.
from loongarch-documentation.
Related Issues (20)
- 关于可靠的新旧世界 ELF 文件标记 HOT 43
- 部分指令编码域重名 HOT 7
- movcf2gr指令行为描述 HOT 1
- Please amend the english version of ABI with a full description for the deatails HOT 2
- 缺失的指令 missing instructions HOT 17
- Wrong translation of LU52I.D pseudocode HOT 1
- glib2 构建失败 HOT 11
- 关于gcc预定义宏 HOT 4
- ambiguous corner cases in calling convention regarding zero-length arrays HOT 3
- 去除未使用且无用的重定位类型: R_LARCH_ADD24 + R_LARCH_SUB24 HOT 4
- 支持LDC编译器 HOT 6
- 现在是否已经支持 Freepascal (codetyphon) 进行交叉编译? HOT 8
- 我已经加拿大出来了windows上用的loongarch64-linux-gnu-g++ 13的交叉工具链。 HOT 5
- A typo error HOT 1
- Procedure Calling Convention的目录结构不合理 HOT 1
- ABI文档中没有syscall寄存器约定 HOT 6
- Proposal: 操作原生宽度(GRLen)的指令助记符别名 HOT 2
- New world的glibc符号问题 HOT 4
- triple里的-gnu和-gnuf64现在关系是如何 HOT 4
- 龙芯虚拟化指令手册什么时候能出
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loongarch-documentation.