| 286 | public ::testing::WithParamInterface<DivS32Params> {}; |
| 287 | |
| 288 | XLA_TEST_P(DivS32Test, DivideTwoScalarsS32) { |
| 289 | DivS32Params p = GetParam(); |
| 290 | XlaBuilder builder(TestName()); |
| 291 | Div(ConstantR0<int32>(&builder, p.dividend), |
| 292 | ConstantR0<int32>(&builder, p.divisor)); |
| 293 | |
| 294 | ComputeAndCompareR0<int32>(&builder, p.quotient, {}); |
| 295 | } |
| 296 | |
| 297 | XLA_TEST_P(DivS32Test, RemainderTwoScalarsS32) { |
| 298 | DivS32Params p = GetParam(); |