Skip to content

Commit

Permalink
tests/fpu: Add tests for fdiv and fre with denormalized operands
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
paulusmack committed Feb 7, 2024
1 parent 5195467 commit 7b86bf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/fpu/fpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1210,6 +1210,10 @@ struct divvals {
{ 0xbff0000000000000, 0x3ff0000000000000, 0xbff0000000000000 },
{ 0x4000000000000000, 0x4008000000000000, 0x3fe5555555555555 },
{ 0xc01fff0007ffffff, 0xc03ffffffdffffbf, 0x3fcfff0009fff041 },
{ 0x0010000000000000, 0x0018000000000000, 0x3fe5555555555555 },
{ 0x0008000000000000, 0x0018000000000000, 0x3fd5555555555555 },
{ 0x0010000000000000, 0x0000c00000000000, 0x4035555555555555 },
{ 0x0004000000000000, 0x0000300000000000, 0x4035555555555555 },
};

int test17(long arg)
Expand Down Expand Up @@ -1251,6 +1255,9 @@ struct recipvals {
{ 0xbff0000000000000, 0xbfeff00400000000 },
{ 0x4008000000000000, 0x3fd54e3800000000 },
{ 0xc03ffffffdffffbf, 0xbfa0040000000000 },
{ 0x0008100000000000, 0x7fdfb0c400000000 },
{ 0x0004080000000000, 0x7fefb0c400000000 },
{ 0x0002040000000000, 0x7ff0000000000000 },
};

int test18(long arg)
Expand Down
Binary file modified tests/test_fpu.bin
Binary file not shown.

0 comments on commit 7b86bf8

Please sign in to comment.