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: unassignedb...@nondot.org Reporter: chris.dewhu...@lero.ie CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs