summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.target/avr
Commit message (Collapse)AuthorAgeFilesLines
* gcc/gjl2014-06-121-0/+134
| | | | | | | | | | | | | | | | | | | | Backport from 2014-05-09 trunk r210272 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in unsigned int initializers for regno_in, regno_out. Backport from 2014-06-12 trunk r211491 PR target/61443 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when loading from address spaces. gcc/testsuite/ Backport from 2014-06-12 trunk r211491 PR target/61443 * gcc.target/avr/torture/pr61443.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@211492 138bc75d-0d04-0410-961f-82ee72b054a4
* Backport from mainlinedenisc2014-05-121-0/+21
| | | | | | | | | | | | | | | | | | | 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> PR target/60991 * config/avr/avr.c (avr_out_store_psi): Use correct constant to restore Y. Backport from mainline 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> PR target/60991 * gcc.target/avr/pr60991.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210327 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/config/avrgjl2014-05-091-0/+88
| | | | | | | | | | | | | | | | | | | | | Backport from 2014-05-09 trunk r210267 PR target/61055 * config/avr/avr.md (cc): Add new attribute set_vzn. (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]: Set cc insn attribute to set_vzn instead of set_zn for alternatives with INC, DEC or NEG. * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN. (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN. INC, DEC and ADD+ADC set cc0 to CC_CLOBBER. gcc/testsuite/ Backport from 2014-05-09 trunk r210267 PR target/61055 * gcc.target/avr/torture/pr61055.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210268 138bc75d-0d04-0410-961f-82ee72b054a4
* * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have devicedenisc2014-04-051-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | specific ISA/ feature information. Remove short_sp and errata_skip ds. Add avr_device_specific_features enum to have device specific info. * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available. * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for updated device specific info. * config/avr/avr-mcus.def: Merge device specific details to dev_attribute field. * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check errata_skip. * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info. * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to assembler if RMW isa supported by current device. * config/avr/genmultilib.awk: Update as device info structure changed. * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro * gcc.target/avr/dev-specific-rmw.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209141 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyright years in gcc/rsandifo2014-01-022-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206289 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:amylaar2013-10-301-0/+23
| | | | | | | | | | | | | | | PR other/58545 * reload1.c (update_eliminables_and_spill): New function, broken out of reload. (reload): Use it. Check for frame size change after frame size alignment, and call update_eliminables_and_spill first if continue-ing. gcc/testsuite: PR other/58545 * gcc.target/avr/pr58545.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204234 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/progmem-error-1.cpp: Update linenumber of error.amylaar2013-08-191-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201837 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2013-07-191-9/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR target/57516 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn. * config/avr/avr.md (adjust_len): Add `round'. * config/avr/avr-protos.h (avr_out_round): New prototype. (avr_out_plus): Add `out_label' argument. * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument. (avr_out_plus): Pass down `out_label' to avr_out_plus_1. Handle the case where `insn' is just a pattern. (avr_out_bitop): Handle the case where `insn' is just a pattern. (avr_out_round): New function. (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND. libgcc/ PR target/57516 * config/avr/lib1funcs-fixed.S (__roundqq3, __rounduqq3) (__round_s2_const, __round_u2_const) (__round_s4_const, __round_u4_const, __round_x8): Saturate result if addition result cannot be represented. gcc/testsuite/ PR target/57516 * gcc.target/avr/torture/builtins-4-roundfx.c (test2hr, test2k): Adjust to corrected rounding. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201051 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2013-07-111-0/+17
| | | | | | | | | | | | | PR target/57631 * config/avr/avr.c (avr_set_current_function): Sanity-check signal name seen by assembler/linker rather if available. gcc/testsuite/ PR target/57631 * gcc.target/avr/torture/pr57631.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200901 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2013-02-082-0/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR target/54222 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add. * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators. (round<mode>3, round<mode>3_const): New expanders for fixed-mode. (*round<mode>3.libgcc): New insns for fixed-modes. * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME. (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs. (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs. * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline implementations. Define to __builtin_avr_absFX, __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively. (roundFX, countlsFX): Define to __builtin_avr_roundFX, __builtin_avr_countlsFX, respectively. * config/avr/avr-c.c (target.h): Include it. (enum avr_builtin_id): New enum. (avr_resolve_overloaded_builtin): New static function. (avr_register_target_pragmas): Use it to set targetm.resolve_overloaded_builtin. * config/avr/avr.c (avr_init_builtins): Supply myriads of local tree nodes used by DEF_BUILTIN. (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them. (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR. <AVR_BUILTIN_xxBITS>: Same. libgcc/ PR target/54222 * config/avr/lib2funcs.c: New C sources for modules for libgcc.a. * config/avr/lib2-object.mk: New iterator to build objects from it. * config/avr/t-avr: Iterate lib2-object.mk to build objects from lib2funcs.c. (LIB2FUNCS_EXCLUDE): Add _clrsbdi2. (LIB1ASMFUNCS): Add: _ssabs_1, _mask1, _ret, _roundqq3, _rounduqq3, _round_s2, _round_u2, _round_2_const, _addmask_2, _round_s4, _round_u4, _round_4_const, _addmask_4, _round_x8, _rounddq3 _roundudq3, _roundda3 _rounduda3, _roundta3 _rounduta3. * config/avr/lib1funcs-fixed.S: Implement them. gcc/testsuite/ PR target/54222 * gcc.target/avr/torture/builtins-4-roundfx.c: New test. * gcc.target/avr/torture/builtins-5-countlsfx.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195878 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2013-01-251-0/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | PR target/54222 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument. Add NULL LIBNAME argument to existing definitions. (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New. * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument. * config/avr/avr.c (DEF_BUILTIN): Same. (avr_init_builtins): Pass down LIBNAME to add_builtin_function. (avr_expand_builtin): Expand to a vanilla call if a libgcc implementation is available (DECL_ASSEMBLER_NAME is set). (avr_fold_absfx): New static function. (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR, AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR, AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK, AVR_BUILTIN_ABSLLK. * config/avr/stdfix.h (abshr, absr, abslr, absllr) (abshk, absk, abslk, absllk): Provide as static inline functions. gcc/testsuite/ PR target/54222 * gcc.target/avr/torture/builtins-3-absfx.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195464 138bc75d-0d04-0410-961f-82ee72b054a4
* Update copyright years in gcc/rsandifo2013-01-102-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195098 138bc75d-0d04-0410-961f-82ee72b054a4
* Update Copyright years for files modified in 2011 and/or 2012.jakub2013-01-042-2/+2
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194903 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2012-09-1517-0/+1053
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR target/54222 * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S, ALL124U): New mode iterators. (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS. (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS. (usneg<mode>2): New insns. (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS. (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS. * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators. (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead. (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS. (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS. (<code_stdname><mode>3_insn): New insns. (<code_stdname><mode>3_const_insn): New insns. * config/avr/avr.md (cc): Add: plus. Remove: out_plus, out_plus_noclobber, minus. (length): Add: plus. Remove: out_plus, out_plus_noclobber, plus64, minus, minus64. (abelian): New code_attr. (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs, us_plus, us_minus, us_neg. (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3): Use avr_out_plus to output. * config/avr/avr-protos.h (avr_out_plus): Change prototype. (avr_out_plus_noclobber, avr_out_minus): Remove. (avr_out_plus64, avr_out_minus64): Remove. * config/avr/avr.c (avr_out_plus_1): Add new default arguments code_sat, sign. Saturate after operation if code_sat != UNKNOWN. (avr_out_plus_symbol): New static function. (avr_out_plus): Rewrite. (adjust_insn_length): Handle: ADJUST_LEN_PLUS. Remove handling of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER. (notice_update_cc): Handle: CC_PLUS. Remove handling of: CC_MINUS, CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER (avr_out_plus_noclobber, avr_out_minus): Remove. (avr_out_plus64, avr_out_minus64): Remove. (avr_print_operand): Print raw REGNO if 'r' is used with REG. libgcc/ PR target/54222 * config/avr/lib1funcs-fixed.S (__ssneg_2, __ssabs_2, __ssneg_4, __ssabs_4, __clr_8, __ssneg_8, __ssabs_8, __usadd_8, __ussub_8, __ssadd_8, __sssub_8): New functions. (__divsa3): Use __negsi2 to negate r_quoL. * config/avr/lib1funcs.S (FALIAS): New macro. (__divmodsi4): Break out and use __divmodsi4_neg1 as... (__negsi2): ...this new function. * config/avr/t-avr (LIB1ASMFUNCS): Add _negsi2, _clr_8, _ssneg_2, _ssneg_4, _ssneg_8, _ssabs_2, _ssabs_4, _ssabs_8, _ssadd_8, _sssub_8, _usadd_8, _ussub_8. (LIB2FUNCS_EXCLUDE): Fix typo for _add _sub. Add: _ssadd*, _sssub*, _ssneg*, _ssabs* for signed fixed modes. Add: _usadd*, _ussub*, _usneg* for unsigned fixed modes. gcc/testsuite/ PR target/54222 * gcc.target/avr/torture/fix-types.h: New. * gcc.target/avr/torture/vals-hr.def: New. * gcc.target/avr/torture/vals-r.def: New. * gcc.target/avr/torture/vals-k.def: New. * gcc.target/avr/torture/vals-ur.def: New. * gcc.target/avr/torture/vals-uk.def: New. * gcc.target/avr/torture/vals-uhr.def: New. * gcc.target/avr/torture/vals-llk.def: New. * gcc.target/avr/torture/vals-ullk.def: New. * gcc.target/avr/torture/sat-hr-plus-minus.c: New. * gcc.target/avr/torture/sat-r-plus-minus.c: New. * gcc.target/avr/torture/sat-k-plus-minus.c: New. * gcc.target/avr/torture/sat-ur-plus-minus.c: New. * gcc.target/avr/torture/sat-uk-plus-minus.c: New. * gcc.target/avr/torture/sat-uhr-plus-minus.c: New. * gcc.target/avr/torture/sat-llk-plus-minus.c: New. * gcc.target/avr/torture/sat-ullk-plus-minus.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191345 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2012-03-281-0/+46
| | | | | | | | | | | | | | | | | | PR target/52692 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define. (avr_builtin_decl): New static function. (struct avr_builtin_description, avr_bdesc): Move up. Add GTY marker. Add field fndecl. Remove redundant field id. (avr_init_builtins): Initialize avr_bdesc[ID].fndecl. (avr_expand_builtin): Code cleanup because .id is removed. testsuite/ PR target/52692 * gcc.target/avr/torture/builtins-2.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185910 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/torture/avr-torture.exp (AVR_TORTURE_OPTIONS):gjl2012-03-261-0/+1
| | | | | | | | Add "-Os -flto" to list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185793 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/progmem.h (pgm_read_char): Define depending ongjl2012-03-201-0/+11
| | | | | | | | __AVR_HAVE_LPMX__ git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185583 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/49868gjl2012-03-205-0/+133
| | | | | | | | | | | | * gcc.target/avr/torture/addr-space-2.h: New file. * gcc.target/avr/torture/addr-space-2-g.h: New test. * gcc.target/avr/torture/addr-space-2-0.h: New test. * gcc.target/avr/torture/addr-space-2-1.h: New test. * gcc.target/avr/torture/addr-space-2-x.h: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185570 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/49868gjl2012-03-125-0/+107
| | | | | | | | | | | | | * gcc.target/avr/torture/addr-space-1.h: New file. * gcc.target/avr/torture/addr-space-g.h: New test. * gcc.target/avr/torture/addr-space-0.h: New test. * gcc.target/avr/torture/addr-space-1.h: New test. * gcc.target/avr/torture/addr-space-x.h: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185255 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/torture/builtins-1.c: New test.gjl2012-02-282-0/+49
| | | | | | | | * gcc.target/avr/torture/builtins-error.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184617 138bc75d-0d04-0410-961f-82ee72b054a4
* PR middle-end/51782gjl2012-02-211-0/+51
| | | | | | | | * gcc.target/avr/torture/pr51782-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184434 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/testsuite/gjl2012-02-152-0/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gcc.target/avr/torture/builtin_insert_bits-1.c: New test. * gcc.target/avr/torture/builtin_insert_bits-2.c: New test. gcc/ * doc/extend.texi (AVR Built-in Functions): Remove doc for __builtin_avr_map8, __builtin_avr_map16. Document __builtin_avr_insert_bits. * config/avr/avr.md (map_bitsqi, map_bitshi): Remove. (insert_bits): New insn. (adjust_len.map_bits): Rename to insert_bits. (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS. * avr-protos.h (avr_out_map_bits): Remove. (avr_out_insert_bits, avr_has_nibble_0xf): New. * config/avr/constraints.md (Cxf,C0f): New. * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16. New built-in define __BUILTIN_AVR_INSERT_BITS. * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define. (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS. (avr_move_bits): Rewrite. (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static functions. (avr_map_op_t): New typedef. (avr_map_op): New static variable. (avr_out_insert_bits, avr_has_nibble_0xf): New functions. (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS. (avr_init_builtins): Add definition for __builtin_avr_insert_bits. (bdesc_3arg, avr_expand_triop_builtin): New. (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS. (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove. (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove. (avr_map_equal_p, avr_map_sig_p): Remove. (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove. (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS. (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16. (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184264 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/51374gjl2012-02-011-0/+1
| | | | | | | | | * gcc.target/avr/torture/pr51374-1.c: Also fail if SBIS is seen. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183798 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2012-02-011-0/+14
| | | | | | | | | | | | | | PR rtl-optimization/51374 * combine.c (can_combine_p): Don't allow volatile_refs_p insns to cross other volatile_refs_p insns. gcc/testsuite/ PR rtl-optimization/51374 * testsuite/gcc.target/avr/torture/pr51374-1.c: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183796 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/torture/int24-mul.c: Rename __pgm to __flash.gjl2012-01-251-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183535 138bc75d-0d04-0410-961f-82ee72b054a4
* libgcc/gjl2011-12-141-0/+86
| | | | | | | | | | | | | | | | | | | | | PR target/50931 * config/avr/t-avr (LIB1ASMSRC): Add _mulpsi3, _mulsqipsi3. * config/avr/lib1funcs.S (__mulpsi3, __mulsqipsi3): New functions. gcc/ PR target/50931 * config/avr/avr.md (mulpsi3): New expander. (*umulqihipsi3, *umulhiqipsi3): New insns. (*mulsqipsi3.libgcc, *mulpsi3.libgcc): New insns. (mulsqipsi3, *mulpsi3): New insn-and-splits. (ashlpsi3): Turn to expander. Move insn code to... (*ashlpsi3): ...this new insn. testsuite/ PR target/50931 * gcc.target/avr/torture/int24-mul.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182328 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2011-09-121-61/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | PR target/43746 * config/avr/avr.c (AVR_SECTION_PROGMEM): New Define. (progmem_section): New Variable. (avr_asm_init_sections): Initialize it. (TARGET_ASM_SELECT_SECTION): Define to... (avr_asm_select_section): ... this new Function. (avr_replace_prefix): New Function. (avr_asm_function_rodata_section): Use it. (avr_insert_attributes): Don't add section attribute for PROGMEM. (avr_section_type_flags): Use avr_progmem_p instead of section name to detect if object is in PROGMEM. (avr_asm_named_section): Set section name prefix for objects in PROGMEM. testsuite/ PR target/43746 * testsuite/gcc.target/avr/torture/avr-torture.exp (AVR_TORTURE_OPTIONS): Add test cases "-O2 -fdata-sections" and "-O2 -fmerge-all-constants". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178779 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/gjl2011-07-111-0/+25
| | | | | | | | | | | | | | PR target/39633 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only offsets 1..5 set cc0 in a usable way. testsuite/ PR target/39633 * gcc.target/avr/torture/pr39633.c: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176141 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/34734gjl2011-07-049-2/+73
| | | | | | | | | | | | | | | | | PR target/44643 * gcc.target/avr/avr.exp: Run over cpp files, too. * gcc.target/avr/torture/avr-torture.exp: Ditto. * gcc.target/avr/progmem.h: New file. * gcc.target/avr/exit-abort.h: New file. * gcc.target/avr/progmem-error-1.c: New file. * gcc.target/avr/progmem-error-1.cpp: New file. * gcc.target/avr/progmem-warning-1.c: New file. * gcc.target/avr/torture/progmem-1.c: New file. * gcc.target/avr/torture/progmem-1.cpp: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175811 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/torture/pr41885.c (dg-options): Changegjl2011-04-151-1/+1
| | | | | | | | -finline-limit=0 to -fno-inline git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172487 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/torture/pr41885.c (dg-options): Addgjl2011-04-141-1/+1
| | | | | | | | -finline-limit=0 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172443 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/46779gjl2011-04-142-0/+102
| | | | | | | | | | | PR target/45291 PR target/41894 * gcc.target/avr/pr46779-1.c: New test case * gcc.target/avr/pr46779-2.c: New test case git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172442 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/trivial.c: Fix line endings. Make PROGMEMgjl2011-04-142-28/+30
| | | | | | | | | variables const. * gcc.target/avr/torture/trivial.c: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172417 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/41885hutchinsonandy2009-10-311-0/+123
| | | | | | * gcc.target/avr/torture/pr41885.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@153773 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.target/avr/avr.exp: Add avr testsuite.hutchinsonandy2008-06-024-0/+130
* gcc.target/avr/trivial.c: Add simple test. * gcc.target/avr/torture/avr-torture.exp: Add avr-torture testsuite. * gcc.target/avr/torture/trivial.c: Add simple test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136304 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud