[llvm] 9c0ac10 - [M68k][test][NFC] Add missing tests for arith inst with size byte or word

Jim Lin via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 6 00:44:46 PST 2022


Author: Jim Lin
Date: 2022-01-06T16:40:40+08:00
New Revision: 9c0ac101d7d1019595b6d02c60eaaf45fa8345fa

URL: https://github.com/llvm/llvm-project/commit/9c0ac101d7d1019595b6d02c60eaaf45fa8345fa
DIFF: https://github.com/llvm/llvm-project/commit/9c0ac101d7d1019595b6d02c60eaaf45fa8345fa.diff

LOG: [M68k][test][NFC] Add missing tests for arith inst with size byte or word

Added: 
    

Modified: 
    llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMI.s
    llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMR.s
    llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI.s
    llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI_xEA.s
    llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s
    llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRRF.s
    llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_EAd.s
    llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_xEA.s
    llvm/test/MC/M68k/Arith/Classes/MxCMP_BI.s
    llvm/test/MC/M68k/Arith/Classes/MxCMP_MI.s
    llvm/test/MC/M68k/Arith/Classes/MxCMP_RI.s
    llvm/test/MC/M68k/Arith/Classes/MxCMP_RM.s
    llvm/test/MC/M68k/Arith/Classes/MxCMP_RR.s
    llvm/test/MC/M68k/Arith/Classes/MxNEG.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMI.s b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMI.s
index 0e563c05e2ebf..7a2bc96dade46 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMI.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMI.s
@@ -6,6 +6,9 @@ add.b	#-1, (0,%a0,%d0)
 ; CHECK:      add.b  #0, (-1,%a3,%a1)
 ; CHECK-SAME: encoding: [0x06,0x33,0x00,0x00,0x98,0xff]
 add.b	#0, (-1,%a3,%a1)
+; CHECK:      add.w  #-1, (7,%a2,%d0)
+; CHECK-SAME: encoding: [0x06,0x72,0xff,0xff,0x08,0x07]
+add.w	#-1, (7,%a2,%d0)
 ; CHECK:      add.l  #-1, (13,%a2,%d1)
 ; CHECK-SAME: encoding: [0x06,0xb2,0xff,0xff,0xff,0xff,0x18,0x0d]
 add.l	#-1, (13,%a2,%d1)
@@ -16,6 +19,9 @@ add.b	#-1, (0,%a0)
 ; CHECK:      add.b  #0, (-1,%a3)
 ; CHECK-SAME: encoding: [0x06,0x2b,0x00,0x00,0xff,0xff]
 add.b	#0, (-1,%a3)
+; CHECK:      add.w  #-1, (7,%a1)
+; CHECK-SAME: encoding: [0x06,0x69,0xff,0xff,0x00,0x07]
+add.w	#-1, (7,%a1)
 ; CHECK:      add.l  #-1, (13,%a2)
 ; CHECK-SAME: encoding: [0x06,0xaa,0xff,0xff,0xff,0xff,0x00,0x0d]
 add.l	#-1, (13,%a2)
@@ -26,6 +32,9 @@ add.b	#-1, (%a0)
 ; CHECK:      add.b  #0, (%a3)
 ; CHECK-SAME: encoding: [0x06,0x13,0x00,0x00]
 add.b	#0, (%a3)
+; CHECK:      add.w  #-1, (%a1)
+; CHECK-SAME: encoding: [0x06,0x51,0xff,0xff]
+add.w	#-1, (%a1)
 ; CHECK:      add.l  #-1, (%a2)
 ; CHECK-SAME: encoding: [0x06,0x92,0xff,0xff,0xff,0xff]
 add.l	#-1, (%a2)

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMR.s b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMR.s
index 7e3b9fcd055dd..8a685c8fe6213 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMR.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMR.s
@@ -6,6 +6,12 @@ add.b	%d0, (0,%a0,%d1)
 ; CHECK:      add.b  %d0, (-1,%a0,%d1)
 ; CHECK-SAME: encoding: [0xd1,0x30,0x18,0xff]
 add.b	%d0, (-1,%a0,%d1)
