<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - LLVM crashes when returning large values by-val an building for sparc64"
   href="https://bugs.llvm.org/show_bug.cgi?id=48699">48699</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLVM crashes when returning large values by-val an building for sparc64
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Backend: Sparc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>simonas+llvm.org@kazlauskas.me
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Code

    define i2048 @test() unnamed_addr {
    start:
      ret i2048 0
    }

built with `llc -mtriple=sparc64` will fail with the following assertion:

PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: /opt/compiler-explorer/clang-trunk/bin/llc -o
./output.s -mtriple=sparc64 <source>
1.      Running pass 'Function Pass Manager' on module '<source>'.
2.      Running pass 'Remove dead machine instructions' on function '@test'
<snip>
 #4 0x000055c9d8d52d74 (anonymous
namespace)::DeadMachineInstructionElim::eliminateDeadMI(llvm::MachineFunction&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x1bc1d74)
 #5 0x000055c9d8d53313 (anonymous
namespace)::DeadMachineInstructionElim::runOnMachineFunction(llvm::MachineFunction&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x1bc2313)
 #6 0x000055c9d8e5e2c8
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x1ccd2c8)
 #7 0x000055c9d92355e7 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x20a45e7)
 #8 0x000055c9d9235d01 llvm::FPPassManager::runOnModule(llvm::Module&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x20a4d01)
 #9 0x000055c9d923507f llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x20a407f)
#10 0x000055c9d79aea4a compileModule(char**, llvm::LLVMContext&)
(/opt/compiler-explorer/clang-trunk/bin/llc+0x81da4a)
#11 0x000055c9d78ee267 main
(/opt/compiler-explorer/clang-trunk/bin/llc+0x75d267)
<snip></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>