[Mesa-dev] [Bug 66175] New: R600/SI: SETCC for v2i32/v4i32 triggers LLVM assertion

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jun 25 15:01:13 PDT 2013


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

          Priority: medium
            Bug ID: 66175
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: R600/SI: SETCC for v2i32/v4i32 triggers LLVM assertion
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: awatry at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130625/697249ae/attachment-0001.html>


More information about the mesa-dev mailing list