From 2228315b47c1647bd28e7d7d0074fd23310080af Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Thu, 18 Oct 2001 01:42:16 +0000 Subject: [gas/testsuite/ChangeLog] 2001-10-17 Chris Demetriou * gas/mips/mips.exp (sb1-ext-ps): New test to test SB-1 core's paired-single extensions to the MIPS64 ISA. * gas/mips/sb1-ext-ps.d: New file. * gas/mips/sb1-ext-ps.s: New file. [include/opcode/ChangeLog] 2001-10-17 Chris Demetriou * mips.h (INSN_SB1): New cpu-specific instruction bit. (OPCODE_IS_MEMBER): Allow instructions matching INSN_SB1 if cpu is CPU_SB1. [opcodes/ChangeLog] 2001-10-17 Chris Demetriou * mips-dis.c (mips_isa_type): Make the ISA used to disassemble SB-1 binaries include instructions specific to the SB-1. * mips-opc.c (SB1): New definition. (mips_builtin_opcodes): Add SB-1 extension opcodes "div.ps", "recip.ps", "rsqrt.ps", and "sqrt.ps". --- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/mips/mips.exp | 1 + gas/testsuite/gas/mips/sb1-ext-ps.d | 12 ++++++++++++ gas/testsuite/gas/mips/sb1-ext-ps.s | 16 ++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 gas/testsuite/gas/mips/sb1-ext-ps.d create mode 100644 gas/testsuite/gas/mips/sb1-ext-ps.s (limited to 'gas') diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 88a043f..b6343a6 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2001-10-17 Chris Demetriou + + * gas/mips/mips.exp (sb1-ext-ps): New test to test + SB-1 core's paired-single extensions to the MIPS64 ISA. + * gas/mips/sb1-ext-ps.d: New file. + * gas/mips/sb1-ext-ps.s: New file. + 2001-10-17 matthew green * gas/ppc/altivec.s: New test for AltiVec. diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index d4b771c..2834e81 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -118,6 +118,7 @@ if { [istarget mips*-*-*] } then { run_dump_test "sync" run_dump_test "mips32" run_dump_test "mips64" + run_dump_test "sb1-ext-ps" # It will always fail until someone fixes it. setup_xfail "mips*-*-*" diff --git a/gas/testsuite/gas/mips/sb1-ext-ps.d b/gas/testsuite/gas/mips/sb1-ext-ps.d new file mode 100644 index 0000000..cb09e55 --- /dev/null +++ b/gas/testsuite/gas/mips/sb1-ext-ps.d @@ -0,0 +1,12 @@ +#objdump: -dr --prefix-addresses --show-raw-insn -mmips:sb1 +#name: SB-1 paired single extensions +#as: -march=sb1 + +.*: +file format .*mips.* + +Disassembly of section .text: +0+0000 <[^>]*> 46c31043 div.ps \$f1,\$f2,\$f3 +0+0004 <[^>]*> 46c01055 recip.ps \$f1,\$f2 +0+0008 <[^>]*> 46c01056 rsqrt.ps \$f1,\$f2 +0+000c <[^>]*> 46c01044 sqrt.ps \$f1,\$f2 + ... diff --git a/gas/testsuite/gas/mips/sb1-ext-ps.s b/gas/testsuite/gas/mips/sb1-ext-ps.s new file mode 100644 index 0000000..7768b9b --- /dev/null +++ b/gas/testsuite/gas/mips/sb1-ext-ps.s @@ -0,0 +1,16 @@ +# source file to test assembly of SB-1 core's paired-single +# extensions to the MIPS64 ISA. + + .set noreorder + .set noat + + .globl text_label .text +text_label: + + div.ps $f1, $f2, $f3 + recip.ps $f1, $f2 + rsqrt.ps $f1, $f2 + sqrt.ps $f1, $f2 + +# Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ... + .space 8 -- cgit v1.1