FEX-Emu / FEX-Emu/FEX

FLD_Const ignores FCW rounding control

Open
#5,898 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
8k
Forks
351
Avg merge
12h 31m
Merged PRs (30d)
102

Description

`FLD_Const` always loads the round-to-nearest value regardless of the FPU's current rounding mode in FCW.
This affects the instructions: `FLDPI`, `FLDL2E`, `FLDL2T`, `FLDLG2`, `FLDLN2`.

Contributor guide

Open the contributing guide

Research direction

Start by locating the implementation of `FLD_Const` and the handling of the FPU control word (FCW). Check behavior for `FLDPI`, `FLDL2E`, `FLDL2T`, `FLDLG2`, and `FLDLN2` under each relevant rounding mode; done means these instructions honor the current FCW rounding control instead of always using round-to-nearest.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.