1 ; RUN
: llvm-mc
-triple
=m68k
-motorola-integers
-show-encoding
%s | FileCheck
%s
3 ; CHECK
: move.
b (0,%pc
,%d1
), %d0
4 ; CHECK-SAME
: encoding
: [0x10,0x3b,0x18,0x00]
5 move.
b (0,%pc
,%d1
), %d0
6 ; CHECK
: move.
b (-1,%pc
,%d1
), %d0
7 ; CHECK-SAME
: encoding
: [0x10,0x3b,0x18,0xff]
8 move.
b (-1,%pc
,%d1
), %d0
9 ; CHECK
: move.
l (0,%pc
,%d1
), %d0
10 ; CHECK-SAME
: encoding
: [0x20,0x3b,0x18,0x00]
11 move.
l (0,%pc
,%d1
), %d0
12 ; CHECK
: move.
l (0,%pc
,%a2
), %d1
13 ; CHECK-SAME
: encoding
: [0x22,0x3b,0xa8,0x00]
14 move.
l (0,%pc
,%a2
), %d1
16 ; CHECK
: move.
b (0,%pc
), %d0
17 ; CHECK-SAME
: encoding
: [0x10,0x3a,0x00,0x00]
19 ; CHECK
: move.
l (-1,%pc
), %d0
20 ; CHECK-SAME
: encoding
: [0x20,0x3a,0xff,0xff]
22 ; CHECK
: move.
l (-1,%pc
), %a0
23 ; CHECK-SAME
: encoding
: [0x20,0x7a,0xff,0xff]
26 ; CHECK
: move.
b (0,%a0
,%d1
), %d0
27 ; CHECK-SAME
: encoding
: [0x10,0x30,0x18,0x00]
28 move.
b (0,%a0
,%d1
), %d0
29 ; CHECK
: move.
b (-1,%a0
,%d1
), %d0
30 ; CHECK-SAME
: encoding
: [0x10,0x30,0x18,0xff]
31 move.
b (-1,%a0
,%d1
), %d0
32 ; CHECK
: move.
l (0,%a1
,%d1
), %d0
33 ; CHECK-SAME
: encoding
: [0x20,0x31,0x18,0x00]
34 move.
l (0,%a1
,%d1
), %d0
35 ; CHECK
: move.
l (0,%a2
,%a2
), %d1
36 ; CHECK-SAME
: encoding
: [0x22,0x32,0xa8,0x00]
37 move.
l (0,%a2
,%a2
), %d1
39 ; CHECK
: move.
b (0,%a0
), %d0
40 ; CHECK-SAME
: encoding
: [0x10,0x28,0x00,0x00]
42 ; CHECK
: move.
l (-1,%a1
), %d0
43 ; CHECK-SAME
: encoding
: [0x20,0x29,0xff,0xff]
45 ; CHECK
: move.
l (-1,%a1
), %a0
46 ; CHECK-SAME
: encoding
: [0x20,0x69,0xff,0xff]
49 ; CHECK
: move.
b -(%a0
), %d0
50 ; CHECK-SAME
: encoding
: [0x10,0x20]
52 ; CHECK
: move.
l -(%a1
), %d3
53 ; CHECK-SAME
: encoding
: [0x26,0x21]
55 ; CHECK
: move.
l -(%a1
), %a4
56 ; CHECK-SAME
: encoding
: [0x28,0x61]
59 ; CHECK
: move.
b (%a0
)+, %d0
60 ; CHECK-SAME
: encoding
: [0x10,0x18]
62 ; CHECK
: move.
l (%a1
)+, %d3
63 ; CHECK-SAME
: encoding
: [0x26,0x19]
65 ; CHECK
: move.
l (%a1
)+, %a4
66 ; CHECK-SAME
: encoding
: [0x28,0x59]
69 ; CHECK
: move.
b (%a0
), %d0
70 ; CHECK-SAME
: encoding
: [0x10,0x10]
72 ; CHECK
: move.
l (%a1
), %d3
73 ; CHECK-SAME
: encoding
: [0x26,0x11]
75 ; CHECK
: move.
l (%a1
), %a4
76 ; CHECK-SAME
: encoding
: [0x28,0x51]
79 ; FIXME
: Currently we don
't have the 'B' encoding
80 ; (i.e. abs.W) so we're always using
32-bit absolute address.
81 ; CHECK
: move.
b $
0, %d0
82 ; CHECK-SAME
: encoding
: [0x10,0x39,0x00,0x00,0x00,0x00]
84 ; CHECK
: move.
l $
0, %d3
85 ; CHECK-SAME
: encoding
: [0x26,0x39,0x00,0x00,0x00,0x00]
87 ; CHECK
: move.
l $
0, %a4
88 ; CHECK-SAME
: encoding
: [0x28,0x79,0x00,0x00,0x00,0x00]