[llvm-bugs] [Bug 42128] New: [s390x] "invalid use of length addressing"/"invalid operand for instruction" with integrated assembler

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 4 17:34:48 PDT 2019


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

            Bug ID: 42128
           Summary: [s390x] "invalid use of length addressing"/"invalid
                    operand for instruction" with integrated assembler
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mh+llvm at glandium.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

These errors happen when building Firefox with clang and targeting s390x:

[ 553s] 6:08.70 In file included from
/home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:194:
[ 553s] 6:08.70
/home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/xptcstubsdef.inc:2:1:
error: invalid use of length addressing
[ 553s] 6:08.70 STUB_ENTRY(4)
[ 553s] 6:08.70 ^
[ 553s] 6:08.70
/home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:167:9:
note: expanded from macro 'STUB_ENTRY'
[ 553s] 6:08.70 "lg %0,0(15)\n\t"
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 <inline asm>:1:13: note: instantiated into assembly here
[ 553s] 6:08.70 lg %r1,0(15)
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 In file included from
/home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:194:
[ 553s] 6:08.70
/home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/xptcstubsdef.inc:2:1:
error: invalid operand for instruction
[ 553s] 6:08.70 STUB_ENTRY(4)
[ 553s] 6:08.70 ^
[ 553s] 6:08.70
/home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:168:25:
note: expanded from macro 'STUB_ENTRY'
[ 553s] 6:08.70 "aghi %0,160\n\t"
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 <inline asm>:3:9: note: instantiated into assembly here
[ 553s] 6:08.70 stmg 3,6,0(%r14)
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 In file included from
/home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:194:
[ 553s] 6:08.70
/home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/xptcstubsdef.inc:2:1:
error: invalid operand for instruction
[ 553s] 6:08.70 STUB_ENTRY(4)
...

This builds fine with `-fno-integrated-as`.

-- 
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/20190605/71248e38/attachment.html>


More information about the llvm-bugs mailing list