https://bugs.freedesktop.org/show_bug.cgi?id=66175

          Priority: medium
            Bug ID: 66175
          Assignee: mesa-dev@lists.freedesktop.org
           Summary: R600/SI: SETCC for v2i32/v4i32 triggers LLVM assertion
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: awa...@gmail.com
          Hardware: Other
            Status: NEW
           Version: git
         Component: Drivers/Gallium/radeonsi
           Product: Mesa

Created attachment 81429
  --> https://bugs.freedesktop.org/attachment.cgi?id=81429&action=edit
SETCC Test case

When performing vector comparisons, the R600/SI back-end is tripping over an
LLVM assertion due to what appears to be an incorrectly lowered SETCC
operation:

llc:
/home/awatry/src/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp:522:
llvm::SDValue llvm::DAGTypeLegalizer::PromoteIntRes_SETCC(llvm::SDNode*):
Assertion `SVT.isVector() == N->getOperand(0).getValueType().isVector() &&
"Vector compare must return a vector result!"' failed.

Test case is attached.

Note that this test case just verifies that the assembly compiles and doesn't
presume any specific expected output.

SETCC will need to be fixed in order for a number of OpenCL comparisons and
piglit tests to pass.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to