+; CHECK:      add.w  %d0, (0,%a1,%d1)
+; CHECK-SAME: encoding: [0xd1,0x71,0x18,0x00]
+add.w	%d0, (0,%a1,%d1)
+; CHECK:      add.w  %d1, (0,%a2,%a2)
+; CHECK-SAME: encoding: [0xd3,0x72,0xa8,0x00]
+add.w	%d1, (0,%a2,%a2)
 ; CHECK:      add.l  %d0, (0,%a1,%d1)
 ; CHECK-SAME: encoding: [0xd1,0xb1,0x18,0x00]
 add.l	%d0, (0,%a1,%d1)
@@ -16,6 +22,9 @@ add.l	%d1, (0,%a2,%a2)
 ; CHECK:      add.b  %d0, (0,%a0)
 ; CHECK-SAME: encoding: [0xd1,0x28,0x00,0x00]
 add.b	%d0, (0,%a0)
+; CHECK:      add.w  %d1, (1,%a0)
+; CHECK-SAME: encoding: [0xd3,0x68,0x00,0x01]
+add.w	%d1, (1,%a0)
 ; CHECK:      add.l  %d0, (-1,%a1)
 ; CHECK-SAME: encoding: [0xd1,0xa9,0xff,0xff]
 add.l	%d0, (-1,%a1)
@@ -23,6 +32,9 @@ add.l	%d0, (-1,%a1)
 ; CHECK:      add.b  %d0, (%a0)
 ; CHECK-SAME: encoding: [0xd1,0x10]
 add.b	%d0, (%a0)
+; CHECK:      add.w  %d0, (%a1)
+; CHECK-SAME: encoding: [0xd1,0x51]
+add.w	%d0, (%a1)
 ; CHECK:      add.l  %d3, (%a1)
 ; CHECK-SAME: encoding: [0xd7,0x91]
 add.l	%d3, (%a1)

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI.s b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI.s
index b37196dd84558..b33a730dc14dd 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI.s
@@ -1,5 +1,11 @@
 ; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
 
+; CHECK:      eori.b  #0, %d1
+; CHECK-SAME: encoding: [0x0a,0x01,0x00,0x00]
+eori.b	#0, %d1
+; CHECK:      eori.b  #-1, %d2
+; CHECK-SAME: encoding: [0x0a,0x02,0x00,0xff]
+eori.b	#-1, %d2
 ; CHECK:      eori.w  #0, %d0
 ; CHECK-SAME: encoding: [0x0a,0x40,0x00,0x00]
 eori.w	#0, %d0

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI_xEA.s b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI_xEA.s
index aa832cf8a14fa..856ece6b569f3 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI_xEA.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI_xEA.s
@@ -1,5 +1,11 @@
 ; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
 
+; CHECK:      add.b  #0, %d1
+; CHECK-SAME: encoding: [0xd2,0x3c,0x00,0x00]
+add.b	#0, %d1
+; CHECK:      add.b  #-1, %d2
+; CHECK-SAME: encoding: [0xd4,0x3c,0x00,0xff]
+add.b	#-1, %d2
 ; CHECK:      add.w  #0, %d0
 ; CHECK-SAME: encoding: [0xd0,0x7c,0x00,0x00]
 add.w	#0, %d0

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s
index f7141cf6fec5a..15e5968561240 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRM.s
@@ -6,6 +6,12 @@ add.b	(0,%pc,%d1), %d0
 ; CHECK:      add.b  (-1,%pc,%d1), %d0
 ; CHECK-SAME: encoding: [0xd0,0x3b,0x18,0xff]
 add.b	(-1,%pc,%d1), %d0
