| 37 | } |
| 38 | |
| 39 | TEST_CASE(const_add) |
| 40 | { |
| 41 | migraphx::module m1; |
| 42 | auto one = m1.add_literal(1); |
| 43 | auto two = m1.add_literal(2); |
| 44 | auto sum = m1.add_instruction(migraphx::make_op("add"), one, two); |
| 45 | m1.add_instruction(non_const_pass_op{}, sum); |
| 46 | run_pass(m1); |
| 47 | |
| 48 | migraphx::module m2; |
| 49 | auto total = m2.add_literal(3); |
| 50 | m2.add_instruction(non_const_pass_op{}, total); |
| 51 | EXPECT(m1 == m2); |
| 52 | } |
| 53 | |
| 54 | TEST_CASE(const_add_parameter) |
| 55 | { |
nothing calls this directly
no test coverage detected