你好,
请问28004x CLA 的浮点数指令在什么情况下会发生溢出情况?
已测试的情况:
1. 1/0会产生上溢, LVF= 1 ,结果是+Inf
2.用+Inf 去做加减计算,结果是+Inf,LVF = 0
我想知道具体在什么情况下LUF,LVF会置1?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你好,
请问28004x CLA 的浮点数指令在什么情况下会发生溢出情况?
已测试的情况:
1. 1/0会产生上溢, LVF= 1 ,结果是+Inf
2.用+Inf 去做加减计算,结果是+Inf,LVF = 0
我想知道具体在什么情况下LUF,LVF会置1?
你好,
我在28004x的TRM中发现有这样的描述:
The MSTF register flags are modified as follows:
• LUF = 1 if MADDF32 generates an underflow condition.
• LVF = 1 if MADDF32 generates an overflow condition.
我在调试的时候使用+-∞(0x7F800000和0xFF800000)这两个数和另外的数去进行加法操作,结果显示+Inf和-Inf。
但是MSTF中LUF和LVF并没有置1,
请问手册上说的上下溢出是在什么情况下发生的?
谢谢!