Upload Tizen:Base source
[external/binutils.git] / gas / testsuite / gas / m68hc11 / insns.d
1 #objdump: -d --prefix-addresses --reloc
2 #as: -m68hc11
3 #name: insns
4
5 # Test handling of basic instructions.
6
7 .*: +file format elf32\-m68hc11
8
9 Disassembly of section .text:
10 0+0+ <_start> lds       #0+0400 <stack_end>
11 [       ]+1: R_M68HC11_16       stack
12 0+0003 <_start\+0x3> ldx        #0+0001 <_start\+0x1>
13 0+0006 <Loop> jsr       0+0+ <_start>
14 [       ]+6: R_M68HC11_RL_JUMP  \*ABS\*
15 [       ]+7: R_M68HC11_16       test
16 0+0009 <Loop\+0x3> dex
17 0+000a <Loop\+0x4> bne  0+0006 <Loop>
18 [       ]+a: R_M68HC11_RL_JUMP  \*ABS\*
19 0+000c <Stop> .byte     0xcd, 0x03
20 0+000e <Stop\+0x2> bra  0+0+ <_start>
21 [       ]+e: R_M68HC11_RL_JUMP  \*ABS\*
22 0+0010 <test> ldd       #0+0002 <_start\+0x2>
23 0+0013 <test\+0x3> jsr  0+0+ <_start>
24 [       ]+13: R_M68HC11_RL_JUMP \*ABS\*
25 [       ]+14: R_M68HC11_16      test2
26 0+0016 <test\+0x6> rts
27 0+0017 <test2> ldx      23,y
28 0+001a <test2\+0x3> std 23,x
29 0+001c <test2\+0x5> ldd 0,x
30 0+001e <test2\+0x7> sty 0,y
31 0+0021 <test2\+0xa> stx 0,y
32 0+0024 <test2\+0xd> brclr       6,x #\$04 0+0017 <test2>
33 [       ]+24: R_M68HC11_RL_JUMP \*ABS\*
34 0+0028 <test2\+0x11> brclr      12,x #\$08 0+0017 <test2>
35 [       ]+28: R_M68HC11_RL_JUMP \*ABS\*
36 0+002c <test2\+0x15> ldd        \*0+0+ <_start>
37 [       ]+2d: R_M68HC11_8       ZD1
38 0+002e <test2\+0x17> ldx        \*0+0002 <_start\+0x2>
39 [       ]+2f: R_M68HC11_8       ZD1
40 0+0030 <test2\+0x19> clr        0+0+ <_start>
41 [       ]+31: R_M68HC11_16      ZD2
42 0+0033 <test2\+0x1c> clr        0+0001 <_start\+0x1>
43 [       ]+34: R_M68HC11_16      ZD2
44 0+0036 <test2\+0x1f> bne        0+0034 <test2\+0x1d>
45 0+0038 <test2\+0x21> beq        0+003c <test2\+0x25>
46 0+003a <test2\+0x23> bclr       \*0+0001 <_start\+0x1> #\$20
47 [       ]+3b: R_M68HC11_8       ZD1
48 0+003d <test2\+0x26> brclr      \*0+0002 <_start\+0x2> #\$28 0+0017 <test2>
49 [       ]+3d: R_M68HC11_RL_JUMP \*ABS\*
50 [       ]+3e: R_M68HC11_8       ZD2
51 0+0041 <test2\+0x2a> ldy        #0+ffec <stack_end\+0xfbec>
52 [       ]+43: R_M68HC11_16      _start
53 0+0045 <test2\+0x2e> ldd        12,y
54 0+0048 <test2\+0x31> addd       44,y
55 0+004b <test2\+0x34> addd       50,y
56 0+004e <test2\+0x37> subd       0+002c <test2\+0x15>
57 0+0051 <test2\+0x3a> subd       #0+002c <test2\+0x15>
58 0+0054 <test2\+0x3d> jmp        0+0+ <_start>
59 [       ]+54: R_M68HC11_RL_JUMP \*ABS\*
60 [       ]+55: R_M68HC11_16      Stop
61 0+0057 <L1> anda        #23
62 [       ]+58: R_M68HC11_LO8     \.text
63 0+0059 <L1\+0x2> andb   #0
64 [       ]+5a: R_M68HC11_HI8     \.text
65 0+5b <L1\+0x4> ldab     #0
66 [       ]+5c: R_M68HC11_PAGE    test2
67 0+5d <L1\+0x6> ldy      #0+ <_start>
68 [       ]+5f: R_M68HC11_LO16    test2
69 0+61 <L1\+0xa> rts