Skip to content

Add to/from SR instr usage and SR uses/defs #122605

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

knickish
Copy link
Contributor

No description provided.

Copy link

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff ba58d35019ae40641ae454472a43965a7bee5696 221f07cbd954167460476f9b66a95a2db2011582 --extensions h,cpp -- llvm/lib/Target/M68k/M68kInstrInfo.cpp llvm/lib/Target/M68k/M68kSubtarget.h
View the diff from clang-format here.
diff --git a/llvm/lib/Target/M68k/M68kInstrInfo.cpp b/llvm/lib/Target/M68k/M68kInstrInfo.cpp
index e83f2a7d81..240a5394d5 100644
--- a/llvm/lib/Target/M68k/M68kInstrInfo.cpp
+++ b/llvm/lib/Target/M68k/M68kInstrInfo.cpp
@@ -760,7 +760,8 @@ void M68kInstrInfo::copyPhysReg(MachineBasicBlock &MBB,
   bool ToCCR = DstReg == M68k::CCR;
   bool ToSR = DstReg == M68k::SR;
 
-  assert((FromCCR+FromSR+ToCCR+ToSR) <= 1 && "Copies may only touch one of either SR or CCR");
+  assert((FromCCR + FromSR + ToCCR + ToSR) <= 1 &&
+         "Copies may only touch one of either SR or CCR");
 
   if (FromCCR) {
     if (M68k::DR8RegClass.contains(DstReg)) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant