1 #objdump: -dr --prefix-addresses --show-raw-insn
2 #name: NIOS2 R2 rdprs
3 #as: -march=r2
4 
5 # Test the rdprs instruction
6 
7 .*: +file format elf32-littlenios2
8 
9 Disassembly of section .text:
10 0+0000 <[^>]*> 70000028 	rdprs	zero,zero,0
11 0+0004 <[^>]*> 70010028 	rdprs	zero,zero,1
12 0+0008 <[^>]*> 70020028 	rdprs	zero,zero,2
13 0+000c <[^>]*> 70040028 	rdprs	zero,zero,4
14 0+0010 <[^>]*> 70080028 	rdprs	zero,zero,8
15 0+0014 <[^>]*> 70100028 	rdprs	zero,zero,16
16 0+0018 <[^>]*> 70200028 	rdprs	zero,zero,32
17 0+001c <[^>]*> 70400028 	rdprs	zero,zero,64
18 0+0020 <[^>]*> 70800028 	rdprs	zero,zero,128
19 0+0024 <[^>]*> 71000028 	rdprs	zero,zero,256
20 0+0028 <[^>]*> 72000028 	rdprs	zero,zero,512
21 0+002c <[^>]*> 74000028 	rdprs	zero,zero,1024
22 0+0030 <[^>]*> 78000028 	rdprs	zero,zero,-2048
23 0+0034 <[^>]*> 70000828 	rdprs	at,zero,0
24 0+0038 <[^>]*> 70001028 	rdprs	r2,zero,0
25 0+003c <[^>]*> 70002028 	rdprs	r4,zero,0
26 0+0040 <[^>]*> 70004028 	rdprs	r8,zero,0
27 0+0044 <[^>]*> 70008028 	rdprs	r16,zero,0
28 0+0048 <[^>]*> 70000068 	rdprs	zero,at,0
29 0+004c <[^>]*> 700000a8 	rdprs	zero,r2,0
30 0+0050 <[^>]*> 70000128 	rdprs	zero,r4,0
31 0+0054 <[^>]*> 70000228 	rdprs	zero,r8,0
32 0+0058 <[^>]*> 70000428 	rdprs	zero,r16,0
33