[llvm-bugs] [Bug 27161] New: Lowering long vector returns fails.

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Mar 31 08:47:04 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27161

            Bug ID: 27161
           Summary: Lowering long vector returns fails.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: Sparc
          Assignee: unassignedbugs at nondot.org
          Reporter: chris.dewhurst at lero.ie
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

To recreae: Compile the following with 
  llc -march=sparc <filename>.ll

define <8 x i8> @fun8_2(<8 x i8> %a, <8 x i8> %b) {
entry:
  %and = and <8 x i8> %b, %a
  ret <8 x i8> %and
}

Expected result: Compiles well, returning some results on the stack as there
are too many results (8 in the vector) to return in output registers.

Actual result: Fails. Tries to return all results in output registers and runs
out of registers.

Important part of stack trace:

8  libLLVMCodeGen.so      0x00007f4ce1f5f47d
llvm::CCState::AnalyzeReturn(llvm::SmallVectorImpl<llvm::ISD::OutputArg>
const&, bool (*)(unsigned int, llvm::MVT, llvm::MVT,
llvm::CCValAssign::LocInfo, llvm::ISD::ArgFlagsTy, llvm::CCState&)) + 683
9  libLLVMSparcCodeGen.so 0x00007f4ce40bcda4
llvm::SparcTargetLowering::LowerReturn_32(llvm::SDValue, unsigned int, bool,
llvm::SmallVectorImpl<llvm::ISD::OutputArg> const&,
llvm::SmallVectorImpl<llvm::SDValue> const&, llvm::SDLoc, llvm::SelectionDAG&)
const + 222

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160331/81d33f77/attachment-0001.html>


More information about the llvm-bugs mailing list