32 lines · plain
1// RUN: llvm-mc -filetype=obj -triple mips-unknown-linux -mattr=+micromips < %s \2// RUN: | llvm-readobj --sections --section-data - \3// RUN: | FileCheck -check-prefix=DATA %s4//5// XFAIL: *6 7// Please merge this with relocation.s when it passes.8 9// baz is equivalent to .text+0x8 and is recorded in the symbol table as such10// but it refers to microMIPS code so the addend must indicate this in the LSB.11// The addend must therefore be 0x9.12// DATA-LABEL: Name: .text13// DATA: SectionData (14// DATA: 0000: 30430000 30420009 30430000 3042000915 addiu $2, $3, %got(baz)16 addiu $2, $2, %lo(baz)17baz:18 addiu $2, $3, %hi(baz)19 addiu $2, $2, %lo(baz)20 21// DATA-LABEL: Name: .data22// DATA: SectionData (23 .data24 .word 025bar:26 .word 127// baz is equivalent to .text+0x8 and is recorded in the symbol table as such28// but it refers to microMIPS code so the addend must indicate this in the LSB.29// The addend must therefore be 0x9.30// DATA: 0000: 00000000 00000001 0000000931 .gpword baz32