Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and extend frsp test #23

Merged
merged 4 commits into from
Sep 5, 2022
Merged

Fix and extend frsp test #23

merged 4 commits into from
Sep 5, 2022

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented Dec 16, 2014

It's been a while so I'm not sure why I didn't notice this. The SNaN needs to turn into a QNaN.

All subtests succeed on real hardware. 0x380fffffffffffff -> 0x0000000000000000 currently fails in Dolphin.

@Tilka Tilka changed the title Fix frsp test Fix and extend frsp test Dec 17, 2014
Copy link
Member

@JosJuice JosJuice left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but please rebase. (I suppose this is going to be really annoying to rebase since the code has been reformatted 🙁)

cputest/frsp.cpp Outdated
@@ -15,9 +15,11 @@ static void FrspTest()
{0x000fffffffffffff, 0x0000000000000000, 0b000}, // largest double subnormal
{0x3690000000000000, 0x0000000000000000, 0b000}, // largest number rounded to zero
{0x3690000000000001, 0x36a0000000000000, 0b000}, // smallest positive single subnormal
{0x380fffffe0000001, 0x0000000000000000, 0b110}, // boundary of architecture-dependent behavior in non-IEEE mode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I think it would make more sense to test this using the largest single subnormal (and equivalently the smallest single subnormal below), assuming that that does indeed produce the same result.

No idea why I didn't notice this before.
"f" is for singles, "d" is for doubles. Doesn't seem to matter much
though.
@JosJuice JosJuice merged commit 4f15200 into dolphin-emu:master Sep 5, 2022
@Tilka Tilka deleted the fix_frsp branch September 5, 2022 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants