From 1cc17500c38fa1cff19c3b5021dd74296a872b8c Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Mon, 18 May 1998 17:48:38 +0000 Subject: [PATCH] * Added tests for R5900 mult1 instructions. --- gas/testsuite/ChangeLog | 2 +- gas/testsuite/gas/mips/r5900.d | 12 +++++++----- gas/testsuite/gas/mips/r5900.s | 11 +++++++---- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 69c2c7bba1..18794d8c25 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -13,8 +13,8 @@ Mon May 18 13:11:45 1998 Frank Ch. Eigler start-sanitize-r5900 * gas/mips/break5900.[sd]: Test that break instructions generated in div/etc. macro instructions are of 20-bit variety for R5900. + * gas/mips/r5900.[sd]: Added mult1 tests. end-sanitize-r5900 - Fri May 15 14:51:01 1998 Gavin Koch diff --git a/gas/testsuite/gas/mips/r5900.d b/gas/testsuite/gas/mips/r5900.d index 11fb263b67..f63c5a61bf 100644 --- a/gas/testsuite/gas/mips/r5900.d +++ b/gas/testsuite/gas/mips/r5900.d @@ -15,8 +15,8 @@ Disassembly of section \.text: 0+0018 mfdvbm \$t6 0+001c mfiab \$t7 0+0020 mfiabm \$s0 -0+0024 mfpc \$a0,\$1 -0+0028 mfps \$a0,\$1 +0+0024 mfpc \$a0,1 +0+0028 mfps \$a0,1 0+002c mtbpc \$t2 0+0030 mtdab \$t3 0+0034 mtdabm \$t4 @@ -24,8 +24,8 @@ Disassembly of section \.text: 0+003c mtdvbm \$t6 0+0040 mtiab \$t7 0+0044 mtiabm \$s0 -0+0048 mtpc \$a0,\$1 -0+004c mtps \$a0,\$1 +0+0048 mtpc \$a0,1 +0+004c mtps \$a0,1 0+0050 adda.s \$f12,\$f14 0+0054 suba.s \$f10,\$f12 0+0058 msuba.s \$f10,\$f12 @@ -33,4 +33,6 @@ Disassembly of section \.text: 0+0060 madda.s \$f10,\$f12 0+0064 max.s \$f10,\$f12,\$f14 0+0068 min.s \$f10,\$f12,\$f14 -0+006c nop +0+006c mult1 \$v1,\$a0,\$zero +0+0070 mult1 \$a0,\$v1 +0+0074 nop diff --git a/gas/testsuite/gas/mips/r5900.s b/gas/testsuite/gas/mips/r5900.s index 5e11736056..c89e7c1be2 100644 --- a/gas/testsuite/gas/mips/r5900.s +++ b/gas/testsuite/gas/mips/r5900.s @@ -11,8 +11,8 @@ stuff: mfdvbm $14 mfiab $15 mfiabm $16 - mfpc $4,$1 - mfps $4,$1 + mfpc $4,1 + mfps $4,1 mtbpc $10 mtdab $11 mtdabm $12 @@ -20,8 +20,8 @@ stuff: mtdvbm $14 mtiab $15 mtiabm $16 - mtpc $4,$1 - mtps $4,$1 + mtpc $4,1 + mtps $4,1 adda.s $f12,$f14 @@ -31,5 +31,8 @@ stuff: madda.s $f10,$f12 max.s $f10,$f12,$f14 min.s $f10,$f12,$f14 + + mult1 $3,$4,$0 + mult1 $4,$3 # Nop just to fill out ot a 16byte boundary nop -- 2.34.1