[PATCH] D155917: [LoongArch] Add definition for LVZ/LBT instructions

wanglei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 23:08:48 PDT 2023


wangleiat created this revision.
wangleiat added reviewers: SixWeining, xen0n, xry111, gonglingqin, hev.
Herald added a subscriber: hiraditya.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch defines the `LVZ` and `LBT` extension instructions, which
provide enough definitions for llvm-mc and llvm-objdump to correctly
handle these instructions.

It also defines the `SCR` (Scratchpad Register) register class, which
are used by the `LBT` extension instructions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D155917

Files:
  llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
  llvm/lib/Target/LoongArch/Disassembler/LoongArchDisassembler.cpp
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchLBTInstrFormats.td
  llvm/lib/Target/LoongArch/LoongArchLBTInstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchLVZInstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchRegisterInfo.td
  llvm/test/MC/LoongArch/lbt/arm-alu.s
  llvm/test/MC/LoongArch/lbt/arm-jump.s
  llvm/test/MC/LoongArch/lbt/arm-mov.s
  llvm/test/MC/LoongArch/lbt/arm-shift.s
  llvm/test/MC/LoongArch/lbt/base.s
  llvm/test/MC/LoongArch/lbt/scr.s
  llvm/test/MC/LoongArch/lbt/x86-alu.s
  llvm/test/MC/LoongArch/lbt/x86-jump.s
  llvm/test/MC/LoongArch/lbt/x86-misc.s
  llvm/test/MC/LoongArch/lbt/x86-shift.s
  llvm/test/MC/LoongArch/lvz/lvz-err.s
  llvm/test/MC/LoongArch/lvz/lvz.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155917.542771.patch
Type: text/x-patch
Size: 45055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230721/e4b7d90a/attachment.bin>


More information about the llvm-commits mailing list