[llvm] 905ac77 - [M68k][test][NFC] Reorder the tests for MxBTST_MI and MxBTST_MR
Jim Lin via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 10 18:48:23 PST 2022
Author: Jim Lin
Date: 2022-01-11T10:43:35+08:00
New Revision: 905ac777d5c13b76e9cfb87ea96333954f06a1aa
URL: https://github.com/llvm/llvm-project/commit/905ac777d5c13b76e9cfb87ea96333954f06a1aa
DIFF: https://github.com/llvm/llvm-project/commit/905ac777d5c13b76e9cfb87ea96333954f06a1aa.diff
LOG: [M68k][test][NFC] Reorder the tests for MxBTST_MI and MxBTST_MR
Follow the order of definitions in M68kInstrBits.td
Added:
Modified:
llvm/test/MC/M68k/Bits/Classes/MxBTST_MI.s
llvm/test/MC/M68k/Bits/Classes/MxBTST_MR.s
Removed:
################################################################################
diff --git a/llvm/test/MC/M68k/Bits/Classes/MxBTST_MI.s b/llvm/test/MC/M68k/Bits/Classes/MxBTST_MI.s
index 1d095225ffb96..d9589c4a5a8bf 100644
--- a/llvm/test/MC/M68k/Bits/Classes/MxBTST_MI.s
+++ b/llvm/test/MC/M68k/Bits/Classes/MxBTST_MI.s
@@ -1,18 +1,18 @@
; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
-; CHECK: btst #0, (-1,%pc,%d1)
-; CHECK-SAME: encoding: [0x08,0x3b,0x00,0x00,0x18,0xff]
-btst #0, (-1,%pc,%d1)
-; CHECK: btst #1, (0,%pc,%d0)
-; CHECK-SAME: encoding: [0x08,0x3b,0x00,0x01,0x08,0x00]
-btst #1, (0,%pc,%d0)
+; CHECK: btst #0, (%a1)
+; CHECK-SAME: encoding: [0x08,0x11,0x00,0x00]
+btst #0, (%a1)
+; CHECK: btst #-1, (%a0)
+; CHECK-SAME: encoding: [0x08,0x10,0x00,0xff]
+btst #-1, (%a0)
-; CHECK: btst #0, (0,%pc)
-; CHECK-SAME: encoding: [0x08,0x3a,0x00,0x00,0x00,0x00]
-btst #0, (0,%pc)
-; CHECK: btst #-1, (-1,%pc)
-; CHECK-SAME: encoding: [0x08,0x3a,0x00,0xff,0xff,0xff]
-btst #-1, (-1,%pc)
+; CHECK: btst #0, (-1,%a1)
+; CHECK-SAME: encoding: [0x08,0x29,0x00,0x00,0xff,0xff]
+btst #0, (-1,%a1)
+; CHECK: btst #-1, (0,%a0)
+; CHECK-SAME: encoding: [0x08,0x28,0x00,0xff,0x00,0x00]
+btst #-1, (0,%a0)
; CHECK: btst #0, (-1,%a1,%a0)
; CHECK-SAME: encoding: [0x08,0x31,0x00,0x00,0x88,0xff]
@@ -21,16 +21,16 @@ btst #0, (-1,%a1,%a0)
; CHECK-SAME: encoding: [0x08,0x30,0x00,0xff,0x88,0x00]
btst #-1, (0,%a0,%a0)
-; CHECK: btst #0, (-1,%a1)
-; CHECK-SAME: encoding: [0x08,0x29,0x00,0x00,0xff,0xff]
-btst #0, (-1,%a1)
-; CHECK: btst #-1, (0,%a0)
-; CHECK-SAME: encoding: [0x08,0x28,0x00,0xff,0x00,0x00]
-btst #-1, (0,%a0)
+; CHECK: btst #0, (0,%pc)
+; CHECK-SAME: encoding: [0x08,0x3a,0x00,0x00,0x00,0x00]
+btst #0, (0,%pc)
+; CHECK: btst #-1, (-1,%pc)
+; CHECK-SAME: encoding: [0x08,0x3a,0x00,0xff,0xff,0xff]
+btst #-1, (-1,%pc)
-; CHECK: btst #0, (%a1)
-; CHECK-SAME: encoding: [0x08,0x11,0x00,0x00]
-btst #0, (%a1)
-; CHECK: btst #-1, (%a0)
-; CHECK-SAME: encoding: [0x08,0x10,0x00,0xff]
-btst #-1, (%a0)
+; CHECK: btst #0, (-1,%pc,%d1)
+; CHECK-SAME: encoding: [0x08,0x3b,0x00,0x00,0x18,0xff]
+btst #0, (-1,%pc,%d1)
+; CHECK: btst #1, (0,%pc,%d0)
+; CHECK-SAME: encoding: [0x08,0x3b,0x00,0x01,0x08,0x00]
+btst #1, (0,%pc,%d0)
diff --git a/llvm/test/MC/M68k/Bits/Classes/MxBTST_MR.s b/llvm/test/MC/M68k/Bits/Classes/MxBTST_MR.s
index 8c5924abd047b..306fd48587ebf 100644
--- a/llvm/test/MC/M68k/Bits/Classes/MxBTST_MR.s
+++ b/llvm/test/MC/M68k/Bits/Classes/MxBTST_MR.s
@@ -1,18 +1,18 @@
; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
-; CHECK: btst %d0, (-1,%pc,%d1)
-; CHECK-SAME: encoding: [0x01,0x3b,0x18,0xff]
-btst %d0, (-1,%pc,%d1)
-; CHECK: btst %d1, (0,%pc,%d0)
-; CHECK-SAME: encoding: [0x03,0x3b,0x08,0x00]
-btst %d1, (0,%pc,%d0)
+; CHECK: btst %d0, (%a1)
+; CHECK-SAME: encoding: [0x01,0x11]
+btst %d0, (%a1)
+; CHECK: btst %d1, (%a0)
+; CHECK-SAME: encoding: [0x03,0x10]
+btst %d1, (%a0)
-; CHECK: btst %d0, (0,%pc)
-; CHECK-SAME: encoding: [0x01,0x3a,0x00,0x00]
-btst %d0, (0,%pc)
-; CHECK: btst %d1, (-1,%pc)
-; CHECK-SAME: encoding: [0x03,0x3a,0xff,0xff]
-btst %d1, (-1,%pc)
+; CHECK: btst %d0, (-1,%a1)
+; CHECK-SAME: encoding: [0x01,0x29,0xff,0xff]
+btst %d0, (-1,%a1)
+; CHECK: btst %d1, (0,%a0)
+; CHECK-SAME: encoding: [0x03,0x28,0x00,0x00]
+btst %d1, (0,%a0)
; CHECK: btst %d0, (-1,%a1,%a0)
; CHECK-SAME: encoding: [0x01,0x31,0x88,0xff]
@@ -21,16 +21,16 @@ btst %d0, (-1,%a1,%a0)
; CHECK-SAME: encoding: [0x03,0x30,0x88,0x00]
btst %d1, (0,%a0,%a0)
-; CHECK: btst %d0, (-1,%a1)
-; CHECK-SAME: encoding: [0x01,0x29,0xff,0xff]
-btst %d0, (-1,%a1)
-; CHECK: btst %d1, (0,%a0)
-; CHECK-SAME: encoding: [0x03,0x28,0x00,0x00]
-btst %d1, (0,%a0)
+; CHECK: btst %d0, (0,%pc)
+; CHECK-SAME: encoding: [0x01,0x3a,0x00,0x00]
+btst %d0, (0,%pc)
+; CHECK: btst %d1, (-1,%pc)
+; CHECK-SAME: encoding: [0x03,0x3a,0xff,0xff]
+btst %d1, (-1,%pc)
-; CHECK: btst %d0, (%a1)
-; CHECK-SAME: encoding: [0x01,0x11]
-btst %d0, (%a1)
-; CHECK: btst %d1, (%a0)
-; CHECK-SAME: encoding: [0x03,0x10]
-btst %d1, (%a0)
+; CHECK: btst %d0, (-1,%pc,%d1)
+; CHECK-SAME: encoding: [0x01,0x3b,0x18,0xff]
+btst %d0, (-1,%pc,%d1)
+; CHECK: btst %d1, (0,%pc,%d0)
+; CHECK-SAME: encoding: [0x03,0x3b,0x08,0x00]
+btst %d1, (0,%pc,%d0)
More information about the llvm-commits
mailing list