The unique e4m3 nan encoding is SNaN for Arm.

Signed-off-by: Richard Henderson <[email protected]>
---
 target/arm/cpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/arm/cpu.c b/target/arm/cpu.c
index 4ea076fe4b..ffe0f6bd09 100644
--- a/target/arm/cpu.c
+++ b/target/arm/cpu.c
@@ -313,6 +313,7 @@ static void arm_init_fp_status(float_status *s, bool ah, 
bool fz, bool dn)
     } else {
         arm_set_default_fp_behaviours(s);
     }
+    set_float_e4m3_nan_is_snan(true, s);
     set_flush_to_zero(fz, s);
     set_flush_inputs_to_zero(fz, s);
     set_default_nan_mode(dn, s);
-- 
2.43.0


Reply via email to