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
7 // Please merge this with relocation.s when it passes.
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
)
18 addiu $
2, $
3, %hi
(baz
)
19 addiu $
2, $
2, %lo
(baz
)
21 // DATA-LABEL
: Name
: .data
22 // DATA
: SectionData
(
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