[PATCH] D142298: [AVR] Emit 'eicall' for devices with large program memory

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 21 21:55:49 PST 2023


benshi001 added inline comments.


================
Comment at: llvm/test/CodeGen/AVR/issue-58856-eicall.ll:21
+; EICALL:       ; %bb.0:
+; EICALL-NEXT:    ldi r30, lo8_gs(func)
+; EICALL-NEXT:    ldi r31, hi8_gs(func)
----------------
This form is incompatible with avr-gcc, avr-gcc emits `lo8(gs(sym))` and `hi8(gs(sym))`. However this is another issue, at least clang+llvm generates correct relocable and executable ELFs.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D142298/new/

https://reviews.llvm.org/D142298



More information about the llvm-commits mailing list