From e70f259005e77bd65defc6beeaf6efa261c0b3c3 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Sun, 3 Dec 2000 21:34:08 +0000 Subject: Finish off adding MIPS32 instructions. --- gas/testsuite/ChangeLog | 4 ++++ gas/testsuite/gas/mips/mips32.d | 12 +++++++++--- gas/testsuite/gas/mips/mips32.s | 18 +++++++++++++----- 3 files changed, 26 insertions(+), 8 deletions(-) (limited to 'gas') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index deac159..803d7fc 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -28,6 +28,10 @@ * gas/mips/mips16-f.d: Likewise. * gas/mips/mips16-f.s: Likewise. + * gas/mips/mips32.d: Expect disassembly of madd and maddu + to use their correct names. Add tests for break and sdbbp. + * gas/mips/mips32.s: Likewise. + 2000-12-01 Chris Demetriou * gas/mips/mips16.d: Expect mips16 nops to be used for padding diff --git a/gas/testsuite/gas/mips/mips32.d b/gas/testsuite/gas/mips/mips32.d index 4866425..56cbadb 100644 --- a/gas/testsuite/gas/mips/mips32.d +++ b/gas/testsuite/gas/mips/mips32.d @@ -9,8 +9,8 @@ Disassembly of section .text: 0+0000 <[^>]*> 70410821 clo \$at,\$v0 0+0004 <[^>]*> 70831820 clz \$v1,\$a0 -0+0008 <[^>]*> 70a60000 mad \$a1,\$a2 -0+000c <[^>]*> 70e80001 madu \$a3,\$t0 +0+0008 <[^>]*> 70a60000 madd \$a1,\$a2 +0+000c <[^>]*> 70e80001 maddu \$a3,\$t0 0+0010 <[^>]*> 712a0004 msub \$t1,\$t2 0+0014 <[^>]*> 716c0005 msubu \$t3,\$t4 0+0018 <[^>]*> 71cf6802 mul \$t5,\$t6,\$t7 @@ -46,4 +46,10 @@ Disassembly of section .text: 0+0090 <[^>]*> 42000020 wait 0+0094 <[^>]*> 42000020 wait 0+0098 <[^>]*> 4359e260 wait 0x56789 -0+009c <[^>]*> 00000000 nop +0+009c <[^>]*> 0000000d break +0+00a0 <[^>]*> 0000000d break +0+00a4 <[^>]*> 0048d14d break 0x12345 +0+00a8 <[^>]*> 7000003f sdbbp +0+00ac <[^>]*> 7000003f sdbbp +0+00b0 <[^>]*> 7159e27f sdbbp 0x56789 + ... diff --git a/gas/testsuite/gas/mips/mips32.s b/gas/testsuite/gas/mips/mips32.s index 240909a..a4d2d0d 100644 --- a/gas/testsuite/gas/mips/mips32.s +++ b/gas/testsuite/gas/mips/mips32.s @@ -10,8 +10,8 @@ text_label: clo $1, $2 clz $3, $4 - madd $5, $6 # disassembles as mad ... - maddu $7, $8 # disassembles as madu ... + madd $5, $6 + maddu $7, $8 msub $9, $10 msubu $11, $12 mul $13, $14, $15 @@ -58,6 +58,14 @@ text_label: wait 0 # disassembles without code wait 0x56789 - # padding to a cache line boundary so it's more likely to - # pass everywhere - nop + # Instructions in previous ISAs or CPUs which are now slightly + # different. + break + break 0 # disassembles without code + break 0x12345 + sdbbp + sdbbp 0 # disassembles without code + sdbbp 0x56789 + +# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... + .space 8 -- cgit v1.1