Skip to content
Snippets Groups Projects
Commit 6ae74240 authored by Raymond Toy's avatar Raymond Toy
Browse files

Give up trying to get the operands if we don't know what the FP

operation was.

This shows up when fdlibm_setexception signals an exception. It seems
to set the exception bits directly instead of trying to do the
operation. This was confusing get-fp-operands.
parent 1626be46
No related branches found
No related tags found
No related merge requests found
......@@ -1445,6 +1445,9 @@
;; operands, if we can.
(multiple-value-bind (fop format rd rs1 rs2)
(get-fp-operation scp)
(unless fop
;; Give up if we don't know the operation
(return-from get-fp-operands (values nil (list nil nil))))
(let ((traps (logand (ldb float-exceptions-byte modes)
(ldb float-traps-byte modes)))
(fs1 (and fop rs1 (sigcontext-float-register scp rs1 format)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment