diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-10-14 17:54:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-10-14 17:54:49 +0000 |
commit | f5587846ed8180f5a765963b75a143b7bb355320 (patch) | |
tree | 807aac7e142f6d423e9ba9921e7c40d36ae5f321 /gas/testsuite | |
parent | e7a5045867641384e90a0b1e2b1f12751cb585d0 (diff) | |
download | gdb-f5587846ed8180f5a765963b75a143b7bb355320.zip gdb-f5587846ed8180f5a765963b75a143b7bb355320.tar.gz gdb-f5587846ed8180f5a765963b75a143b7bb355320.tar.bz2 |
* 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.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/abs.d | 15 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/add.s | 13 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/and.s | 23 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/li.s | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/rol.d | 36 |
6 files changed, 103 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 2e7a584..4d5f734 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +Mon Oct 14 13:52:55 1996 Ian Lance Taylor <ian@cygnus.com> + + * 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 0000000..324c75c --- /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 <foo\+c> +... +0+0008 <[^>]*> neg \$a0,\$a0 +0+000c <[^>]*> bgez \$a1,0+0018 <foo\+18> +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 0000000..1adec90 --- /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 0000000..cb98369 --- /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 0000000..7a3848c --- /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 0000000..791cb94 --- /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 |