[all-commits] [llvm/llvm-project] 6897c5: [M68k][MC] Add MC support for PCI w/ base displace...

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Sun May 31 14:19:56 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6897c5e24ce5e78afc2084f2c573577508443db1
      https://github.com/llvm/llvm-project/commit/6897c5e24ce5e78afc2084f2c573577508443db1
  Author: Min-Yih Hsu <min at myhsu.dev>
  Date:   2026-05-31 (Sun, 31 May 2026)

  Changed paths:
    M llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
    M llvm/lib/Target/M68k/Disassembler/M68kDisassembler.cpp
    M llvm/lib/Target/M68k/M68kAsmPrinter.cpp
    M llvm/lib/Target/M68k/M68kAsmPrinter.h
    M llvm/lib/Target/M68k/M68kISelDAGToDAG.cpp
    M llvm/lib/Target/M68k/M68kInstrControl.td
    M llvm/lib/Target/M68k/M68kInstrData.td
    M llvm/lib/Target/M68k/M68kInstrFormats.td
    M llvm/lib/Target/M68k/M68kInstrInfo.td
    M llvm/lib/Target/M68k/MCTargetDesc/M68kBaseInfo.h
    M llvm/lib/Target/M68k/MCTargetDesc/M68kInstPrinter.cpp
    M llvm/lib/Target/M68k/MCTargetDesc/M68kInstPrinter.h
    M llvm/lib/Target/M68k/MCTargetDesc/M68kMCCodeEmitter.cpp
    M llvm/lib/Target/M68k/MCTargetDesc/M68kMemOperandPrinter.h
    M llvm/test/MC/Disassembler/M68k/data.txt
    A llvm/test/MC/M68k/Data/Classes/lea-m68020.s
    M llvm/test/MC/M68k/Relocations/PIC/text-plt.s
    M llvm/test/MC/M68k/Relocations/text-plt.s

  Log Message:
  -----------
  [M68k][MC] Add MC support for PCI w/ base displacement addressing mode (#200696)

Program Counter Indirect with Index (PCI) is augmented in M68020+ with
(1) larger displacement (up to 32-bit), and (2) Index scaling factor. We
call this PCIBD (PCI with Base Displacement) to distinguish it with the
older PCI.
Since all the components inside PCIBD are optional, including index
register, we can actually use it to replace PCD (PC displacement)
addressing mode in newer machines in order to leverage the larger
displacement.

This is the first step to support 32-bit memory addresses on M68020+
machines.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list