* gas/mips: Add symbols to several testsuites, since the ELF
authorIan Lance Taylor <ian@airs.com>
Mon, 14 Oct 1996 17:54:49 +0000 (17:54 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 14 Oct 1996 17:54:49 +0000 (17:54 +0000)
assembler now always builds a symbol table, which means that
objdump will no longer report `No symbols in FILE'.  Change the
expected output accordingly.

gas/testsuite/ChangeLog
gas/testsuite/gas/mips/abs.d [new file with mode: 0644]
gas/testsuite/gas/mips/add.s [new file with mode: 0644]
gas/testsuite/gas/mips/and.s [new file with mode: 0644]
gas/testsuite/gas/mips/li.s [new file with mode: 0644]
gas/testsuite/gas/mips/rol.d [new file with mode: 0644]

index 2e7a5840fcefb04b743b66900afcae2f62682f19..4d5f73418893638a9ad3501351eec76744eedc2b 100644 (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
diff --git a/gas/testsuite/gas/mips/abs.d b/gas/testsuite/gas/mips/abs.d
new file mode 100644 (file)
index 0000000..324c75c
--- /dev/null
@@ -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 (file)
index 0000000..1adec90
--- /dev/null
@@ -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 (file)
index 0000000..cb98369
--- /dev/null
@@ -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 (file)
index 0000000..7a3848c
--- /dev/null
@@ -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 (file)
index 0000000..791cb94
--- /dev/null
@@ -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