()
| 254 | |
| 255 | |
| 256 | def test_divide_by_zero(): |
| 257 | for test in [ |
| 258 | lambda lhs, rhs: tvm.tirx.floormod(lhs, rhs), |
| 259 | lambda lhs, rhs: tvm.tirx.floordiv(lhs, rhs), |
| 260 | lambda lhs, rhs: tvm.tirx.truncmod(lhs, rhs), |
| 261 | lambda lhs, rhs: tvm.tirx.truncdiv(lhs, rhs), |
| 262 | lambda lhs, rhs: tvm.tirx.div(lhs, rhs), |
| 263 | ]: |
| 264 | try: |
| 265 | test(tvm.tirx.const(5, "int32"), tvm.tirx.const(0, "int32")) |
| 266 | assert False |
| 267 | except RuntimeError: |
| 268 | pass |
| 269 | |
| 270 | |
| 271 | def test_infinity(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…