[all-commits] [llvm/llvm-project] 614a57: [M68k] Add support for bitwise NOT instruction (#8...

Peter Lafreniere via All-commits all-commits at lists.llvm.org
Tue Apr 9 09:07:47 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 614a5780347ff0c8f82b8867660ea7fb4d9fdccb
      https://github.com/llvm/llvm-project/commit/614a5780347ff0c8f82b8867660ea7fb4d9fdccb
  Author: Peter Lafreniere <peter at n8pjl.ca>
  Date:   2024-04-09 (Tue, 09 Apr 2024)

  Changed paths:
    M llvm/lib/Target/M68k/M68kInstrArithmetic.td
    A llvm/test/CodeGen/M68k/Arith/unary.ll
    M llvm/test/CodeGen/M68k/Atomics/rmw.ll
    M llvm/test/MC/Disassembler/M68k/arithmetic.txt
    A llvm/test/MC/M68k/Arith/Classes/MxNOT.s

  Log Message:
  -----------
  [M68k] Add support for bitwise NOT instruction (#88049)

Currently the bitwise NOT instruction is not recognized. Add support for
using NOT on data registers. This is a partial implementation that puts
NOT at the same level of support as NEG currently enjoys.

Using not rather than eori cuts the length of the encoded instruction
in half or in thirds, leading to a reduction of 4-10 cycles per
instruction, on the original 68000.

This change includes tests for both bitwise and arithmetic negation.



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