+; CHECK:      add.w  (0,%pc,%d2), %d1
+; CHECK-SAME: encoding: [0xd2,0x7b,0x28,0x00]
+add.w	(0,%pc,%d2), %d1
+; CHECK:      add.w  (-1,%pc,%d2), %d2
+; CHECK-SAME: encoding: [0xd4,0x7b,0x28,0xff]
+add.w	(-1,%pc,%d2), %d2
 ; CHECK:      add.l  (0,%pc,%d1), %d0
 ; CHECK-SAME: encoding: [0xd0,0xbb,0x18,0x00]
 add.l	(0,%pc,%d1), %d0
@@ -16,6 +22,9 @@ adda.l	(0,%pc,%a2), %a1
 ; CHECK:      add.b  (0,%pc), %d0
 ; CHECK-SAME: encoding: [0xd0,0x3a,0x00,0x00]
 add.b	(0,%pc), %d0
+; CHECK:      add.w  (1,%pc), %d1
+; CHECK-SAME: encoding: [0xd2,0x7a,0x00,0x01]
+add.w	(1,%pc), %d1
 ; CHECK:      add.l  (-1,%pc), %d0
 ; CHECK-SAME: encoding: [0xd0,0xba,0xff,0xff]
 add.l	(-1,%pc), %d0
@@ -26,6 +35,12 @@ add.b	(0,%a0,%d1), %d0
 ; CHECK:      add.b  (-1,%a0,%d1), %d0
 ; CHECK-SAME: encoding: [0xd0,0x30,0x18,0xff]
 add.b	(-1,%a0,%d1), %d0
+; CHECK:      add.w  (0,%a1,%d1), %d0
+; CHECK-SAME: encoding: [0xd0,0x71,0x18,0x00]
+add.w	(0,%a1,%d1), %d0
+; CHECK:      add.w  (-1,%a1,%d2), %d0
+; CHECK-SAME: encoding: [0xd0,0x71,0x28,0xff]
+add.w	(-1,%a1,%d2), %d0
 ; CHECK:      add.l  (0,%a1,%d1), %d0
 ; CHECK-SAME: encoding: [0xd0,0xb1,0x18,0x00]
 add.l	(0,%a1,%d1), %d0
@@ -36,6 +51,9 @@ adda.l	(0,%a2,%a2), %a1
 ; CHECK:      add.b  (0,%a0), %d0
 ; CHECK-SAME: encoding: [0xd0,0x28,0x00,0x00]
 add.b	(0,%a0), %d0
+; CHECK:      add.w  (1,%a2), %d0
+; CHECK-SAME: encoding: [0xd0,0x6a,0x00,0x01]
+add.w	(1,%a2), %d0
 ; CHECK:      add.l  (-1,%a1), %d0
 ; CHECK-SAME: encoding: [0xd0,0xa9,0xff,0xff]
 add.l	(-1,%a1), %d0
@@ -43,6 +61,9 @@ add.l	(-1,%a1), %d0
 ; CHECK:      add.b  (%a0), %d0
 ; CHECK-SAME: encoding: [0xd0,0x10]
 add.b	(%a0), %d0
+; CHECK:      add.w  (%a2), %d0
+; CHECK-SAME: encoding: [0xd0,0x52]
+add.w	(%a2), %d0
 ; CHECK:      adda.l  (%a1), %a3
 ; CHECK-SAME: encoding: [0xd7,0xd1]
 adda.l	(%a1), %a3

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRRF.s b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRRF.s
index adb26d373db0e..3eda00ee8990b 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRRF.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRRF.s
@@ -1,5 +1,11 @@
 ; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
 
+; CHECK:      addx.b  %d1, %d0
+; CHECK-SAME: encoding: [0xd1,0x01]
+addx.b	%d1, %d0
+; CHECK:      addx.b  %d4, %d5
+; CHECK-SAME: encoding: [0xdb,0x04]
+addx.b	%d4, %d5
 ; CHECK:      addx.w  %d1, %d0
 ; CHECK-SAME: encoding: [0xd1,0x41]
 addx.w	%d1, %d0

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_EAd.s b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_EAd.s
index ef4fc90c69932..9351a14ee3d6a 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_EAd.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_EAd.s
@@ -1,5 +1,11 @@
 ; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
 
