[M68k][NFC] Tidy up the just-migrated MC tests

Cleanup the formats of the MC tests that were just migrated. NFC
This commit is contained in:
Min-Yih Hsu 2021-08-22 22:43:02 -07:00
parent da253d5690
commit 175139b6fd
4 changed files with 54 additions and 66 deletions

View File

@ -76,8 +76,8 @@ move.l (%a1), (%a1)
; CHECK-SAME: encoding: [0x22,0x91]
move.l (%a1), (%a1)
// FIXME: Currently we don't have the 'B' encoding
// (i.e. abs.W) so we're always using 32-bit absolute address.
; FIXME: Currently we don't have the 'B' encoding
; (i.e. abs.W) so we're always using 32-bit absolute address.
; CHECK: move.b $ffffffffffffffff, $0
; CHECK-SAME: encoding: [0x13,0xf9,0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00]
move.b $ffffffffffffffff, $0

View File

@ -1,44 +1,35 @@
; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
.text
.globl MxMove_MR_ARII
; CHECK-LABEL: MxMove_MR_ARII:
MxMove_MR_ARII:
; CHECK: move.b %d0, (0,%a0,%d1)
; CHECK-SAME: encoding: [0x11,0x80,0x18,0x00]
move.b %d0, (0,%a0,%d1)
; CHECK: move.b %d0, (-1,%a0,%d1)
; CHECK-SAME: encoding: [0x11,0x80,0x18,0xff]
move.b %d0, (-1,%a0,%d1)
; CHECK: move.l %d0, (0,%a1,%d1)
; CHECK-SAME: encoding: [0x23,0x80,0x18,0x00]
move.l %d0, (0,%a1,%d1)
; CHECK: move.l %d1, (0,%a2,%a2)
; CHECK-SAME: encoding: [0x25,0x81,0xa8,0x00]
move.l %d1, (0,%a2,%a2)
.globl MxMove_MR_ARID
; CHECK-LABEL: MxMove_MR_ARID:
MxMove_MR_ARID:
; CHECK: move.b %d0, (0,%a0)
; CHECK-SAME: encoding: [0x11,0x40,0x00,0x00]
move.b %d0, (0,%a0)
; CHECK: move.l %d0, (-1,%a1)
; CHECK-SAME: encoding: [0x23,0x40,0xff,0xff]
move.l %d0, (-1,%a1)
; CHECK: move.l %a0, (-1,%a1)
; CHECK-SAME: encoding: [0x23,0x48,0xff,0xff]
move.l %a0, (-1,%a1)
; CHECK: move.b %d0, (0,%a0,%d1)
; CHECK-SAME: encoding: [0x11,0x80,0x18,0x00]
move.b %d0, (0,%a0,%d1)
; CHECK: move.b %d0, (-1,%a0,%d1)
; CHECK-SAME: encoding: [0x11,0x80,0x18,0xff]
move.b %d0, (-1,%a0,%d1)
; CHECK: move.l %d0, (0,%a1,%d1)
; CHECK-SAME: encoding: [0x23,0x80,0x18,0x00]
move.l %d0, (0,%a1,%d1)
; CHECK: move.l %d1, (0,%a2,%a2)
; CHECK-SAME: encoding: [0x25,0x81,0xa8,0x00]
move.l %d1, (0,%a2,%a2)
.globl MxMove_MR_ARI
; CHECK-LABEL: MxMove_MR_ARI:
MxMove_MR_ARI:
; CHECK: move.b %d0, (%a0)
; CHECK-SAME: encoding: [0x10,0x80]
move.b %d0, (%a0)
; CHECK: move.l %d3, (%a1)
; CHECK-SAME: encoding: [0x22,0x83]
move.l %d3, (%a1)
; CHECK: move.l %a4, (%a1)
; CHECK-SAME: encoding: [0x22,0x8c]
move.l %a4, (%a1)
; CHECK: move.b %d0, (0,%a0)
; CHECK-SAME: encoding: [0x11,0x40,0x00,0x00]
move.b %d0, (0,%a0)
; CHECK: move.l %d0, (-1,%a1)
; CHECK-SAME: encoding: [0x23,0x40,0xff,0xff]
move.l %d0, (-1,%a1)
; CHECK: move.l %a0, (-1,%a1)
; CHECK-SAME: encoding: [0x23,0x48,0xff,0xff]
move.l %a0, (-1,%a1)
; CHECK: move.b %d0, (%a0)
; CHECK-SAME: encoding: [0x10,0x80]
move.b %d0, (%a0)
; CHECK: move.l %d3, (%a1)
; CHECK-SAME: encoding: [0x22,0x83]
move.l %d3, (%a1)
; CHECK: move.l %a4, (%a1)
; CHECK-SAME: encoding: [0x22,0x8c]
move.l %a4, (%a1)

View File

@ -76,8 +76,8 @@ move.l (%a1), %d3
; CHECK-SAME: encoding: [0x28,0x51]
move.l (%a1), %a4
// FIXME: Currently we don't have the 'B' encoding
// (i.e. abs.W) so we're always using 32-bit absolute address.
; FIXME: Currently we don't have the 'B' encoding
; (i.e. abs.W) so we're always using 32-bit absolute address.
; CHECK: move.b $0, %d0
; CHECK-SAME: encoding: [0x10,0x39,0x00,0x00,0x00,0x00]
move.b $0, %d0

View File

@ -1,24 +1,21 @@
; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
.text
.globl MxMove_RR
; CHECK-LABEL: MxMove_RR:
MxMove_RR:
; CHECK: move.b %d0, %d1
; CHECK-SAME: encoding: [0x12,0x00]
move.b %d0, %d1
; CHECK: move.w %a2, %d3
; CHECK-SAME: encoding: [0x36,0x0a]
move.w %a2, %d3
; CHECK: move.w %a2, %a6
; CHECK-SAME: encoding: [0x3c,0x4a]
move.w %a2, %a6
; CHECK: move.w %a2, %d1
; CHECK-SAME: encoding: [0x32,0x0a]
move.w %a2, %d1
; CHECK: move.l %d2, %d1
; CHECK-SAME: encoding: [0x22,0x02]
move.l %d2, %d1
; CHECK: move.l %a2, %a1
; CHECK-SAME: encoding: [0x22,0x4a]
move.l %a2, %a1
; CHECK: move.b %d0, %d1
; CHECK-SAME: encoding: [0x12,0x00]
move.b %d0, %d1
; CHECK: move.w %a2, %d3
; CHECK-SAME: encoding: [0x36,0x0a]
move.w %a2, %d3
; CHECK: move.w %a2, %a6
; CHECK-SAME: encoding: [0x3c,0x4a]
move.w %a2, %a6
; CHECK: move.w %a2, %d1
; CHECK-SAME: encoding: [0x32,0x0a]
move.w %a2, %d1
; CHECK: move.l %d2, %d1
; CHECK-SAME: encoding: [0x22,0x02]
move.l %d2, %d1
; CHECK: move.l %a2, %a1
; CHECK-SAME: encoding: [0x22,0x4a]
move.l %a2, %a1