How to handle divide by zero exception in FPU

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to handle divide by zero exception in FPU

1,321 次查看
Kiran_Gowda
Contributor I

Hi All,

I'm working on S32k358 .I see the exception bit is set in the FPSCR for division by zero exception but i don't see any exception handler  is being triggered on that. I could see the vdiv.f32 instruction. 

Thank you

0 项奖励
回复
3 回复数

1,278 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, It apparently should not trigger an exception, it is rather expected to test status register after operation.

davidtosenovjan_1-1675178321029.png

 

 

0 项奖励
回复

1,273 次查看
Kiran_Gowda
Contributor I
Hi,
Is there any sample code to return value from the divide by zero operation upon checking the status register. Please share

Thanks
0 项奖励
回复

1,233 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Unfortunately I don't have example code to share. I is just needed to test FPSCR register after operation.

0 项奖励
回复