+; CHECK:      eor.b  %d1, %d0
+; CHECK-SAME: encoding: [0xb3,0x00]
+eor.b	%d1, %d0
+; CHECK:      eor.b  %d4, %d5
+; CHECK-SAME: encoding: [0xb9,0x05]
+eor.b	%d4, %d5
 ; CHECK:      eor.w  %d1, %d0
 ; CHECK-SAME: encoding: [0xb3,0x40]
 eor.w	%d1, %d0

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_xEA.s b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_xEA.s
index 8e4c29c5726b5..3096dedab8841 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_xEA.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_xEA.s
@@ -1,5 +1,11 @@
 ; RUN: llvm-mc -triple=m68k -show-encoding %s | FileCheck %s
 
+; CHECK:      add.b  %d1, %d0
+; CHECK-SAME: encoding: [0xd0,0x01]
+add.b	%d1, %d0
+; CHECK:      add.b  %d4, %d5
+; CHECK-SAME: encoding: [0xda,0x04]
+add.b	%d4, %d5
 ; CHECK:      add.w  %d1, %d0
 ; CHECK-SAME: encoding: [0xd0,0x41]
 add.w	%d1, %d0

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxCMP_BI.s b/llvm/test/MC/M68k/Arith/Classes/MxCMP_BI.s
index c1248059a0865..b1c442a4a5de7 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxCMP_BI.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxCMP_BI.s
@@ -6,6 +6,12 @@ cmpi.b	#0, $ffffffffffffffff
 ; CHECK:      cmpi.b  #-1, $0
 ; CHECK-SAME: encoding: [0x0c,0x39,0x00,0xff,0x00,0x00,0x00,0x00]
 cmpi.b	#-1, $0
+; CHECK:      cmpi.w  #0, $0
+; CHECK-SAME: encoding: [0x0c,0x79,0x00,0x00,0x00,0x00,0x00,0x00]
+cmpi.w	#0, $0
+; CHECK:      cmpi.w  #37, $ffffffffffffffff
+; CHECK-SAME: encoding: [0x0c,0x79,0x00,0x25,0xff,0xff,0xff,0xff]
+cmpi.w	#37, $ffffffffffffffff
 ; CHECK:      cmpi.l  #-1, $0
 ; CHECK-SAME: encoding: [0x0c,0xb9,0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00]
 cmpi.l	#-1, $0

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxCMP_MI.s b/llvm/test/MC/M68k/Arith/Classes/MxCMP_MI.s
index e53ce21e735b8..01f2a4279af4d 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxCMP_MI.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxCMP_MI.s
@@ -6,6 +6,12 @@ cmpi.b	#0, (-1,%pc,%d1)
 ; CHECK:      cmpi.b  #-1, (0,%pc,%d0)
 ; CHECK-SAME: encoding: [0x0c,0x3b,0x00,0xff,0x08,0x00]
 cmpi.b	#-1, (0,%pc,%d0)
+; CHECK:      cmpi.w  #0, (-1,%pc,%d3)
+; CHECK-SAME: encoding: [0x0c,0x7b,0x00,0x00,0x38,0xff]
+cmpi.w	#0, (-1,%pc,%d3)
+; CHECK:      cmpi.w  #37, (-2,%pc,%d2)
+; CHECK-SAME: encoding: [0x0c,0x7b,0x00,0x25,0x28,0xfe]
+cmpi.w	#37, (-2,%pc,%d2)
 ; CHECK:      cmpi.l  #-1, (0,%pc,%d7)
 ; CHECK-SAME: encoding: [0x0c,0xbb,0xff,0xff,0xff,0xff,0x78,0x00]
 cmpi.l	#-1, (0,%pc,%d7)
