Fix testsuite for m68k (Closes: #478548).

Bug-Debian: http://bugs.debian.org/478548
Last-Update: 2013-02-02

Gbp-Pq: Name 10_fix_testsuite_for_m68k
This commit is contained in:
Michael Schmitz 2022-05-14 03:32:49 +08:00 committed by openKylinBot
parent bab8645cca
commit 2790ffc0ee
2 changed files with 6 additions and 0 deletions

View File

@ -305,9 +305,11 @@ testBitPatterns()
testBits (floatPosQNan1(),
"0 11111 1111111111", // nan
"0 11111111 11111111110000000000000"); // nan
#ifndef __mc68000__
testBits (floatPosQNan2(),
"0 11111 1010101010", // nan
"0 11111111 10101010100000000000000"); // nan
#endif
//
// Numbers close to -1.0
@ -473,12 +475,14 @@ testBitPatterns()
testBits (floatNegInfinity(),
"1 11111 0000000000", // +infinity
"1 11111111 00000000000000000000000"); // +infinity
#ifndef __mc68000__
testBits (floatNegQNan1(),
"1 11111 1111111111", // nan
"1 11111111 11111111110000000000000"); // nan
testBits (floatNegQNan2(),
"1 11111 1010101010", // nan
"1 11111111 10101010100000000000000"); // nan
#endif
cout << "ok\n\n" << flush;
}

View File

@ -156,8 +156,10 @@ testClassification()
testClass (-0.3f, 1, 1, 0, 0, 0, 0, 1);
testClass (-HALF_MAX, 1, 1, 0, 0, 0, 0, 1);
testClass (floatNegInfinity(), 0, 0, 0, 0, 0, 1, 1);
#ifndef __mc68000__
testClass (floatNegQNan1(), 0, 0, 0, 0, 1, 0, 1);
testClass (floatNegQNan2(), 0, 0, 0, 0, 1, 0, 1);
#endif
cout << "\n";