File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -614,13 +614,24 @@ let test_simplify_concat_i32_symbol _ =
614614 let concated = Expr. concat d (Expr. concat c (Expr. concat b a)) in
615615 check concated x
616616
617+ let test_fp_nan_not_geffects _ =
618+ let open Infix in
619+ let ty = Ty. Ty_fp 32 in
620+ let x = symbol " x" ty in
621+ let y = symbol " y" ty in
622+ (* x != x makes isNaN(x) *)
623+ let expr = Expr. unop ty Not (Expr. relop ty Ge x y) in
624+ let expected = Expr. unop ty Not (Expr. relop ty Le y x) in
625+ check expr expected
626+
617627let test_simplify_concat =
618628 [ " test_simplify_concat_i32_i32" > :: test_simplify_concat_i32_i32
619629 ; " test_simplify_concat_i32_symbol" > :: test_simplify_concat_i32_symbol
620630 ]
621631
622632let test_simplify =
623633 [ " test_simplify_assoc" > :: test_simplify_assoc
634+ ; " test_fp_nan_not_geffects" > :: test_fp_nan_not_geffects
624635 ; " test_simplify_extract" > ::: test_simplify_extract
625636 ; " test_simplify_concat" > ::: test_simplify_concat
626637 ]
You can’t perform that action at this time.
0 commit comments