@@ -19,6 +25,12 @@ cmpi.b	#0, (0,%pc)
 ; CHECK:      cmpi.b  #-1, (-1,%pc)
 ; CHECK-SAME: encoding: [0x0c,0x3a,0x00,0xff,0xff,0xff]
 cmpi.b	#-1, (-1,%pc)
+; CHECK:      cmpi.w  #0, (-1,%pc)
+; CHECK-SAME: encoding: [0x0c,0x7a,0x00,0x00,0xff,0xff]
+cmpi.w	#0, (-1,%pc)
+; CHECK:      cmpi.w  #37, (-2,%pc)
+; CHECK-SAME: encoding: [0x0c,0x7a,0x00,0x25,0xff,0xfe]
+cmpi.w	#37, (-2,%pc)
 ; CHECK:      cmpi.l  #-1, (0,%pc)
 ; CHECK-SAME: encoding: [0x0c,0xba,0xff,0xff,0xff,0xff,0x00,0x00]
 cmpi.l	#-1, (0,%pc)
@@ -32,6 +44,12 @@ cmpi.b	#0, (-1,%a1,%a0)
 ; CHECK:      cmpi.b  #-1, (0,%a0,%a0)
 ; CHECK-SAME: encoding: [0x0c,0x30,0x00,0xff,0x88,0x00]
 cmpi.b	#-1, (0,%a0,%a0)
+; CHECK:      cmpi.w  #0, (-1,%a1,%a0)
+; CHECK-SAME: encoding: [0x0c,0x71,0x00,0x00,0x88,0xff]
+cmpi.w	#0, (-1,%a1,%a0)
+; CHECK:      cmpi.w  #37, (-2,%a0,%a0)
+; CHECK-SAME: encoding: [0x0c,0x70,0x00,0x25,0x88,0xfe]
+cmpi.w	#37, (-2,%a0,%a0)
 ; CHECK:      cmpi.l  #-1, (0,%a6,%a0)
 ; CHECK-SAME: encoding: [0x0c,0xb6,0xff,0xff,0xff,0xff,0x88,0x00]
 cmpi.l	#-1, (0,%a6,%a0)
@@ -45,6 +63,12 @@ cmpi.b	#0, (-1,%a1)
 ; CHECK:      cmpi.b  #-1, (0,%a0)
 ; CHECK-SAME: encoding: [0x0c,0x28,0x00,0xff,0x00,0x00]
 cmpi.b	#-1, (0,%a0)
+; CHECK:      cmpi.w  #0, (-1,%a1)
+; CHECK-SAME: encoding: [0x0c,0x69,0x00,0x00,0xff,0xff]
+cmpi.w	#0, (-1,%a1)
+; CHECK:      cmpi.w  #37, (-2,%a0)
+; CHECK-SAME: encoding: [0x0c,0x68,0x00,0x25,0xff,0xfe]
+cmpi.w	#37, (-2,%a0)
 ; CHECK:      cmpi.l  #-1, (0,%a6)
 ; CHECK-SAME: encoding: [0x0c,0xae,0xff,0xff,0xff,0xff,0x00,0x00]
 cmpi.l	#-1, (0,%a6)
@@ -58,6 +82,12 @@ cmpi.b	#0, (%a1)
 ; CHECK:      cmpi.b  #-1, (%a0)
 ; CHECK-SAME: encoding: [0x0c,0x10,0x00,0xff]
 cmpi.b	#-1, (%a0)
+; CHECK:      cmpi.w  #0, (%a1)
+; CHECK-SAME: encoding: [0x0c,0x51,0x00,0x00]
+cmpi.w	#0, (%a1)
+; CHECK:      cmpi.w  #37, (%a0)
+; CHECK-SAME: encoding: [0x0c,0x50,0x00,0x25]
+cmpi.w	#37, (%a0)
 ; CHECK:      cmpi.l  #-1, (%a6)
 ; CHECK-SAME: encoding: [0x0c,0x96,0xff,0xff,0xff,0xff]
 cmpi.l	#-1, (%a6)

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxCMP_RI.s b/llvm/test/MC/M68k/Arith/Classes/MxCMP_RI.s
index 14b0735effa87..00048b1daf763 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxCMP_RI.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxCMP_RI.s
@@ -6,6 +6,12 @@ cmpi.b	#0, %d1
 ; CHECK:      cmpi.b  #-1, %d0
 ; CHECK-SAME: encoding: [0x0c,0x00,0x00,0xff]
 cmpi.b	#-1, %d0
