diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2012-02-15 13:15:56 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2012-02-15 13:15:56 +0000 |
commit | 2da8c1adcf5cefd0274f26077fadbfaeb0216344 (patch) | |
tree | a4151173e9e16b606e0e6fa3862aa8300e82d656 /gcc/config/avr/avr-tables.opt | |
parent | 28db21ee45c94316cb9e7b2b4e0f908053fc98ce (diff) | |
download | gcc-2da8c1adcf5cefd0274f26077fadbfaeb0216344.zip gcc-2da8c1adcf5cefd0274f26077fadbfaeb0216344.tar.gz gcc-2da8c1adcf5cefd0274f26077fadbfaeb0216344.tar.bz2 |
re PR target/52261 ([avr] Add support for AVR Xmega cores)
libgcc/
PR target/52261
* config/avr/lib1funcs.S (__prologue_saves__): Handle AVR_XMEGA
(__epilogue_restores__): Ditto.
gcc/
PR target/52261
* config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
avrxmega4, avrxmega5, avrxmega6, avrxmega7.
Rewrite initializers for .macro.
* config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
atxmega32d4, atxmega32x1.
avrxmega4: atxmega64a3, atxmega64d3.
avrxmega5: atxmega64a1, atxmega64a1u.
avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
avrxmega7: atxmega128a1, atxmega128a1u.
* config/avr/multilib.h: Regenerate.
* config/avr/t-multilib: Regenerate.
* config/avr/avr-tables.opt: Regenerate.
* config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
(struct base_arch_s): Rename reserved to xmega_p.
Rename reserved2 to have_rampd.
(AVR_XMEGA): New define.
(AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
(AVR_HAVE_RAMPZ): Change definition to fit xmega.
* config/avr/predicates.md (io_address_operand): Take into
account SFR offset.
(low_io_address_operand): Ditto.
(high_io_address_operand): Ditto.
* config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
(enabled, movhi_sp_r): Use them.
* config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
cpp_define_formatted to built-in define __AVR_ARCH__.
(__AVR_XMEGA__): New built-in define.
(__AVR_HAVE_RAMPD__): New built-in define.
(__AVR_HAVE_RAMPX__): New built-in define.
(__AVR_HAVE_RAMPY__): New built-in define.
(__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
* config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
(avr_option_override): Initialize them.
(sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
(avr_init_expanders): Initialize them. No more block several calls.
(emit_push_sfr): New static function.
(avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
Handle AVR_XMEGA.
(expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
(avr_print_operand): Print addreeses as symbols for
RAMPX, RAMPY, RAMPD, CCP.
(output_movhi): Handle AVR_XMEGA when writing to SP.
(avr_out_movhi_mr_r_xmega): New static function.
(out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
(avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
__RAMPD__, __CCP__ as needed.
Co-Authored-By: Anatoly Sokolov <aesok@post.ru>
Co-Authored-By: Eric Weddington <eric.weddington@atmel.com>
From-SVN: r184269
Diffstat (limited to 'gcc/config/avr/avr-tables.opt')
-rw-r--r-- | gcc/config/avr/avr-tables.opt | 87 |
1 files changed, 81 insertions, 6 deletions
diff --git a/gcc/config/avr/avr-tables.opt b/gcc/config/avr/avr-tables.opt index 90b41d5..32fc179 100644 --- a/gcc/config/avr/avr-tables.opt +++ b/gcc/config/avr/avr-tables.opt @@ -504,20 +504,95 @@ EnumValue Enum(avr_mcu) String(atmega2561) Value(159) EnumValue -Enum(avr_mcu) String(avr1) Value(160) +Enum(avr_mcu) String(avrxmega2) Value(160) EnumValue -Enum(avr_mcu) String(at90s1200) Value(161) +Enum(avr_mcu) String(atxmega16a4) Value(161) EnumValue -Enum(avr_mcu) String(attiny11) Value(162) +Enum(avr_mcu) String(atxmega16d4) Value(162) EnumValue -Enum(avr_mcu) String(attiny12) Value(163) +Enum(avr_mcu) String(atxmega16x1) Value(163) EnumValue -Enum(avr_mcu) String(attiny15) Value(164) +Enum(avr_mcu) String(atxmega32a4) Value(164) EnumValue -Enum(avr_mcu) String(attiny28) Value(165) +Enum(avr_mcu) String(atxmega32d4) Value(165) + +EnumValue +Enum(avr_mcu) String(atxmega32x1) Value(166) + +EnumValue +Enum(avr_mcu) String(avrxmega4) Value(167) + +EnumValue +Enum(avr_mcu) String(atxmega64a3) Value(168) + +EnumValue +Enum(avr_mcu) String(atxmega64d3) Value(169) + +EnumValue +Enum(avr_mcu) String(avrxmega5) Value(170) + +EnumValue +Enum(avr_mcu) String(atxmega64a1) Value(171) + +EnumValue +Enum(avr_mcu) String(atxmega64a1u) Value(172) + +EnumValue +Enum(avr_mcu) String(avrxmega6) Value(173) + +EnumValue +Enum(avr_mcu) String(atxmega128a3) Value(174) + +EnumValue +Enum(avr_mcu) String(atxmega128d3) Value(175) + +EnumValue +Enum(avr_mcu) String(atxmega192a3) Value(176) + +EnumValue +Enum(avr_mcu) String(atxmega192d3) Value(177) + +EnumValue +Enum(avr_mcu) String(atxmega256a3) Value(178) + +EnumValue +Enum(avr_mcu) String(atxmega256a3b) Value(179) + +EnumValue +Enum(avr_mcu) String(atxmega256a3bu) Value(180) + +EnumValue +Enum(avr_mcu) String(atxmega256d3) Value(181) + +EnumValue +Enum(avr_mcu) String(avrxmega7) Value(182) + +EnumValue +Enum(avr_mcu) String(atxmega128a1) Value(183) + +EnumValue +Enum(avr_mcu) String(atxmega128a1u) Value(184) + +EnumValue +Enum(avr_mcu) String(avr1) Value(185) + +EnumValue +Enum(avr_mcu) String(at90s1200) Value(186) + +EnumValue +Enum(avr_mcu) String(attiny11) Value(187) + +EnumValue +Enum(avr_mcu) String(attiny12) Value(188) + +EnumValue +Enum(avr_mcu) String(attiny15) Value(189) + +EnumValue +Enum(avr_mcu) String(attiny28) Value(190) |