<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-mca] crash when simulating AArch64 'falkor'"
   href="https://bugs.llvm.org/show_bug.cgi?id=37293">37293</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[llvm-mca] crash when simulating AArch64 'falkor'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>spatel+llvm@rotateright.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I was hoping to compare llvm-mca's analysis with the comments in bug 37629, but
something bad happens when I specify 'falkor' as the CPU. But there's no
problem with 'kryo' apparently, so I suspect that llvm-mca itself needs to do
something to fix/avoid this problem in the CPU model? This is built from trunk
r331140.

$ cat 37629.s
       fmov    d1, #0.50000000
       fmul    d0, d0, d1
       fneg    d1, d0
       stp     d0, d1, [x0]

$ ./llvm-mca 37629.s -mtriple=aarch64 -mcpu=falkor
Assertion failed: (isReady()), function selectNextInSequence, file
llvm/tools/llvm-mca/Scheduler.cpp, line 28.
Stack dump:
0.      Program arguments: ./llvm-mca 37629.s -mtriple=aarch64 -mcpu=falkor 
0  llvm-mca                 0x00000001022ed228
llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1  llvm-mca                 0x00000001022ed8a6 SignalHandler(int) + 422
2  libsystem_platform.dylib 0x00007fff7bd3cf5a _sigtramp + 26
3  libsystem_platform.dylib 0x00007ffeedcf61b0 _sigtramp + 1912312432
4  libsystem_c.dylib        0x00007fff7bada1ae abort + 127
5  libsystem_c.dylib        0x00007fff7baa21ac basename_r + 0
6  llvm-mca                 0x0000000101f1ee80
mca::ResourceManager::selectPipe(unsigned long long) + 448
7  llvm-mca                 0x0000000101f203c7
mca::ResourceManager::issueInstruction(mca::InstrDesc const&,
llvm::SmallVectorImpl<std::__1::pair<std::__1::pair<unsigned long long,
unsigned long long>, double> >&) + 215
8  llvm-mca                 0x0000000101f22327
mca::Scheduler::issueInstructionImpl(unsigned int, mca::Instruction&,
llvm::SmallVectorImpl<std::__1::pair<std::__1::pair<unsigned long long,
unsigned long long>, double> >&) + 39
9  llvm-mca                 0x0000000101f217a2
mca::Scheduler::issueInstruction(unsigned int, mca::Instruction&) + 210
10 llvm-mca                 0x0000000101f0e0fa
mca::DispatchUnit::dispatch(unsigned int, mca::Instruction*,
llvm::MCSubtargetInfo const&) + 506
11 llvm-mca                 0x0000000101f0abe1 mca::Backend::runCycle(unsigned
int) + 545</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>