Skip to content

Commit

Permalink
[NFC][M68k][test] Add disassembler tests for move instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
0x59616e committed May 22, 2022
1 parent d6994f7 commit 09865ae
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions llvm/test/MC/Disassembler/M68k/data.txt
Expand Up @@ -4,3 +4,51 @@
0x20 0x49
# CHECK: lea (50,%a0), %a1
0x43 0xe8 0x00 0x32

# CHECK: move.w (%a2), %a0
0x30 0x52

# CHECK: move.w (%a1), %d2
0x34 0x11

# CHECK; move.w (%a2)+, %a4
0x38 0x5a

# CHECK: move.w (%a0)+, %d2
0x34 0x18

# CHECK: move.w -(%sp), %a1
0x32 0x67

# CHECK: move.w -(%a6), %d7
0x3e 0x26

# CHECK: move.w (12576,%a0), %a5
0x3a 0x68 0x31 0x20

# CHECK: move.w (256,%sp), %d1
0x32 0x2f 0x01 0x00

# CHECK: move.l (32,%a0,%d1), %sp
0x2e 0x70 0x18 0x20

# CHECK: move.l (64,%sp,%a0), %d0
0x20 0x37 0x88 0x40

# CHECK: move.l $f0000000, %a5
0x2a 0x79 0x00 0x00 0xf0 0x00

# CHECK: move.l $1, %d0
0x20 0x39 0x00 0x01 0x00 0x00

# CHECK: move.l (32768,%pc), %a2
0x24 0x7a 0x80 0x00

# CHECK: move.l (16384,%pc), %d1
0x22 0x3a 0x40 0x00

# CHECK: move.l (128,%pc,%a0), %a5
0x2a 0x7b 0x88 0x80

# CHECK: move.l (129,%pc,%d2), %d3
0x26 0x3b 0x28 0x81

0 comments on commit 09865ae

Please sign in to comment.