This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Add more sr testcases in GAS for the ARC backend.


Hi,

This patch tests for more variants of the st and sr instructions in the ARC tangent A4. Tested on an arc-elf32 cross on Fedora Core 1 .

Ok to apply ? If so it would be nice if some one could commit this.

cheers
Ramana


ChangeLog:


2004-11-23 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>

	* gas/testsuite/gas/arc/st.s, gas/testsuite/gas/arc/st.d: Add
checks for other variants of the sr / st instruction.


Index: st.s
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/arc/st.s,v
retrieving revision 1.3
diff -c -3 -p -r1.3 st.s
*** st.s	12 May 2001 15:14:53 -0000	1.3
--- st.s	23 Nov 2004 17:45:15 -0000
***************
*** 17,22 ****
  	st .L1,[r12,4]
  	st .L1@h30,[r12,4]
  .L1:
- 
  	sr	r1,[r2]
  	sr	r1,[14]
--- 17,27 ----
  	st .L1,[r12,4]
  	st .L1@h30,[r12,4]
  .L1:
  	sr	r1,[r2]
  	sr	r1,[14]
+ 	sr	1000, [r1]
+ 	sr	100,  [r2]
+ 	sr	r1,[10000]
+ 	sr	100,[10000]
+ 	sr	10000,[100]
+ 
Index: st.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/arc/st.d,v
retrieving revision 1.3
diff -c -3 -p -r1.3 st.d
*** st.d	12 May 2001 15:14:53 -0000	1.3
--- st.d	23 Nov 2004 17:45:15 -0000
*************** Disassembly of section .text:
*** 31,33 ****
--- 31,42 ----
  			4c: R_ARC_B26	.text
    50:	00 02 01 12 	12010200     sr         r1,\[r2\]
    54:	0e 82 1f 12 	121f820e     sr         r1,\[0xe\]
+   58:	00 fc 00 12 	1200fc00     sr         0x3e8,\[r1\]
+   5c:	e8 03 00 00 
+   60:	64 7e 01 12 	12017e64     sr         100,\[r2\]
+   64:	00 02 1f 12 	121f0200     sr         r1,\[0x2710\]
+   68:	10 27 00 00 
+   6c:	64 7e 1f 12 	121f7e64     sr         100,\[0x2710\]
+   70:	10 27 00 00 
+   74:	64 fc 1f 12 	121ffc64     sr         0x2710,\[0x64\]
+   78:	10 27 00 00 
\ No newline at end of file


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]