| // RUN: iree-run-mlir --target_backends=interpreter-bytecode %s --input_values="2x3xi32=[1 2 3 4 5 6]" --output_types=i | IreeFileCheck %s |
| // CHECK-LABEL: EXEC @pad |
| func @pad(%0: tensor<2x3xi32>) -> tensor<4x13xi32> |
| attributes { iree.module.export } { |
| %1 = constant dense<0> : tensor<i32> |
| %2 = "xla_hlo.pad"(%0, %1) {edge_padding_low = dense<[0, 1]> : tensor<2xi64>, edge_padding_high = dense<[1, 5]> : tensor<2xi64>, interior_padding = dense<[1, 2]> : tensor<2xi64>} : (tensor<2x3xi32>, tensor<i32>) -> tensor<4x13xi32> |
| return %2 : tensor<4x13xi32> |
| // CHECK-SAME: [0 1 0 0 2 0 0 3 0 0 0 0 0] |
| // CHECK-SAME: [0 0 0 0 0 0 0 0 0 0 0 0 0] |
| // CHECK-SAME: [0 4 0 0 5 0 0 6 0 0 0 0 0] |
| // CHECK-SAME: [0 0 0 0 0 0 0 0 0 0 0 0 0] |