Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
j2kun committed Mar 8, 2024
1 parent ff64893 commit 0adf17d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 909 deletions.
4 changes: 3 additions & 1 deletion tests/simd/box_blur_4x4.mlir
@@ -1,10 +1,12 @@
// RUN: heir-opt --secretize=entry-function=box_blur --wrap-generic --canonicalize --cse \
// RUN: --full-loop-unroll \
// RUN: --insert-rotate \
// RUN: --insert-rotate --cse --canonicalize --collapse-insertion-chains --canonicalize --cse \
// RUN: %s | FileCheck %s

module {
// CHECK-LABEL: @box_blur
// CHECK-NOT: tensor.extract
// CHECK-COUNT-7: tensor_ext.rotate
func.func @box_blur(%arg0: tensor<16xi16> {secret.secret}) -> tensor<16xi16> {
%c16 = arith.constant 16 : index
%c4 = arith.constant 4 : index
Expand Down
188 changes: 0 additions & 188 deletions tests/simd/box_blur_4x4_unrolled.mlir

This file was deleted.

10 changes: 6 additions & 4 deletions tests/simd/box_blur_64x64.mlir
@@ -1,10 +1,12 @@
// RUN: heir-opt --secretize=entry-function=box_blur --wrap-generic --canonicalize --cse \
// RUN: --affine-loop-unroll=unroll-factor=2 \
// RUN: --affine-loop-unroll=unroll-factor=2 --canonicalize --cse \
// RUN: --affine-loop-unroll=unroll-factor=64 --canonicalize --cse \
// RUN: < %s
// RUN: --full-loop-unroll \
// RUN: --insert-rotate --cse --canonicalize --collapse-insertion-chains --canonicalize --cse \
// RUN: %s | FileCheck %s

module {
// CHECK-LABEL: @box_blur
// CHECK-NOT: tensor.extract
// CHECK-COUNT-7: tensor_ext.rotate
func.func @box_blur(%arg0: tensor<4096xi16> {secret.secret}) -> tensor<4096xi16> {
%c4096 = arith.constant 4096 : index
%c64 = arith.constant 64 : index
Expand Down

0 comments on commit 0adf17d

Please sign in to comment.