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

            Bug ID: 24095
           Summary: MIPS integrated assembler no longer supports backwards
                    branches in macros
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: MIPS
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Reduced test case:

.macro MACRO
0:

          lui    $t8, %hi(%neg(%gp_rel(0b))) 
.endm

foo:
   MACRO

Assembles to:

       0:       3c 18 00 00     lui     $24, 0
                0000000000000000:  R_MIPS_GPREL16/R_MIPS_SUB/R_MIPS_HI16       
$tmp00

This then causes undefined references to $tmp00 at link time.

This pattern is fairly common in assembly macros, and used to work...

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to