+; CHECK:      cmpi.w  #0, %d3
+; CHECK-SAME: encoding: [0x0c,0x43,0x00,0x00]
+cmpi.w	#0, %d3
+; CHECK:      cmpi.w  #37, %d2
+; CHECK-SAME: encoding: [0x0c,0x42,0x00,0x25]
+cmpi.w	#37, %d2
 ; CHECK:      cmpi.l  #13, %d7
 ; CHECK-SAME: encoding: [0x0c,0x87,0x00,0x00,0x00,0x0d]
 cmpi.l	#13, %d7

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxCMP_RM.s b/llvm/test/MC/M68k/Arith/Classes/MxCMP_RM.s
index 772268e100e73..1cbe507d3e5c9 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxCMP_RM.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxCMP_RM.s
@@ -6,6 +6,12 @@ cmp.b	(0,%pc,%d1), %d0
 ; CHECK:      cmp.b  (-1,%pc,%d1), %d0
 ; CHECK-SAME: encoding: [0xb0,0x3b,0x18,0xff]
 cmp.b	(-1,%pc,%d1), %d0
+; CHECK:      cmp.w  (0,%pc,%d1), %d0
+; CHECK-SAME: encoding: [0xb0,0x7b,0x18,0x00]
+cmp.w	(0,%pc,%d1), %d0
+; CHECK:      cmp.w  (-1,%pc,%d1), %d0
+; CHECK-SAME: encoding: [0xb0,0x7b,0x18,0xff]
+cmp.w	(-1,%pc,%d1), %d0
 ; CHECK:      cmp.l  (0,%pc,%d1), %d0
 ; CHECK-SAME: encoding: [0xb0,0xbb,0x18,0x00]
 cmp.l	(0,%pc,%d1), %d0
@@ -19,6 +25,12 @@ cmp.b	(0,%pc), %d0
 ; CHECK:      cmp.b  (-1,%pc), %d0
 ; CHECK-SAME: encoding: [0xb0,0x3a,0xff,0xff]
 cmp.b	(-1,%pc), %d0
+; CHECK:      cmp.w  (0,%pc), %d0
+; CHECK-SAME: encoding: [0xb0,0x7a,0x00,0x00]
+cmp.w	(0,%pc), %d0
+; CHECK:      cmp.w  (-1,%pc), %d0
+; CHECK-SAME: encoding: [0xb0,0x7a,0xff,0xff]
+cmp.w	(-1,%pc), %d0
 ; CHECK:      cmp.l  (0,%pc), %d0
 ; CHECK-SAME: encoding: [0xb0,0xba,0x00,0x00]
 cmp.l	(0,%pc), %d0
@@ -32,6 +44,12 @@ cmp.b	(0,%a0,%d1), %d0
 ; CHECK:      cmp.b  (-1,%a0,%d1), %d0
 ; CHECK-SAME: encoding: [0xb0,0x30,0x18,0xff]
 cmp.b	(-1,%a0,%d1), %d0
+; CHECK:      cmp.w  (0,%a3,%d2), %d1
+; CHECK-SAME: encoding: [0xb2,0x73,0x28,0x00]
+cmp.w	(0,%a3,%d2), %d1
+; CHECK:      cmp.w  (-1,%a4,%d1), %d0
+; CHECK-SAME: encoding: [0xb0,0x74,0x18,0xff]
+cmp.w	(-1,%a4,%d1), %d0
 ; CHECK:      cmp.l  (0,%a1,%d1), %d0
 ; CHECK-SAME: encoding: [0xb0,0xb1,0x18,0x00]
 cmp.l	(0,%a1,%d1), %d0
