Skip to content

[tosa] failed to legalize operation 'arith.extsi' #19402

Open
@lundong

Description

@lundong

What happened?

When we compile some mlir models via iree-compile, it returned the error messages like:

:0: error: loc("main"): 'arith.extsi' op operand #0 must be signless-fixed-width-integer-like, but got 'ui8'
:0: note: loc("main"): see current operation: %946 = "arith.extsi"(%arg423) : (ui8) -> i32

It has occured since iree-3.1.0rc20241206. Previous IREE revisions were okay.

Steps to reproduce your issue

  1. Download the attached mobilenet_v1.mlir (which is converted from tflite model by iree-import-tflite)
  2. iree-compile --iree-hal-target-backends=llvm-cpu path/to/mobilenet_v1.mlir
  3. See error
    :0: error: loc("main"): 'arith.extsi' op operand #0 must be signless-fixed-width-integer-like, but got 'ui8'
    :0: note: loc("main"): see current operation: %946 = "arith.extsi"(%arg423) : (ui8) -> i32
    mobilenet_v1.zip

What component(s) does this issue relate to?

Compiler

Version information

iree-3.1.0rc20241206.

Additional context

This issue has occured since iree-3.1.0rc20241206. Previous IREE revisions were okay.

Metadata

Metadata

Labels

bug 🐞Something isn't workingintegrations/tosaTensor Operator Set Architecture (TOSA) import, tests, etc.regressionMarks regression of feature, compatibility or performance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions