Commit | Line | Data |
---|---|---|
f6c1a2d5 NC |
1 | #objdump: -d --prefix-addresses --reloc |
2 | #as: | |
3 | #name: insns | |
4 | ||
5 | # Test handling of basic instructions. | |
6 | ||
7 | .*: +file format elf32\-xgate | |
8 | ||
9 | Disassembly of section .text: | |
10 | 0+0000 <\_start> ldl R2, #0x00 | |
11 | 0: R_XGATE_IMM8_LO .bss | |
12 | 0+0002 <\_start\+0x2> ldh R2, #0x04 Abs\* 0x00000400 <block_end> | |
13 | 2: R_XGATE_IMM8_HI .bss | |
14 | 0+0004 <\_start\+0x4> ldl R3, #0x00 | |
15 | 4: R_XGATE_IMM8_LO .bss | |
16 | 0+0006 <\_start\+0x6> ldh R3, #0x00 Abs\* 0x00000000 <\_start> | |
17 | 6: R_XGATE_IMM8_HI .bss | |
18 | 0+0008 <\_start\+0x8> ldl R1, #0x01 | |
19 | 0+000a <\_start\+0xa> ldh R1, #0x00 Abs\* 0x00000001 <\_start\+0x1> | |
20 | 0+000c <Loop> bra \*10 Abs\* 0x00000016 <test> | |
21 | 0+000e <Loop\+0x2> nop | |
22 | 0+0010 <Loop\+0x4> bne \*\-4 Abs\* 0x0000000c <Loop> | |
23 | 0+0012 <Stop> subh R5, #0x03 | |
24 | 0+0014 <Stop\+0x2> bra \*\-20 Abs\* 0x00000000 <\_start> | |
25 | 0+0016 <test> ldl R5, #0x02 | |
26 | 0+0018 <test\+0x2> ldh R5, #0x00 Abs\* 0x00000002 <\_start\+0x2> | |
27 | 0+001a <test\+0x4> bra \*4 Abs\* 0x0000001e <test2> | |
28 | 0+001c <test\+0x6> rts | |
29 | 0+001e <test2> ldl R3, #0x17 | |
30 | 0+0020 <test2\+0x2> ldh R3, #0x00 Abs\* 0x00000017 <test\+0x1> | |
31 | 0+0022 <test2\+0x4> stw R4, \(R3, #0x0\) | |
32 | 0+0024 <test2\+0x6> ldl R4, #0xec | |
33 | 24: R_XGATE_IMM8_LO .text | |
34 | 0+0026 <test2\+0x8> ldh R4, #0xff Abs\* 0x0000ffec <block_end\+0xfbec> | |
35 | 26: R_XGATE_IMM8_HI .text | |
36 | 0+0028 <test2\+0xa> bra \*\-22 Abs\* 0x00000012 <Stop> | |
37 | 0+002a <L1> ldl R1, #0x1e | |
38 | 2a: R_XGATE_IMM8_LO .text | |
39 | 0+002c <L1\+0x2> ldh R1, #0x00 Abs\* 0x0000001e <test2> | |
40 | 2c: R_XGATE_IMM8_HI .text | |
41 | 0+002e <L1\+0x4> ldl R2, #0x1e | |
42 | 2e: R_XGATE_IMM8_LO .text | |
43 | 0+0030 <L1\+0x6> ldh R2, #0x00 Abs\* 0x0000001e <test2> | |
44 | 30: R_XGATE_IMM8_HI .text | |
45 | 0+0032 <L1\+0x8> rts |