Skip to content

Commit ba58d35

Browse files
authored
[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
1 parent 38fcf62 commit ba58d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llvm-mc -triple=m68k -mcpu=M68000 -show-encoding %s | FileCheck %s
1+
; RUN: llvm-mc -triple=m68k -mcpu=M68010 -show-encoding %s | FileCheck %s
22

33
; CHECK: move.w %d1, %sr
44
; CHECK-SAME: encoding: [0x46,0xc1]

0 commit comments

Comments
 (0)