[llvm] 175139b - [M68k][NFC] Tidy up the just-migrated MC tests
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 22 22:45:27 PDT 2021
Author: Min-Yih Hsu
Date: 2021-08-22T22:43:02-07:00
New Revision: 175139b6fd59f62d4ecbabde3906f88236a293fa
URL: https://github.com/llvm/llvm-project/commit/175139b6fd59f62d4ecbabde3906f88236a293fa
DIFF: https://github.com/llvm/llvm-project/commit/175139b6fd59f62d4ecbabde3906f88236a293fa.diff
LOG: [M68k][NFC] Tidy up the just-migrated MC tests
Cleanup the formats of the MC tests that were just migrated. NFC
Added:
Modified:
llvm/test/MC/M68k/Data/Classes/MxMove_MM.s
llvm/test/MC/M68k/Data/Classes/MxMove_MR.s
llvm/test/MC/M68k/Data/Classes/MxMove_RM.s
llvm/test/MC/M68k/Data/Classes/MxMove_RR.s
Removed:
################################################################################
diff --git a/llvm/test/MC/M68k/Data/Classes/MxMove_MM.s b/llvm/test/MC/M68k/Data/Classes/MxMove_MM.s
index e10c5ac06424..a810626fcb88 100644
--- a/llvm/test/MC/M68k/Data/Classes/MxMove_MM.s
+++ b/llvm/test/MC/M68k/Data/Classes/MxMove_MM.s
@@ -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
diff --git a/llvm/test/MC/M68k/Data/Classes/MxMove_MR.s b/llvm/test/MC/M68k/Data/Classes/MxMove_MR.s
index 6f81029f0c5e..0dbd675d12a9 100644
--- a/llvm/test/MC/M68k/Data/Classes/MxMove_MR.s
+++ b/llvm/test/MC/M68k/Data/Classes/MxMove_MR.s
@@ -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)
diff --git a/llvm/test/MC/M68k/Data/Classes/MxMove_RM.s b/llvm/test/MC/M68k/Data/Classes/MxMove_RM.s
index 5d640b9b32c5..8ca071c09109 100644
--- a/llvm/test/MC/M68k/Data/Classes/MxMove_RM.s
+++ b/llvm/test/MC/M68k/Data/Classes/MxMove_RM.s
@@ -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
diff --git a/llvm/test/MC/M68k/Data/Classes/MxMove_RR.s b/llvm/test/MC/M68k/Data/Classes/MxMove_RR.s
index 9dada3e3c571..814abc4bde0a 100644
--- a/llvm/test/MC/M68k/Data/Classes/MxMove_RR.s
+++ b/llvm/test/MC/M68k/Data/Classes/MxMove_RR.s
@@ -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
More information about the llvm-commits
mailing list