@@ -1414,9 +1414,12 @@ func.func @select_fp32(%arg0: tensor<1x1x5x5xi1>, %arg1: tensor<1x12x5x5xf32>, %
1414
1414
1415
1415
// CHECK-LABEL: @test_custom_ops
1416
1416
func.func @test_custom_ops (%arg0: tensor <1 xf32 >, %arg1: tensor <1 xf32 >) -> () {
1417
+ // CHECK: linalg.generic
1418
+ // CHECK: math.sin
1417
1419
// CHECK: linalg.generic
1418
1420
// CHECK: math.atan2
1419
- %2 = " tosa.custom" (%arg0 , %arg1 ) <{config = " UNDEF" , identifier = " atan2" , implementation_attrs = " UNDEF" }> : (tensor <1 xf32 >, tensor <1 xf32 >) -> tensor <1 xf32 >
1421
+ %2 = " tosa.custom" (%arg0 ) <{config = " UNDEF" , identifier = " math.sin" , implementation_attrs = " linalg.generic" }> : (tensor <1 xf32 >) -> tensor <1 xf32 >
1422
+ %3 = " tosa.custom" (%arg0 , %arg1 ) <{config = " UNDEF" , identifier = " math.atan2" , implementation_attrs = " linalg.generic" }> : (tensor <1 xf32 >, tensor <1 xf32 >) -> tensor <1 xf32 >
1420
1423
1421
1424
return
1422
1425
}
@@ -1426,9 +1429,12 @@ func.func @test_custom_ops(%arg0: tensor<1xf32>, %arg1: tensor<1xf32>) -> () {
1426
1429
1427
1430
// CHECK-LABEL: @test_custom_ops_dyn
1428
1431
func.func @test_custom_ops_dyn (%arg0: tensor <?xf32 >, %arg1: tensor <?xf32 >) -> () {
1432
+ // CHECK: linalg.generic
1433
+ // CHECK: math.cos
1429
1434
// CHECK: linalg.generic
1430
1435
// CHECK: math.atan2
1431
- %2 = " tosa.custom" (%arg0 , %arg1 ) <{config = " UNDEF" , identifier = " atan2" , implementation_attrs = " UNDEF" }> : (tensor <?xf32 >, tensor <?xf32 >) -> tensor <?xf32 >
1436
+ %2 = " tosa.custom" (%arg0 ) <{config = " UNDEF" , identifier = " math.cos" , implementation_attrs = " linalg.generic" }> : (tensor <?xf32 >) -> tensor <?xf32 >
1437
+ %3 = " tosa.custom" (%arg0 , %arg1 ) <{config = " UNDEF" , identifier = " math.atan2" , implementation_attrs = " linalg.generic" }> : (tensor <?xf32 >, tensor <?xf32 >) -> tensor <?xf32 >
1432
1438
1433
1439
return
1434
1440
}
0 commit comments