Uh oh!
There was an error while loading. Please reload this page.
fuzz: Add host operations for testing x87_f80 - #35
Conversation
be3ca92 to
8a4fc55Comparetgross35
commented
Apr 14, 2026
I think this should be reasonable but I don't know this area especially well @quaternic or @programmerjake would you mind checking that the x87 asm is sane? |
| // We need to use fnstenv since there is no way to load only the status word. We | ||
| // take two copies and modify one. | ||
| "fnstenv [{orig_env}]", | ||
| "fnstenv [{env}]", |
There was a problem hiding this comment.
why store the env twice? can't you just read from orig_env and write the new env to env?
There was a problem hiding this comment.
ah, writing twice is easier since the env has a whole bunch of stuff other than status and control words.
There was a problem hiding this comment.
Yeah, as far as I know there is no way to set the status register directly without storing the whole thing. But now that I think about it, fstcw followed by fnclex should do all we need, testing...
programmerjake
commented
Apr 14, 2026
the x87 assembly looks good to me. |
No description provided.