Browse Source
* config/tc-mips.c (mips_ip): Don't work out the value of constant %hi()s here. [gas/testsuite/] * gas/mips/elf-consthilo.[sd]: New test. * gas/mips/mips.exp: Run it.drow-cplus-branch
6 changed files with 42 additions and 15 deletions
@ -0,0 +1,10 @@ |
|||
#objdump: --prefix-addresses -dr |
|||
#name: MIPS constant hi/lo |
|||
|
|||
.*: +file format elf.*mips.* |
|||
|
|||
Disassembly of section \.text: |
|||
0+00 <.*> lui a0,0xdeae |
|||
0+04 <.*> jr ra |
|||
0+08 <.*> lb v0,-16657\(a0\) |
|||
#pass |
|||
@ -0,0 +1,12 @@ |
|||
.set noreorder |
|||
.set nomacro |
|||
.set noat |
|||
.set nomips16 |
|||
|
|||
.equ addr, 0xdeadbeef |
|||
.ent foo |
|||
foo: |
|||
lui $4,%hi(addr) |
|||
jr $31 |
|||
lb $2,%lo(addr)($4) |
|||
.end foo |
|||
Loading…
Reference in new issue