[PATCH] D32991: [ELF] Initial migration of AVR target
Dylan McKay via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 8 17:12:21 PDT 2017
dylanmckay added a comment.
> ../tools/lld/test/ELF/basic-avr.s:7:3: error: instruction requires a CPU feature not currently enabled
>
> call foo
> ^
>
> ../tools/lld/test/ELF/basic-avr.s:10:3: error: instruction requires a CPU feature not currently enabled
>
> jmp foo
This is caused because unless you specify a target mcu, it will default to the bare minimum - the `avr2` architecture, as with avr-gcc. Devices that fit into this category do not even have `call`/`jmp` instructions, and so you likely just need to pass something like `atmega328p` as the target CPU to `llvm-mc`.
Repository:
rL LLVM
https://reviews.llvm.org/D32991
More information about the llvm-commits
mailing list