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: m...@dylanmckay.io
Reporter: tstel...@redhat.com
CC: llvm-bugs@lists.llvm.org, sguel...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs