public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Expand MIPS gas testcase to check COP2 branches
@ 2006-06-08 22:20 Thiemo Seufer
  0 siblings, 0 replies; only message in thread
From: Thiemo Seufer @ 2006-06-08 22:20 UTC (permalink / raw)
  To: binutils

Hello All,

I applied the appended patch which tests COP2 branches.


Thiemo


2006-06-08  Thiemo Seufer  <ths@mips.com>
            Nigel Stephens  <nigel@mips.com>

	* gas/mips/mips32.s: Added cop2 branches with explicit condition
	code register numbers.
	* gas/mips/mips32.d: Likewise.


Index: gas/testsuite/gas/mips/mips32.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips32.d,v
retrieving revision 1.12
diff -u -p -r1.12 mips32.d
--- gas/testsuite/gas/mips/mips32.d	8 May 2006 18:18:09 -0000	1.12
+++ gas/testsuite/gas/mips/mips32.d	8 Jun 2006 19:15:40 -0000
@@ -63,4 +63,12 @@ Disassembly of section .text:
 0+00d4 <[^>]*> 7000003f 	sdbbp
 0+00d8 <[^>]*> 7000003f 	sdbbp
 0+00dc <[^>]*> 7159e27f 	sdbbp	0x56789
+0+00e0 <[^>]*> 4900ffc7 	bc2f	0+0000 <text_label>
+0+00e4 <[^>]*> 00000000 	nop
+0+00e8 <[^>]*> 4906ffc5 	bc2fl	\$cc1,0+0000 <text_label>
+0+00ec <[^>]*> 00000000 	nop
+0+00f0 <[^>]*> 4919ffc3 	bc2t	\$cc6,0+0000 <text_label>
+0+00f4 <[^>]*> 00000000 	nop
+0+00f8 <[^>]*> 491fffc1 	bc2tl	\$cc7,0+0000 <text_label>
+0+00fc <[^>]*> 00000000 	nop
 	\.\.\.
Index: gas/testsuite/gas/mips/mips32.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/mips/mips32.s,v
retrieving revision 1.5
diff -u -p -r1.5 mips32.s
--- gas/testsuite/gas/mips/mips32.s	8 May 2006 18:18:09 -0000	1.5
+++ gas/testsuite/gas/mips/mips32.s	8 Jun 2006 19:15:40 -0000
@@ -79,5 +79,15 @@ text_label:
       sdbbp   0                       # disassembles without code
       sdbbp   0x56789
 
+      # Cop2 branches with cond code number, like bc1t/f
+      bc2f    $cc0,text_label
+      nop
+      bc2fl   $cc1,text_label
+      nop
+      bc2t    $cc6,text_label
+      nop
+      bc2tl   $cc7,text_label
+      nop
+
 # Force at least 8 (non-delay-slot) zero bytes, to make 'objdump' print ...
       .space  8

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-08 21:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-08 22:20 [PATCH] Expand MIPS gas testcase to check COP2 branches Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).