Skip to content

[SPIR-V] Implement matrix comparisons #8796

Description

@farzonl

The offload test suite is adding matrix comparison tests. unfortunately DXC did not implement theses for SPIR-V
so we need to track the lack of support

# executed command: 'E:\project\DXC_Release_BUILD\bin\dxc.exe' -spirv -fspv-target-env=vulkan1.3 -T cs_6_0 -Fo 'E:\project\llvm-build\tools\OffloadTest\test\vk\Basic\Matrix\Output\matrix_comparison_operators.uint32.test.tmp.o' 'E:\project\llvm-build\tools\OffloadTest\test\vk\Basic\Matrix\Output\matrix_comparison_operators.uint32.test.tmp/source.hlsl'
# .---command stderr------------
# | E:\project\llvm-build\tools\OffloadTest\test\vk\Basic\Matrix\Output\matrix_comparison_operators.uint32.test.tmp/source.hlsl:13:20: error: binary operator '<' over matrix type unimplemented
# |   bool2x3 UintLT = UintLTLHS < UintLTRHS;
# |                    ^~~~~~~~~~~~~~~~~~~~~
# | E:\project\llvm-build\tools\OffloadTest\test\vk\Basic\Matrix\Output\matrix_comparison_operators.uint32.test.tmp/source.hlsl:14:20: error: binary operator '>' over matrix type unimplemented
# |   bool4x2 UintGT = UintGTLHS > UintGTRHS;
# |                    ^~~~~~~~~~~~~~~~~~~~~
# | E:\project\llvm-build\tools\OffloadTest\test\vk\Basic\Matrix\Output\matrix_comparison_operators.uint32.test.tmp/source.hlsl:15:20: error: binary operator '<=' over matrix type unimplemented
# |   bool3x3 UintLE = UintLELHS <= UintLERHS;
# |                    ^~~~~~~~~~~~~~~~~~~~~~
# | E:\project\llvm-build\tools\OffloadTest\test\vk\Basic\Matrix\Output\matrix_comparison_operators.uint32.test.tmp/source.hlsl:16:20: error: binary operator '>=' over matrix type unimplemented
# |   bool3x4 UintGE = UintGELHS >= UintGERHS;
# |                    ^~~~~~~~~~~~~~~~~~~~~~
# | E:\project\llvm-build\tools\OffloadTest\test\vk\Basic\Matrix\Output\matrix_comparison_operators.uint32.test.tmp/source.hlsl:17:20: error: binary operator '==' over matrix type unimplemented
# |   bool4x3 UintEQ = UintEQLHS == UintEQRHS;
# |                    ^~~~~~~~~~~~~~~~~~~~~~
# | E:\project\llvm-build\tools\OffloadTest\test\vk\Basic\Matrix\Output\matrix_comparison_operators.uint32.test.tmp/source.hlsl:18:20: error: binary operator '!=' over matrix type unimplemented
# |   bool4x4 UintNE = UintNELHS != UintNERHS;
# |                    ^~~~~~~~~~~~~~~~~~~~~~
# | 
# `-----------------------------
# error: command failed with exit status: 0x80004005

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triagespirvWork related to SPIR-V

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions