-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[M68k] Use M68010 cpu as target for SR move test #122452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-mc @llvm/pr-subscribers-backend-m68k Author: Janis Heims (TechnoElf) ChangesFixes 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:
I haven't found a solution for this yet, so any ideas you have would be greatly appreciated. @mshockwave @knickish Full diff: https://github.com/llvm/llvm-project/pull/122452.diff 1 Files Affected:
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]
|
Ah, I had not realized that was the issue. I don't have the bandwidth to work on this (immediately at least), do you think this is best handled with this patch or a revert? |
I guess we can patch the test for now and add proper errors later. This affects move-from-ccr as well, so it'd probably be better to make a separate patch for that anyway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's either merge this or revert the original change. Having tests broken for 2 days is not nice.
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/11824 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/6678 Here is the relevant piece of the build log for the reference
|
Fixes the test introduced in llvm#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
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:
I haven't found a solution for this yet, so any ideas you have would be greatly appreciated.
@mshockwave @knickish