[mlir][tosa] Table did not apply offset before extract on i8 input
authorRob Suderman <rob.suderman@gmail.com>
Wed, 25 Aug 2021 01:14:47 +0000 (18:14 -0700)
committerRob Suderman <rob.suderman@gmail.com>
Wed, 25 Aug 2021 01:52:33 +0000 (18:52 -0700)
commit4ef1770abd11dff3f892a32eb461a2e5f72f9078
tree088d9d63500d611e2708dc96ddbba5cbfc77d195
parenta9cff97f94be6778265d225cb9f71db1fefed2d0
[mlir][tosa] Table did not apply offset before extract on i8 input

Lowering to table was incorrect as it did not apply a 128 offset before
extracting the value from the table. Fixed and correct tensor length on input
table.

Reviewed By: NatashaKnk

Differential Revision: https://reviews.llvm.org/D108436
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
mlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir