Skip to content

Commit

Permalink
[M68k] Use M68010 cpu as target for SR move test (#122452)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TechnoElf authored Jan 11, 2025
1 parent 38fcf62 commit ba58d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/test/MC/M68k/Data/Classes/MxMoveSR.s
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit ba58d35

Please sign in to comment.