diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/mips.exp | 1 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/sb1-ext-ps.d | 12 | ||||
-rw-r--r-- | gas/testsuite/gas/mips/sb1-ext-ps.s | 16 |
4 files changed, 36 insertions, 0 deletions
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 <cgd@broadcom.com> + + * 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 <mrg@redhat.com> * 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 |