@@ -26,6 +26,9 @@ func TestArithmeticExtra(t *testing.T) {
2626 {"MulWithMode(0, Inf)" , PositiveZero , PositiveInfinity , ModeIEEEArithmetic , RoundNearestEven , QuietNaN , false , "MulWithMode" },
2727 {"MulWithMode(NaN, 1)" , QuietNaN , FromFloat32 (1 ), ModeExactArithmetic , RoundNearestEven , 0 , true , "MulWithMode" },
2828 {"MulWithMode(Fast)" , FromFloat32 (2 ), FromFloat32 (3 ), ModeFastArithmetic , RoundNearestEven , FromFloat32 (6 ), false , "MulWithMode" },
29+ {"MulWithMode(Inf, 0)" , PositiveInfinity , PositiveZero , ModeIEEEArithmetic , RoundNearestEven , QuietNaN , false , "MulWithMode" },
30+ {"MulWithMode(Inf, 1)" , PositiveInfinity , FromFloat32 (1 ), ModeIEEEArithmetic , RoundNearestEven , PositiveInfinity , false , "MulWithMode" },
31+ {"MulWithMode(Inf, -1)" , PositiveInfinity , FromFloat32 (- 1 ), ModeIEEEArithmetic , RoundNearestEven , NegativeInfinity , false , "MulWithMode" },
2932
3033 // DivWithMode
3134 {"DivWithMode(6, 3)" , FromFloat32 (6 ), FromFloat32 (3 ), ModeIEEEArithmetic , RoundNearestEven , FromFloat32 (2 ), false , "DivWithMode" },
@@ -34,6 +37,7 @@ func TestArithmeticExtra(t *testing.T) {
3437 {"DivWithMode(Inf, Inf)" , PositiveInfinity , PositiveInfinity , ModeIEEEArithmetic , RoundNearestEven , QuietNaN , false , "DivWithMode" },
3538 {"DivWithMode(NaN, 1)" , QuietNaN , FromFloat32 (1 ), ModeExactArithmetic , RoundNearestEven , 0 , true , "DivWithMode" },
3639 {"DivWithMode(Fast)" , FromFloat32 (6 ), FromFloat32 (3 ), ModeFastArithmetic , RoundNearestEven , FromFloat32 (2 ), false , "DivWithMode" },
40+ {"DivWithMode(1, Inf)" , FromFloat32 (1 ), PositiveInfinity , ModeIEEEArithmetic , RoundNearestEven , PositiveZero , false , "DivWithMode" },
3741 }
3842
3943 for _ , tc := range testCases {
0 commit comments