| 40 | } |
| 41 | |
| 42 | TEST_CASE(match_name1) |
| 43 | { |
| 44 | migraphx::module mm; |
| 45 | auto one = mm.add_literal(1); |
| 46 | auto two = mm.add_literal(2); |
| 47 | auto sum = mm.add_instruction(sum_op{}, one, two); |
| 48 | mm.add_instruction(pass_op{}, sum); |
| 49 | auto m = match::name("sum"); |
| 50 | auto r = find_match(mm, m); |
| 51 | EXPECT(r.result == sum); |
| 52 | } |
| 53 | |
| 54 | TEST_CASE(match_name2) |
| 55 | { |
nothing calls this directly
no test coverage detected