diff options
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/elf-consthilo.d | 10 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/elf-consthilo.s | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 1 |
4 files changed, 28 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 9079372..9248656 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-08-12 Richard Sandiford <rsandifo@redhat.com> + + * gas/mips/elf-consthilo.[sd]: New test. + * gas/mips/mips.exp: Run it. + 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl> * gas/mips/empic.d: Treat "addiu" and "daddiu" as equivalent when diff --git a/gas/testsuite/gas/mips/elf-consthilo.d b/gas/testsuite/gas/mips/elf-consthilo.d new file mode 100644 index 0000000..30b2761 --- /dev/null +++ b/gas/testsuite/gas/mips/elf-consthilo.d @@ -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 diff --git a/gas/testsuite/gas/mips/elf-consthilo.s b/gas/testsuite/gas/mips/elf-consthilo.s new file mode 100644 index 0000000..ed7e111 --- /dev/null +++ b/gas/testsuite/gas/mips/elf-consthilo.s @@ -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 diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index a3b6911..fa1dbf8 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -215,5 +215,6 @@ if { [istarget mips*-*-*] } then { run_dump_test "${tmips}mips${el}16-e" run_dump_test "${tmips}mips${el}16-f" } + run_dump_test "elf-consthilo" } } |