From 271f091db772c822be71fb8fe803817e44a02e87 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 29 Oct 1998 17:28:18 +0000 Subject: [PATCH] * Test cases for PR 18015. Thu Oct 29 12:07:06 1998 Frank Ch. Eigler * t-psrlvw.s (test_psrlvw): Add test for sign-extension in insn. * t-padsbh.s: New test. * t-mult1.s: New test. * Makefile.in: Run them. --- sim/testsuite/mips64r5900-elf/ChangeLog | 7 +++++++ sim/testsuite/mips64r5900-elf/t-mult1.s | 13 +++++++++++++ sim/testsuite/mips64r5900-elf/t-padsbh.s | 11 +++++++++++ 3 files changed, 31 insertions(+) create mode 100644 sim/testsuite/mips64r5900-elf/t-mult1.s create mode 100644 sim/testsuite/mips64r5900-elf/t-padsbh.s diff --git a/sim/testsuite/mips64r5900-elf/ChangeLog b/sim/testsuite/mips64r5900-elf/ChangeLog index 7b1600f553c..c9c920b7662 100644 --- a/sim/testsuite/mips64r5900-elf/ChangeLog +++ b/sim/testsuite/mips64r5900-elf/ChangeLog @@ -1,3 +1,10 @@ +Thu Oct 29 12:07:06 1998 Frank Ch. Eigler + + * t-psrlvw.s (test_psrlvw): Add test for sign-extension in insn. + * t-padsbh.s: New test. + * t-mult1.s: New test. + * Makefile.in: Run them. + Tue Oct 27 15:20:16 EST 1998 Frank Ch. Eigler * t-prot3w.s: Test changed spec of prot3w insn. diff --git a/sim/testsuite/mips64r5900-elf/t-mult1.s b/sim/testsuite/mips64r5900-elf/t-mult1.s new file mode 100644 index 00000000000..cccccfb8d8e --- /dev/null +++ b/sim/testsuite/mips64r5900-elf/t-mult1.s @@ -0,0 +1,13 @@ +.include "t-macros.i" + + start + +test_mult1: + load $8 0xffffffff7fffffff 0x0000000080000000 + load $9 0x10000000ffffffff 0x00000000ffffffff + mult1 $10, $8, $9 + check10 0x0000000000000000 0xffffffff80000000 + checkHI 0x000000007fffffff 0x0000000000000000 + checkLO 0xffffffff80000000 0x0000000000000000 + + exit0 diff --git a/sim/testsuite/mips64r5900-elf/t-padsbh.s b/sim/testsuite/mips64r5900-elf/t-padsbh.s new file mode 100644 index 00000000000..30970cc810d --- /dev/null +++ b/sim/testsuite/mips64r5900-elf/t-padsbh.s @@ -0,0 +1,11 @@ +.include "t-macros.i" + + start + +test_padsbh: + load $8 0x0122800745658006 0x89a80005cdeb0004 + load $9 0x0001fff90002fffa 0x00037ffb00047ffc + padsbh $10,$9,$8 + check10 0x0123800045678000 0x765b7ff632197ff8 + + exit0 -- 2.30.2