[llvm] 09865ae - [NFC][M68k][test] Add disassembler tests for move instructions

via llvm-commits llvm-commits at lists.llvm.org
Sat May 21 19:35:35 PDT 2022


Author: Sheng
Date: 2022-05-22T10:35:13+08:00
New Revision: 09865ae95dbf0322bbf3e7b3847b2b11373a0297

URL: https://github.com/llvm/llvm-project/commit/09865ae95dbf0322bbf3e7b3847b2b11373a0297
DIFF: https://github.com/llvm/llvm-project/commit/09865ae95dbf0322bbf3e7b3847b2b11373a0297.diff

LOG: [NFC][M68k][test] Add disassembler tests for move instructions

Added: 
    

Modified: 
    llvm/test/MC/Disassembler/M68k/data.txt

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/Disassembler/M68k/data.txt b/llvm/test/MC/Disassembler/M68k/data.txt
index c29ca08c3a41c..1a428fdd38993 100644
--- a/llvm/test/MC/Disassembler/M68k/data.txt
+++ b/llvm/test/MC/Disassembler/M68k/data.txt
@@ -4,3 +4,51 @@
 0x20 0x49
 # CHECK: lea (50,%a0), %a1
 0x43 0xe8 0x00 0x32
+
+# CHECK: move.w (%a2), %a0
+0x30 0x52
+
+# CHECK: move.w (%a1), %d2
+0x34 0x11
+
+# CHECK; move.w (%a2)+, %a4
+0x38 0x5a
+
+# CHECK: move.w (%a0)+, %d2
+0x34 0x18
+
+# CHECK: move.w -(%sp), %a1
+0x32 0x67
+
+# CHECK: move.w -(%a6), %d7
+0x3e 0x26
+
+# CHECK: move.w (12576,%a0), %a5
+0x3a 0x68 0x31 0x20
+
+# CHECK: move.w (256,%sp), %d1
+0x32 0x2f 0x01 0x00
+
+# CHECK: move.l (32,%a0,%d1), %sp
+0x2e 0x70 0x18 0x20
+
+# CHECK: move.l (64,%sp,%a0), %d0
+0x20 0x37 0x88 0x40
+
+# CHECK: move.l $f0000000, %a5
+0x2a 0x79 0x00 0x00 0xf0 0x00
+
+# CHECK: move.l $1, %d0
+0x20 0x39 0x00 0x01 0x00 0x00
+
+# CHECK: move.l (32768,%pc), %a2
+0x24 0x7a 0x80 0x00
+
+# CHECK: move.l (16384,%pc), %d1
+0x22 0x3a 0x40 0x00
+
+# CHECK: move.l (128,%pc,%a0), %a5
+0x2a 0x7b 0x88 0x80
+
+# CHECK: move.l (129,%pc,%d2), %d3
+0x26 0x3b 0x28 0x81


        


More information about the llvm-commits mailing list