* 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.
This commit is contained in:
Ian Lance Taylor 1996-10-14 17:54:49 +00:00
parent e7a5045867
commit f5587846ed
6 changed files with 103 additions and 0 deletions

View File

@ -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

View File

@ -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
...

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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