[PATCH] D69849: [mips] Implement Octeon+ `saa` and `saad` instructions

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 5 08:01:05 PST 2019


atanasyan created this revision.
atanasyan added a reviewer: Petar.Avramovic.
Herald added subscribers: jfb, jrtc27, hiraditya, arichardson, sdardis.
Herald added a project: LLVM.

`saa` and `saad` are 32-bit and 64-bit store atomic add instructions.

   
  memory[base] = memory[base] + rt
   

These instructions are available for "Octeon+" CPU. The patch adds support for both instructions to MIPS assembler and diassembler and introduces new CPU type - "octeon+".

      

Next patches will implement `.set arch=octeon+` directive and `AFL_EXT_OCTEONP` ISA extension flag support.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D69849

Files:
  llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  llvm/lib/Target/Mips/Disassembler/MipsDisassembler.cpp
  llvm/lib/Target/Mips/Mips.td
  llvm/lib/Target/Mips/Mips64InstrInfo.td
  llvm/lib/Target/Mips/MipsInstrFormats.td
  llvm/lib/Target/Mips/MipsInstrInfo.td
  llvm/lib/Target/Mips/MipsScheduleGeneric.td
  llvm/lib/Target/Mips/MipsScheduleP5600.td
  llvm/lib/Target/Mips/MipsSubtarget.cpp
  llvm/lib/Target/Mips/MipsSubtarget.h
  llvm/test/MC/Disassembler/Mips/octeonp/valid-el.txt
  llvm/test/MC/Disassembler/Mips/octeonp/valid.txt
  llvm/test/MC/Mips/cnmipsp/invalid.s
  llvm/test/MC/Mips/cnmipsp/valid.s
  llvm/test/MC/Mips/elf_eflags.s
  llvm/test/MC/Mips/elf_header.s
  llvm/test/MC/Mips/macro-saa.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69849.227879.patch
Type: text/x-patch
Size: 25783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191105/e2605001/attachment.bin>


More information about the llvm-commits mailing list