Fix tst_qfloat16 run time error for INTEGRITY (tested on sa8115)
- Bounds::has_denorm returns denorm_indeterminate. It is expected behavior for GHS compiler. Task-number: QTBUG-99123 Pick-to: 6.2 6.3 Change-Id: I8402c541093a73623b6dc507012d98e565789cff Reviewed-by: Kimmo Ollila <kimmo.ollila@qt.io> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>bb10
parent
b013f94086
commit
d336fdd393
|
|
@ -560,7 +560,12 @@ void tst_qfloat16::properties()
|
|||
QVERIFY(Bounds::has_infinity);
|
||||
QVERIFY(Bounds::has_quiet_NaN);
|
||||
QVERIFY(Bounds::has_signaling_NaN);
|
||||
#if !defined(Q_CC_GHS)
|
||||
QCOMPARE(Bounds::has_denorm, std::denorm_present);
|
||||
#else
|
||||
// For GHS compiler the "denorm_indeterminite" is the expected return value.
|
||||
QCOMPARE(Bounds::has_denorm, std::denorm_indeterminate);
|
||||
#endif // Q_CC_GHS
|
||||
QCOMPARE(Bounds::round_style, std::round_to_nearest);
|
||||
QCOMPARE(Bounds::radix, 2);
|
||||
// Untested: has_denorm_loss
|
||||
|
|
|
|||
Loading…
Reference in New Issue