fix: Update the llvm-project with memref.subview fold fix to fix slice extraction with negative strides

This commit is contained in:
Quentin Bourgerie
2022-08-08 16:58:35 +02:00
parent 534e683055
commit 80f36c14de
2 changed files with 16 additions and 1 deletions

View File

@@ -91,6 +91,21 @@ tests:
- tensor: [0, 2, 4, 6, 8]
shape: [1,5]
---
description: extract_slice_negative_stride
program: |
func.func @main(%arg0: tensor<3x!FHE.eint<5>>) -> tensor<3x!FHE.eint<5>> {
%0 = tensor.extract_slice %arg0[2] [3] [-1] : tensor<3x!FHE.eint<5>> to tensor<3x!FHE.eint<5>>
return %0 : tensor<3x!FHE.eint<5>>
}
tests:
- inputs:
- tensor: [1, 2, 3]
shape: [3]
width: 8
outputs:
- tensor: [3, 2, 1]
shape: [3]
---
description: insert_slice
program: |
func.func @main(%t0: tensor<2x10x!FHE.eint<6>>, %t1: tensor<2x2x!FHE.eint<6>>) -> tensor<2x10x!FHE.eint<6>> {