[all-commits] [llvm/llvm-project] 1420f4: [AVR] Fix I/O instructions on XMEGA

Dylan McKay via All-commits all-commits at lists.llvm.org
Sun May 17 00:47:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1420f4efbe7ca34355b2dd85d396197d92cd5e3f
      https://github.com/llvm/llvm-project/commit/1420f4efbe7ca34355b2dd85d396197d92cd5e3f
  Author: Dylan McKay <me at dylanmckay.io>
  Date:   2020-05-17 (Sun, 17 May 2020)

  Changed paths:
    M llvm/lib/Target/AVR/AVRDevices.td
    M llvm/lib/Target/AVR/AVRInstrInfo.td
    M llvm/lib/Target/AVR/AVRSubtarget.cpp
    M llvm/lib/Target/AVR/AVRSubtarget.h
    A llvm/test/CodeGen/AVR/features/xmega_io.ll

  Log Message:
  -----------
  [AVR]  Fix I/O instructions on XMEGA

Summary:
On XMEGA, I/O address space is same as data address space - there is no 0x20 offset,
because CPU General Purpose Registers are not mapped in data address space.

>From https://en.wikipedia.org/wiki/AVR_microcontrollers
> In the XMEGA variant, the working register file is not mapped into the data address space; as such, it is not possible to treat any of the XMEGA's working registers as though they were SRAM. Instead, the I/O registers are mapped into the data address space starting at the very beginning of the address space.

Reviewers: dylanmckay

Reviewed By: dylanmckay

Subscribers: hiraditya, Jim, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77207

Patch by Vlastimil Labsky.


  Commit: 1335737ee119b59bc25ee6d1bb200cf3b975e196
      https://github.com/llvm/llvm-project/commit/1335737ee119b59bc25ee6d1bb200cf3b975e196
  Author: Dylan McKay <me at dylanmckay.io>
  Date:   2020-05-17 (Sun, 17 May 2020)

  Changed paths:
    M llvm/lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
    M llvm/test/MC/AVR/relocations.s

  Log Message:
  -----------
  [LLVM][AVR] Support for R_AVR_6 fixup

Summary: Handle the emission of `R_AVR_6` ELF relocation type.

Reviewers: dylanmckay

Reviewed By: dylanmckay

Subscribers: hiraditya, Jim, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78721

Patch by @LemonBoy https://reviews.llvm.org/p/LemonBoy/


Compare: https://github.com/llvm/llvm-project/compare/3841ed4104ac...1335737ee119


More information about the All-commits mailing list