[llvm] [M68k] Implement `CLR` instruction encoding and logic (PR #216636)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 23 09:27:10 PDT 2026


================
@@ -333,6 +335,16 @@ void M68kInstrInfo::AddZExt(MachineBasicBlock &MBB,
                             MachineBasicBlock::iterator I, DebugLoc DL,
                             unsigned Reg, MVT From, MVT To) const {
 
+  // On 68000, SWAP -> CLR -> SWAP is faster than AND with mask.
----------------
knickish wrote:

Where do 68010/68008 fall? 

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


More information about the llvm-commits mailing list