[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / llvm / test / MC / M68k / Atomics / cas.s
blobc6cae72c03f093b238812ef0185cb49ba618602a
1 ; RUN: llvm-mc -show-encoding -triple=m68k -mcpu=M68020 -motorola-integers %s | FileCheck %s
3 ; Address Register Indirect
4 ; CHECK: cas.b %d3, %d2, (%a2)
5 ; CHECK-SAME: ; encoding: [0x0a,0xd2,0x00,0x83]
6 cas.b %d3, %d2, (%a2)
8 ; CHECK: cas.w %d4, %d5, (%a3)
9 ; CHECK-SAME: ; encoding: [0x0c,0xd3,0x01,0x44]
10 cas.w %d4, %d5, (%a3)
12 ; CHECK: cas.l %d6, %d7, (%a4)
13 ; CHECK-SAME: ; encoding: [0x0e,0xd4,0x01,0xc6]
14 cas.l %d6, %d7, (%a4)
16 ; Address Register Indirect with Displacement
17 ; CHECK: cas.b %d3, %d2, (5,%a2)
18 ; CHECK-SAME: ; encoding: [0x0a,0xea,0x00,0x83]
19 cas.b %d3, %d2, (5, %a2)
21 ; CHECK: cas.w %d4, %d5, (6,%a3)
22 ; CHECK-SAME: ; encoding: [0x0c,0xeb,0x01,0x44]
23 cas.w %d4, %d5, (6, %a3)
25 ; CHECK: cas.l %d6, %d7, (7,%a4)
26 ; CHECK-SAME: ; encoding: [0x0e,0xec,0x01,0xc6]
27 cas.l %d6, %d7, (7, %a4)
29 ; Address Register Indirect with Index (Scale = 1)
30 ; CHECK: cas.b %d3, %d2, (5,%a2,%d1)
31 ; CHECK-SAME: ; encoding: [0x0a,0xf2,0x00,0x83]
32 cas.b %d3, %d2, (5, %a2, %d1)
34 ; CHECK: cas.w %d4, %d5, (6,%a3,%d1)
35 ; CHECK-SAME: ; encoding: [0x0c,0xf3,0x01,0x44]
36 cas.w %d4, %d5, (6, %a3, %d1)
38 ; CHECK: cas.l %d6, %d7, (7,%a4,%d1)
39 ; CHECK-SAME: ; encoding: [0x0e,0xf4,0x01,0xc6]
40 cas.l %d6, %d7, (7, %a4, %d1)
42 ; Absolute Long Address
43 ; CHECK: cas.b %d3, %d2, $ffffffffffffffff
44 ; CHECK-SAME: ; encoding: [0x0a,0xf8,0x00,0x83]
45 cas.b %d3, %d2, $ffffffffffffffff
47 ; CHECK: cas.w %d4, %d5, $ffffffffffffffff
48 ; CHECK-SAME: ; encoding: [0x0c,0xf8,0x01,0x44]
49 cas.w %d4, %d5, $ffffffffffffffff
51 ; CHECK: cas.l %d6, %d7, $ffffffffffffffff
52 ; CHECK-SAME: ; encoding: [0x0e,0xf8,0x01,0xc6]
53 cas.l %d6, %d7, $ffffffffffffffff