From: Ian Lance Taylor Date: Mon, 14 Oct 1996 17:54:49 +0000 (+0000) Subject: * gas/mips: Add symbols to several testsuites, since the ELF X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5587846ed8180f5a765963b75a143b7bb355320;p=binutils-gdb.git * gas/mips: Add symbols to several testsuites, since the ELF assembler now always builds a symbol table, which means that objdump will no longer report `No symbols in FILE'. Change the expected output accordingly. --- diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 2e7a5840fce..4d5f7341889 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +Mon Oct 14 13:52:55 1996 Ian Lance Taylor + + * gas/mips: Add symbols to several testsuites, since the ELF + assembler now always builds a symbol table, which means that + objdump will no longer report `No symbols in FILE'. Change the + expected output accordingly. + Thu Oct 10 13:11:48 1996 Jeffrey A Law (law@cygnus.com) * gas/mn10300/basic.exp: Check bit patterns for instructions diff --git a/gas/testsuite/gas/mips/abs.d b/gas/testsuite/gas/mips/abs.d new file mode 100644 index 00000000000..324c75c2adb --- /dev/null +++ b/gas/testsuite/gas/mips/abs.d @@ -0,0 +1,15 @@ +#objdump: -dr +#name: MIPS abs + +# Test the abs macro. + +.*: +file format .*mips.* + +Disassembly of section .text: +0+0000 <[^>]*> bgez \$a0,0+000c +... +0+0008 <[^>]*> neg \$a0,\$a0 +0+000c <[^>]*> bgez \$a1,0+0018 +0+0010 <[^>]*> move \$a0,\$a1 +0+0014 <[^>]*> neg \$a0,\$a1 +... diff --git a/gas/testsuite/gas/mips/add.s b/gas/testsuite/gas/mips/add.s new file mode 100644 index 00000000000..1adec90cfd1 --- /dev/null +++ b/gas/testsuite/gas/mips/add.s @@ -0,0 +1,13 @@ +# Source file used to test the add macro. + +foo: + add $4,$4,0 + add $4,$4,1 + add $4,$4,0x8000 + add $4,$4,-0x8000 + add $4,$4,0x10000 + add $4,$4,0x1a5a5 + +# addu is handled the same way add is; just confirm that it isn't +# totally broken. + addu $4,$4,1 diff --git a/gas/testsuite/gas/mips/and.s b/gas/testsuite/gas/mips/and.s new file mode 100644 index 00000000000..cb98369895d --- /dev/null +++ b/gas/testsuite/gas/mips/and.s @@ -0,0 +1,23 @@ +# Source file used to test the and macro. + +foo: + and $4,$4,0 + and $4,$4,1 + and $4,$4,0x8000 + and $4,$4,-0x8000 + and $4,$4,0x10000 + and $4,$4,0x1a5a5 + +# nor, or, and xor are handled by the same code. There is a special +# case for nor, so we test all variants. + + nor $4,$5,0 + nor $4,$5,1 + nor $4,$5,0x8000 + nor $4,$5,-0x8000 + nor $4,$5,0x10000 + nor $4,$5,0x1a5a5 + + or $4,$5,0 + + xor $4,$5,0 diff --git a/gas/testsuite/gas/mips/li.s b/gas/testsuite/gas/mips/li.s new file mode 100644 index 00000000000..7a3848ca4ad --- /dev/null +++ b/gas/testsuite/gas/mips/li.s @@ -0,0 +1,9 @@ +# Source file used to test the li macro. + +foo: + li $4,0 + li $4,1 + li $4,0x8000 + li $4,-0x8000 + li $4,0x10000 + li $4,0x1a5a5 diff --git a/gas/testsuite/gas/mips/rol.d b/gas/testsuite/gas/mips/rol.d new file mode 100644 index 00000000000..791cb941ae3 --- /dev/null +++ b/gas/testsuite/gas/mips/rol.d @@ -0,0 +1,36 @@ +#objdump: -dr +#name: MIPS rol + +# Test the rol and ror macros. + +.*: +file format .*mips.* + +Disassembly of section .text: +0+0000 <[^>]*> negu \$at,\$a1 +0+0004 <[^>]*> srlv \$at,\$a0,\$at +0+0008 <[^>]*> sllv \$a0,\$a0,\$a1 +0+000c <[^>]*> or \$a0,\$a0,\$at +0+0010 <[^>]*> negu \$at,\$a2 +0+0014 <[^>]*> srlv \$at,\$a1,\$at +0+0018 <[^>]*> sllv \$a0,\$a1,\$a2 +0+001c <[^>]*> or \$a0,\$a0,\$at +0+0020 <[^>]*> sll \$at,\$a0,0x1 +0+0024 <[^>]*> srl \$a0,\$a0,0x1f +0+0028 <[^>]*> or \$a0,\$a0,\$at +0+002c <[^>]*> sll \$at,\$a1,0x1 +0+0030 <[^>]*> srl \$a0,\$a1,0x1f +0+0034 <[^>]*> or \$a0,\$a0,\$at +0+0038 <[^>]*> negu \$at,\$a1 +0+003c <[^>]*> sllv \$at,\$a0,\$at +0+0040 <[^>]*> srlv \$a0,\$a0,\$a1 +0+0044 <[^>]*> or \$a0,\$a0,\$at +0+0048 <[^>]*> negu \$at,\$a2 +0+004c <[^>]*> sllv \$at,\$a1,\$at +0+0050 <[^>]*> srlv \$a0,\$a1,\$a2 +0+0054 <[^>]*> or \$a0,\$a0,\$at +0+0058 <[^>]*> srl \$at,\$a0,0x1 +0+005c <[^>]*> sll \$a0,\$a0,0x1f +0+0060 <[^>]*> or \$a0,\$a0,\$at +0+0064 <[^>]*> srl \$at,\$a1,0x1 +0+0068 <[^>]*> sll \$a0,\$a1,0x1f +0+006c <[^>]*> or \$a0,\$a0,\$at