[llvm] ba58d35 - [M68k] Use M68010 cpu as target for SR move test (#122452)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 11 06:18:09 PST 2025


Author: Janis Heims
Date: 2025-01-11T08:18:05-06:00
New Revision: ba58d35019ae40641ae454472a43965a7bee5696

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

LOG: [M68k] Use M68010 cpu as target for SR move test (#122452)

Fixes the test introduced in #111145.

It would also make sense to throw an error when the user attempts to use
a move-from-sr on an unsupported architecture. Currently the encoder
generates garbage instructions for a 68000 because the AsmMatcher is
able to match the move against a MOV16rr

Added: 
    

Modified: 
    llvm/test/MC/M68k/Data/Classes/MxMoveSR.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/MC/M68k/Data/Classes/MxMoveSR.s b/llvm/test/MC/M68k/Data/Classes/MxMoveSR.s
index 03189311badb8e..e999345f43fc3e 100644
--- a/llvm/test/MC/M68k/Data/Classes/MxMoveSR.s
+++ b/llvm/test/MC/M68k/Data/Classes/MxMoveSR.s
@@ -1,4 +1,4 @@
-; RUN: llvm-mc -triple=m68k -mcpu=M68000 -show-encoding %s | FileCheck %s
+; RUN: llvm-mc -triple=m68k -mcpu=M68010 -show-encoding %s | FileCheck %s
 
 ; CHECK:      move.w  %d1, %sr
 ; CHECK-SAME: encoding: [0x46,0xc1]


        


More information about the llvm-commits mailing list