Commit | Line | Data |
---|---|---|
f6c1a2d5 NC |
1 | #objdump: -d --prefix-addresses --reloc |
2 | #as: | |
3 | #name: all_insns | |
4 | ||
5 | # Test handling of basic instructions. | |
6 | ||
7 | .*: +file format elf32\-xgate | |
8 | ||
9 | Disassembly of section .text: | |
10 | 0+0000 <L0> adc R1, R2, R3 | |
848e5d08 | 11 | 0+0002 <L1> bcc \*230 Abs\* 0x000000e8 <END_CODE> |
f6c1a2d5 NC |
12 | 0+0004 <L2> add R4, R5, R6 |
13 | 0+0006 <L3> addl R7, #0xe1 | |
14 | 0+0008 <L3\+0x2> addh R7, #0x00 Abs\* 0x000000e1 <L103\+0x1> | |
15 | 0+000a <L4> addh R1, #0xff | |
848e5d08 | 16 | 0+000c <L5> addl R2, #0xff Abs\* 0x0000ffff <END_CODE\+0xff17> |
f6c1a2d5 | 17 | 0+000e <L6> addl R4, #0x44 |
848e5d08 | 18 | 0+0010 <L6\+0x2> addh R4, #0x1f Abs\* 0x00001f44 <END_CODE\+0x1e5c> |
f6c1a2d5 NC |
19 | 0+0012 <L7> and R3, R4, R5 |
20 | 0+0014 <L8> andl R1, #0x04 | |
848e5d08 SK |
21 | 0+0016 <L8\+0x2> andh R1, #0x80 Abs\* 0x00008004 <END_CODE\+0x7f1c> |
22 | 0+0018 <L9> addl R5, #0xe8 | |
f6c1a2d5 | 23 | 18: R_XGATE_IMM8_LO .text |
848e5d08 | 24 | 0+001a <L9\+0x2> addh R5, #0x00 Abs\* 0x000000e8 <END_CODE> |
f6c1a2d5 | 25 | 1a: R_XGATE_IMM8_HI .text |
848e5d08 | 26 | 0+001c <L10> andl R7, #0xe8 |
f6c1a2d5 | 27 | 1c: R_XGATE_IMM8_LO .text |
848e5d08 | 28 | 0+001e <L10\+0x2> andh R7, #0x00 Abs\* 0x000000e8 <END_CODE> |
f6c1a2d5 NC |
29 | 1e: R_XGATE_IMM8_HI .text |
30 | 0+0020 <L11> andl R4, #0x01 | |
848e5d08 | 31 | 0+0022 <L11\+0x2> andh R4, #0xff Abs\* 0x0000ff01 <END_CODE\+0xfe19> |
f6c1a2d5 | 32 | 0+0024 <L12> andl R3, #0x01 |
848e5d08 | 33 | 0+0026 <L13> andh R6, #0xff Abs\* 0x0000ff01 <END_CODE\+0xfe19> |
f6c1a2d5 NC |
34 | 0+0028 <L14> asr R0, #0x03 |
35 | 0+002a <L15> asr R1, R2 | |
848e5d08 SK |
36 | 0+002c <L16> bcc \*188 Abs\* 0x000000e8 <END_CODE> |
37 | 0+002e <L17> bcs \*186 Abs\* 0x000000e8 <END_CODE> | |
38 | 0+0030 <L18> beq \*184 Abs\* 0x000000e8 <END_CODE> | |
f6c1a2d5 NC |
39 | 0+0032 <L19> bfext R3, R4, R5 |
40 | 0+0034 <L20> bffo R6, R7 | |
41 | 0+0036 <L21> bfins R0, R1, R2 | |
42 | 0+0038 <L22> bfinsi R3, R4, R5 | |
43 | 0+003a <L23> bfinsx R6, R7, R0 | |
848e5d08 SK |
44 | 0+003c <L24> bge \*172 Abs\* 0x000000e8 <END_CODE> |
45 | 0+003e <L25> bgt \*170 Abs\* 0x000000e8 <END_CODE> | |
46 | 0+0040 <L26> bhi \*168 Abs\* 0x000000e8 <END_CODE> | |
47 | 0+0042 <L27> bcc \*166 Abs\* 0x000000e8 <END_CODE> | |
f6c1a2d5 NC |
48 | 0+0044 <L28> bith R1, #0x20 |
49 | 0+0046 <L29> bitl R2, #0x00 | |
848e5d08 SK |
50 | 0+0048 <L30> ble \*160 Abs\* 0x000000e8 <END_CODE> |
51 | 0+004a <L31> bcs \*158 Abs\* 0x000000e8 <END_CODE> | |
52 | 0+004c <L32> bls \*156 Abs\* 0x000000e8 <END_CODE> | |
53 | 0+004e <L33> blt \*154 Abs\* 0x000000e8 <END_CODE> | |
54 | 0+0050 <L34> bmi \*152 Abs\* 0x000000e8 <END_CODE> | |
55 | 0+0052 <L35> bne \*150 Abs\* 0x000000e8 <END_CODE> | |
56 | 0+0054 <L36> bpl \*148 Abs\* 0x000000e8 <END_CODE> | |
57 | 0+0056 <L37> bra \*146 Abs\* 0x000000e8 <END_CODE> | |
f6c1a2d5 | 58 | ... |
848e5d08 SK |
59 | 0+005a <L39> bvc \*142 Abs\* 0x000000e8 <END_CODE> |
60 | 0+005c <L40> bvs \*140 Abs\* 0x000000e8 <END_CODE> | |
f6c1a2d5 NC |
61 | 0+005e <L41> sub R0, R1, R2 |
62 | 0+0060 <L42> cmpl R3, #0xff | |
63 | 0+0062 <L43> xnor R4, R0, R5 | |
64 | 0+0064 <L44> sbc R0, R6, R7 | |
848e5d08 | 65 | 0+0066 <L45> cmpl R1, #0xff Abs\* 0x0000ffdd <END_CODE\+0xfef5> |
f6c1a2d5 | 66 | 0+0068 <L45\+0x2> cpch R1, #0xff |
848e5d08 | 67 | 0+006a <L46> cpch R2, #0xff Abs\* 0x0000ffff <END_CODE\+0xff17> |
f6c1a2d5 NC |
68 | 0+006c <L47> csem #0x4 |
69 | 0+006e <L48> csem R5 | |
70 | 0+0070 <L49> csl R6, #0x0b | |
71 | 0+0072 <L50> csl R7, R0 | |
72 | 0+0074 <L51> csr R1, #0x02 | |
73 | 0+0076 <L52> csr R2, R3 | |
74 | 0+0078 <L53> jal R4 | |
75 | 0+007a <L54> ldb R5, \(R6, #0x14\) | |
76 | 0+007c <L55> ldb R7, \(R0, R1\+\) | |
77 | 0+007e <L56> ldb R7, \(R0, \-R1\) | |
78 | 0+0080 <L57> ldb R0, \(R0, R0\) | |
79 | 0+0082 <L58> ldh R1, #0xff | |
848e5d08 SK |
80 | 0+0084 <L59> ldl R2, #0xff Abs\* 0x0000ffff <END_CODE\+0xff17> |
81 | 0+0086 <L60> ldl R3, #0xe8 | |
f6c1a2d5 | 82 | 86: R_XGATE_IMM8_LO .text |
848e5d08 | 83 | 0+0088 <L60\+0x2> ldh R3, #0x00 Abs\* 0x000000e8 <END_CODE> |
f6c1a2d5 NC |
84 | 88: R_XGATE_IMM8_HI .text |
85 | 0+008a <L61> ldw R4, \(R5, #0x14\) | |
86 | 0+008c <L62> ldw R5, \(R6, R7\+\) | |
87 | 0+008e <L63> ldw R5, \(R6, \-R7\) | |
88 | 0+0090 <L64> ldw R1, \(R2, R4\) | |
89 | 0+0092 <L65> lsl R1, #0x04 | |
90 | 0+0094 <L66> lsl R2, R3 | |
91 | 0+0096 <L67> lsr R4, #0x05 | |
92 | 0+0098 <L68> lsr R5, R6 | |
93 | 0+009a <L69> or R6, R0, R7 | |
94 | 0+009c <L70> sub R1, R0, R2 | |
95 | 0+009e <L71> nop | |
96 | 0+00a0 <L72> or R1, R2, R3 | |
97 | 0+00a2 <L73> orh R4, #0xff | |
98 | 0+00a4 <L74> orl R5, #0xff | |
99 | 0+00a6 <L75> par R6 | |
100 | 0+00a8 <L76> rol R7, #0x06 | |
101 | 0+00aa <L77> rol R1, R2 | |
102 | 0+00ac <L78> ror R3, #0x05 | |
103 | 0+00ae <L79> ror R4, R5 | |
104 | 0+00b0 <L80> rts | |
105 | 0+00b2 <L81> sbc R1, R2, R3 | |
106 | 0+00b4 <L82> ssem #0x4 | |
107 | 0+00b6 <L83> ssem R1 | |
108 | 0+00b8 <L84> sex R2 | |
109 | 0+00ba <L85> sif | |
110 | 0+00bc <L86> sif R4 | |
111 | 0+00be <L87> stb R5, \(R6, #0x5\) | |
112 | 0+00c0 <L88> stb R0, \(R0, R0\+\) | |
113 | 0+00c2 <L89> stb R0, \(R0, \-R0\) | |
114 | 0+00c4 <L90> stb R2, \(R0, R0\) | |
115 | 0+00c6 <L91> stw R1, \(R2, #0x10\) | |
116 | 0+00c8 <L92> stw R1, \(R2, R3\+\) | |
117 | 0+00ca <L93> stw R1, \(R2, \-R3\) | |
118 | 0+00cc <L94> stw R2, \(R3, R4\) | |
119 | 0+00ce <L95> sub R3, R4, R6 | |
120 | 0+00d0 <L96> subl R4, #0xff | |
848e5d08 | 121 | 0+00d2 <L96\+0x2> subh R4, #0xff Abs\* 0x0000ffff <END_CODE\+0xff17> |
f6c1a2d5 | 122 | 0+00d4 <L97> subh R5, #0xff |
848e5d08 | 123 | 0+00d6 <L98> subl R6, #0xff Abs\* 0x0000ffff <END_CODE\+0xff17> |
f6c1a2d5 NC |
124 | 0+00d8 <L99> tfr R7, PC |
125 | 0+00da <L100> tfr R7, CCR | |
126 | 0+00dc <L101> tfr CCR, R7 | |
127 | 0+00de <L102> sub R0, R1, R0 | |
128 | 0+00e0 <L103> xnor R1, R2, R3 | |
129 | 0+00e2 <L104> xnorh R4, #0xff | |
130 | 0+00e4 <L105> xnorl R5, #0xff | |
848e5d08 | 131 | 0+00e6 <L106> xnor R3, R0, R3 |