@@ -45,6 +63,12 @@ cmp.b	(0,%a0), %d0
 ; CHECK:      cmp.b  (-1,%a1), %d0
 ; CHECK-SAME: encoding: [0xb0,0x29,0xff,0xff]
 cmp.b	(-1,%a1), %d0
+; CHECK:      cmp.w  (0,%a0), %d0
+; CHECK-SAME: encoding: [0xb0,0x68,0x00,0x00]
+cmp.w	(0,%a0), %d0
+; CHECK:      cmp.w  (-1,%a1), %d0
+; CHECK-SAME: encoding: [0xb0,0x69,0xff,0xff]
+cmp.w	(-1,%a1), %d0
 ; CHECK:      cmp.l  (0,%a0), %d0
 ; CHECK-SAME: encoding: [0xb0,0xa8,0x00,0x00]
 cmp.l	(0,%a0), %d0
@@ -58,6 +82,12 @@ cmp.b	(%a0), %d0
 ; CHECK:      cmp.b  (%a0), %d1
 ; CHECK-SAME: encoding: [0xb2,0x10]
 cmp.b	(%a0), %d1
+; CHECK:      cmp.w  (%a1), %d0
+; CHECK-SAME: encoding: [0xb0,0x51]
+cmp.w	(%a1), %d0
+; CHECK:      cmp.w  (%a1), %d1
+; CHECK-SAME: encoding: [0xb2,0x51]
+cmp.w	(%a1), %d1
 ; CHECK:      cmp.l  (%a1), %d2
 ; CHECK-SAME: encoding: [0xb4,0x91]
 cmp.l	(%a1), %d2

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxCMP_RR.s b/llvm/test/MC/M68k/Arith/Classes/MxCMP_RR.s
index 1eb4bdbdab4d3..8045710b739df 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxCMP_RR.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxCMP_RR.s
@@ -6,6 +6,12 @@ cmp.b	%d0, %d1
 ; CHECK:      cmp.b  %d3, %d2
 ; CHECK-SAME: encoding: [0xb4,0x03]
 cmp.b	%d3, %d2
+; CHECK:      cmp.w  %d4, %d5
+; CHECK-SAME: encoding: [0xba,0x44]
+cmp.w	%d4, %d5
+; CHECK:      cmp.w  %d2, %d3
+; CHECK-SAME: encoding: [0xb6,0x42]
+cmp.w	%d2, %d3
 ; CHECK:      cmp.l  %d0, %d1
 ; CHECK-SAME: encoding: [0xb2,0x80]
 cmp.l	%d0, %d1

diff  --git a/llvm/test/MC/M68k/Arith/Classes/MxNEG.s b/llvm/test/MC/M68k/Arith/Classes/MxNEG.s
index 78286485cdbda..cf26646ad7556 100644
--- a/llvm/test/MC/M68k/Arith/Classes/MxNEG.s
+++ b/llvm/test/MC/M68k/Arith/Classes/MxNEG.s
@@ -3,6 +3,9 @@
 ; CHECK:      neg.b  %d0
 ; CHECK-SAME: encoding: [0x44,0x00]
 neg.b	%d0
+; CHECK:      neg.w  %d0
+; CHECK-SAME: encoding: [0x44,0x40]
+neg.w	%d0
 ; CHECK:      neg.l  %d0
 ; CHECK-SAME: encoding: [0x44,0x80]
 neg.l	%d0
@@ -10,6 +13,9 @@ neg.l	%d0
 ; CHECK:      negx.b  %d0
 ; CHECK-SAME: encoding: [0x40,0x00]
 negx.b	%d0
+; CHECK:      negx.w  %d0
+; CHECK-SAME: encoding: [0x40,0x40]
+negx.w	%d0
 ; CHECK:      negx.l  %d0
 ; CHECK-SAME: encoding: [0x40,0x80]
 negx.l	%d0


        


More information about the llvm-commits mailing list