[llvm-bugs] [Bug 51392] New: tools/llvm-mca/ARM/cortex-a57-carryover.s test fails with -m32 -march=znver2 -O2

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Aug 6 11:37:05 PDT 2021


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

            Bug ID: 51392
           Summary: tools/llvm-mca/ARM/cortex-a57-carryover.s test fails
                    with -m32 -march=znver2 -O2
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mgorny at gentoo.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
            Blocks: 51236

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
>>>>>>

--

********************


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=51236
[Bug 51236] [meta] 13.0.0 Release Blockers
-- 
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/20210806/939c2cf3/attachment-0001.html>


More information about the llvm-bugs mailing list