[llvm] [M68k] Handle 16 bit MOVs to and from CCR (PR #114714)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 10 15:38:59 PST 2024


================
@@ -571,6 +573,17 @@ bool M68kInstrInfo::ExpandPUSH_POP(MachineInstrBuilder &MIB,
 }
 
 bool M68kInstrInfo::ExpandCCR(MachineInstrBuilder &MIB, bool IsToCCR) const {
+  switch (MIB->getOpcode()) {
----------------
mshockwave wrote:

could we just use if statement here?

https://github.com/llvm/llvm-project/pull/114714


More information about the llvm-commits mailing list