[llvm-bugs] [Bug 43384] New: AVR llvm-mc tests fail on big-endian (s390x) hosts
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 20 11:08:57 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43384
Bug ID: 43384
Summary: AVR llvm-mc tests fail on big-endian (s390x) hosts
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: AVR
Assignee: me at dylanmckay.io
Reporter: tstellar at redhat.com
CC: llvm-bugs at lists.llvm.org, sguelton at redhat.com
The AVR llvm-mc tests are failing on s390x, because the encoding information
for the instructions are missing. The root cause is the byte swapping that the
AVRMCCodeEmitter::emitInstruction() function does.
Why is it necessary to swap the bytes like this?
Here is an example failure:
********************
FAIL: LLVM :: MC/AVR/syntax-reg-pair.s (22490 of 32518)
******************** TEST 'LLVM :: MC/AVR/syntax-reg-pair.s' FAILED
********************
Script:
--
: 'RUN: at line 1'; /root/llvm-project/llvm-build/bin/llvm-mc -triple avr
-mattr=addsubiw -show-encoding <
/root/llvm-project/llvm/test/MC/AVR/syntax-reg-pair.s |
/root/llvm-project/llvm-build/bin/FileCheck
/root/llvm-project/llvm/test/MC/AVR/syntax-reg-pair.s
--
Exit Code: 1
Command Output (stderr):
--
/root/llvm-project/llvm/test/MC/AVR/syntax-reg-pair.s:10:10: error: CHECK:
expected string not found in input
; CHECK: sbiw r24, 1 ; encoding: [0x01,0x97]
^
<stdin>:1:2: note: scanning from here
.text
^
<stdin>:5:2: note: possible intended match here
sbiw r24, 1 ; encoding: [0x00,0x00]
^
--
--
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/20190920/8f0c317d/attachment.html>
More information about the llvm-bugs
mailing list