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 %s
4//
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 such
10// 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: .text
13// DATA:       SectionData (
14// DATA:       0000: 30430000 30420009 30430000 30420009
15        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: .data
22// DATA:       SectionData (
23	.data
24	.word 0
25bar:
26	.word 1
27// baz is equivalent to .text+0x8 and is recorded in the symbol table as such
28// 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 00000009
31        .gpword baz
32