http://sourceware.org/bugzilla/show_bug.cgi?id=12915

           Summary: mips64-linux-as aborts with assertion error building a
                    Linux/MIPS kernel
           Product: binutils
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassig...@sources.redhat.com
        ReportedBy: r...@linux-mips.org


Created attachment 5810
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5810
Test case extracted from kernel code.

A minimal test case extracted from the kernel code is attached as genex.s. 
Failure sympthom is the following assertion:

genex.s: Assembler messages:
genex.s:5: Internal error!
Assertion failure in append_insn at ../../gas/config/tc-mips.c line 2867.

To reproduce:

 o Using binutils with target mips64-linux, mipsel-linux, mips64el-linux or
   mips-linux:
   mips{,64}{,el}-linux-as -mabi=32 -o genex.o genex.s

 o Using mips-linux or mipsel-linux no -mabi=32 is needed:
   mips-linux-as -o genex.o genex.s
   mipsel-linux-as -o genex.o genex.s
   mips64-linux and mips64el-linux will not trigger the issue without -mabi=32.

The destination register being used in the last two lines has to be the same
for both lines to trigger the bug, that is $28 here.  If both lines to not use
the same destination register, as will not throw the assertion.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to