Comments (3)
这两种情况正确结果都应该是负无穷0xff800000,NEMU的判断可能有问题
from nemu.
这两种情况正确结果都应该是负无穷0xff800000,NEMU的判断可能有问题
Hi 您好:我刚下载了2022.12.22版本,尝试运行了一下,这个问题还是存在的
from nemu.
fnmadd.s计算-(rs1rs2)-rs3
现在我们把rs2符号反向,rs3符号反向,变成(rs1(-rs2))+(-rs3)
构造新的fma操作数a=rs1,b=-rs2,c=-rs3,计算(ab)+c
a:0x4f057641
b:0xf0000000
c:0x7f057641
ab是不会舍入的,是否溢出要看(ab)+c整体的值
以下编码不考虑溢出:
(ab)=0xff857641,c=0x7f057641,(ab)是负数比负无穷还小,但是c是正数,
并且-2c=2(-c)=20xff057641=0xff857641=(ab),
所以(ab)+c=-c=0xff057641,
结果是精确的,和舍入模式也无关。
原先我回复溢出是我理解错了fnmadd.s,以为计算的-(rs1rs2)+rs3。
目前结论NEMU计算结果是正确的,也单独对南湖fudian里面的FCMA硬件模块进行了测试,结果和NEMU一致。问题还待进一步复现确定。。。
from nemu.
Related Issues (20)
- After Excuting WFI, SPIKE and NEMU Lose Synchronization HOT 6
- 当前NEMU中对异常V扩展指令的覆盖存在部分缺陷 HOT 2
- Compilation Failure When Enabling FPU_HOST
- NEMU Crashes When Enabling AC_HOST
- Compilation Failure When Using clang and Enabling RVB & PERF_OPT
- xstatus.vs=OFF, Permit Check
- NEMU does not trap when accessing unimplemented CSRs HOT 3
- Segmentation fault when running h264ref_sss with RVV agnostic policy enabled
- On exception handle, NEMU (as DUT) mismatch with Spike HOT 1
- Xvisor hangs when RVV is enabled HOT 1
- RISC-V toolchain used in CI is still GCC 10 HOT 1
- There is no gcpt_restore code in MASER HOT 1
- 请教一下关于chi版本仿真的一个问题 HOT 1
- Error when make HOT 8
- `make menuconfig` error HOT 5
- NEMU载入的BBL过大时出现的out of memory问题 HOT 2
- Compile Error HOT 8
- [Bug Report] `mie` register not implemented correctly HOT 1
- 南湖分支NEMU编译报错src/memory/paddr.c:502:12: error: 'result' may be used uninitialized in this function [-Werror=maybe-uninitialized' HOT 3
- `make riscv64-xs-ref_defconfig`出现报错‘result’ may be used uninitialized in this function 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 nemu.