Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / M68k / Data / Classes / MxMove_RM.s
blob918c4e493621b8da71824e17ef577903b7ba441d
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]
18 move.b (0,%pc), %d0
19 ; CHECK: move.l (-1,%pc), %d0
20 ; CHECK-SAME: encoding: [0x20,0x3a,0xff,0xff]
21 move.l (-1,%pc), %d0
22 ; CHECK: move.l (-1,%pc), %a0
23 ; CHECK-SAME: encoding: [0x20,0x7a,0xff,0xff]
24 move.l (-1,%pc), %a0
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]
41 move.b (0,%a0), %d0
42 ; CHECK: move.l (-1,%a1), %d0
43 ; CHECK-SAME: encoding: [0x20,0x29,0xff,0xff]
44 move.l (-1,%a1), %d0
45 ; CHECK: move.l (-1,%a1), %a0
46 ; CHECK-SAME: encoding: [0x20,0x69,0xff,0xff]
47 move.l (-1,%a1), %a0
49 ; CHECK: move.b -(%a0), %d0
50 ; CHECK-SAME: encoding: [0x10,0x20]
51 move.b -(%a0), %d0
52 ; CHECK: move.l -(%a1), %d3
53 ; CHECK-SAME: encoding: [0x26,0x21]
54 move.l -(%a1), %d3
55 ; CHECK: move.l -(%a1), %a4
56 ; CHECK-SAME: encoding: [0x28,0x61]
57 move.l -(%a1), %a4
59 ; CHECK: move.b (%a0)+, %d0
60 ; CHECK-SAME: encoding: [0x10,0x18]
61 move.b (%a0)+, %d0
62 ; CHECK: move.l (%a1)+, %d3
63 ; CHECK-SAME: encoding: [0x26,0x19]
64 move.l (%a1)+, %d3
65 ; CHECK: move.l (%a1)+, %a4
66 ; CHECK-SAME: encoding: [0x28,0x59]
67 move.l (%a1)+, %a4
69 ; CHECK: move.b (%a0), %d0
70 ; CHECK-SAME: encoding: [0x10,0x10]
71 move.b (%a0), %d0
72 ; CHECK: move.l (%a1), %d3
73 ; CHECK-SAME: encoding: [0x26,0x11]
74 move.l (%a1), %d3
75 ; CHECK: move.l (%a1), %a4
76 ; CHECK-SAME: encoding: [0x28,0x51]
77 move.l (%a1), %a4
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]
83 move.b $0, %d0
84 ; CHECK: move.l $0, %d3
85 ; CHECK-SAME: encoding: [0x26,0x39,0x00,0x00,0x00,0x00]
86 move.l $0, %d3
87 ; CHECK: move.l $0, %a4
88 ; CHECK-SAME: encoding: [0x28,0x79,0x00,0x00,0x00,0x00]
89 move.l $0, %a4