Skip to content

[mlir][spirv] ARM Tensor constants fail to validate #152012

@kuhar

Description

@kuhar

The test llvm-project/mlir/test/Target/SPIRV/constant.mlir fails to validate with spirv-val:

/home/jakub/llvm/build/bin/mlir-translate --no-implicit-module --serialize-spirv /home/jakub/llvm/llvm-project/mlir/test/Target/SPIRV/constant.mlir | /home/jakub/llvm/build/./bin/spirv-v
al                                                                                                                                                                                        
# executed command: /home/jakub/llvm/build/bin/mlir-translate --no-implicit-module --serialize-spirv /home/jakub/llvm/llvm-project/mlir/test/Target/SPIRV/constant.mlir                   
# executed command: /home/jakub/llvm/build/./bin/spirv-val                                                                                                                                
# .---command stderr------------                                                                                                                                                          
# | error: line 191: OpConstantComposite Constituent count does not match the shape of Result Type <id> '226[%226]' along its outermost dimension, expected 2 but got 6.                  
# |   %231 = OpConstantComposite %226 %uint_2 %uint_2 %uint_2 %uint_2 %uint_2 %uint_2                                                                                                     
# |                                                                                                                                                                                       
# `-----------------------------                                                                                                                                                          
# error: command failed with exit status: 1

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions