<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 - tools/llvm-mca/ARM/cortex-a57-carryover.s test fails with -m32 -march=znver2 -O2"
   href="https://bugs.llvm.org/show_bug.cgi?id=51392">51392</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>tools/llvm-mca/ARM/cortex-a57-carryover.s test fails with -m32 -march=znver2 -O2
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </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>mgorny@gentoo.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>51236
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When building 32-bit version of LLVM with -march=znver2 -O2 (-Os doesn't seem
to be affected) with gcc 11.2.0, I'm getttng the following test failure.  It
seems that the numbers are rounded incorrectly.

i.e. instead of:

  10 4.6 1.4 2.0 <total>

I'm getting:

  10 4.5 1.4 1.9 <total>


Full output:

FAIL: LLVM :: tools/llvm-mca/ARM/cortex-a57-carryover.s (10 of 15)
******************** TEST 'LLVM :: tools/llvm-mca/ARM/cortex-a57-carryover.s'
FAILED ********************
Script:
--
: 'RUN: at line 2';   /home/mgorny/git/llvm-project/build/bin/llvm-mca
-mtriple=thumbv7-gnueabihf-linux -mcpu=cortex-a57 -timeline -iterations=10 <
/home/mgorny/git/llvm-project/llvm/test/tools/llvm-mca/ARM/cortex-a57-carryover.s
| /home/mgorny/git/llvm-project/build/bin/FileCheck
/home/mgorny/git/llvm-project/llvm/test/tools/llvm-mca/ARM/cortex-a57-carryover.s
--
Exit Code: 1

Command Output (stderr):
--
+ : 'RUN: at line 2'
+ /home/mgorny/git/llvm-project/build/bin/llvm-mca
-mtriple=thumbv7-gnueabihf-linux -mcpu=cortex-a57 -timeline -iterations=10
+ /home/mgorny/git/llvm-project/build/bin/FileCheck
/home/mgorny/git/llvm-project/llvm/test/tools/llvm-mca/ARM/cortex-a57-carryover.s
/home/mgorny/git/llvm-project/llvm/test/tools/llvm-mca/ARM/cortex-a57-carryover.s:85:15:
error: CHECK-NEXT: expected string not found in input
# CHECK-NEXT: 10 4.6 1.4 2.0 <total>
              ^
<stdin>:80:22: note: scanning from here
1. 10 3.6 0.0 3.9 nop
                     ^
<stdin>:81:2: note: possible intended match here
 10 4.5 1.4 1.9 <total>
 ^

Input file: <stdin>
Check file:
/home/mgorny/git/llvm-project/llvm/test/tools/llvm-mca/ARM/cortex-a57-carryover.s

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          75: [2]: Average time spent waiting in a scheduler's queue while
ready 
          76: [3]: Average time elapsed from WB until retire stage 
          77:  
          78:  [0] [1] [2] [3] 
          79: 0. 10 5.5 2.7 0.0 pop {r3, r4, r5, r6, r7, pc} 
          80: 1. 10 3.6 0.0 3.9 nop 
next:85'0                          X error: no match found
          81:  10 4.5 1.4 1.9 <total> 
next:85'0     ~~~~~~~~~~~~~~~~~~~~~~~~
next:85'1      ?                       possible intended match
<span class="quote">>>>>>></span >

--

********************</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [meta] 13.0.0 Release Blockers"
   href="https://bugs.llvm.org/show_bug.cgi?id=51236">Bug 51236</a>] [meta] 13.0.0 Release Blockers
              </li>
          </ul>
        </div>
        <br>

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

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