diff options
| author | Jacques Pienaar <jpienaar@google.com> | 2019-05-08 12:11:10 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-05-10 19:24:14 -0700 |
| commit | a1b24a0e0851fda5bc11be945c4a60356c6cf2fb (patch) | |
| tree | da857935655d6816b7f11b93edec05885f36a424 /mlir/test/Transforms/Vectorize | |
| parent | ce4fa9f65270e98fc953f409439eb0256558364c (diff) | |
| download | bcm5719-llvm-a1b24a0e0851fda5bc11be945c4a60356c6cf2fb.tar.gz bcm5719-llvm-a1b24a0e0851fda5bc11be945c4a60356c6cf2fb.zip | |
Verify that attribute type and constant op return type matches.
--
PiperOrigin-RevId: 247263129
Diffstat (limited to 'mlir/test/Transforms/Vectorize')
| -rw-r--r-- | mlir/test/Transforms/Vectorize/vector_utils.mlir | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/test/Transforms/Vectorize/vector_utils.mlir b/mlir/test/Transforms/Vectorize/vector_utils.mlir index ceb295b3784..cec36504af2 100644 --- a/mlir/test/Transforms/Vectorize/vector_utils.mlir +++ b/mlir/test/Transforms/Vectorize/vector_utils.mlir @@ -17,7 +17,7 @@ func @vector_add_2d(%arg0: index, %arg1: index) -> f32 { // CHECK:matched: {{.*}} constant splat{{.*}} with shape ratio: 1, 3, 7, 2, 1 %cst_a = constant splat<vector<1x3x7x8x8xf32>, 1.000000e+00> : vector<1x3x7x8x8xf32> // CHECK-NOT:matched: {{.*}} constant splat{{.*}} with shape ratio: 1, 3, 7, 1{{.*}} - %cst_b = constant splat<vector<1x3x7x4x4xf32>, 1.000000e+00> : vector<1x3x7x8x8xf32> + %cst_b = constant splat<vector<1x3x7x4x4xf32>, 1.000000e+00> : vector<1x3x7x4x4xf32> // TEST-3x4x5x8:matched: {{.*}} constant splat{{.*}} with shape ratio: 3, 2, 1, 4 %cst_c = constant splat<vector<3x4x5x8xf32>, 1.000000e+00> : vector<3x4x5x8xf32> // TEST-3x4x4x8-NOT:matched: {{.*}} constant splat{{.*}} with shape ratio{{.*}} @@ -34,4 +34,4 @@ func @vector_add_2d(%arg0: index, %arg1: index) -> f32 { %c42 = constant 42 : index %9 = load %2[%c7, %c42] : memref<?x?xf32> return %9 : f32 -}
\ No newline at end of file +} |

