florian
b77b0df3bd
* AVR: attiny28 is an avr1 CPU
...
git-svn-id: trunk@44132 -
(cherry picked from commit dea63e3d61
)
2021-10-24 12:40:37 +02:00
florian
c9fce8b742
* AVR: take care of CPUAVR_HAS_MOVW in assembler routines
...
git-svn-id: trunk@44131 -
(cherry picked from commit 925979c6e4
)
2021-10-24 12:40:37 +02:00
florian
3cb2cff444
* patch by Christo Crause: more AVR controllers, resolves #36683
...
git-svn-id: trunk@44130 -
(cherry picked from commit 04ad607bb4
)
# Conflicts:
# .gitattributes
2021-10-24 12:40:37 +02:00
florian
a124adb9a7
* patch by Christo Crause: add missing atmega-PB controllers, resolves #36667
...
git-svn-id: trunk@44128 -
(cherry picked from commit 5040e31f11
)
# Conflicts:
# .gitattributes
2021-10-24 12:40:37 +02:00
florian
5e4de7277a
* patch by Christo Craus to reorder the avr controllers for better overview, resolves #36662
...
git-svn-id: trunk@44124 -
(cherry picked from commit e033269deb
)
2021-10-24 12:40:37 +02:00
florian
104cb227d4
* patch by Christo Crause: board aliases to onboard controllers, resolves #36659
...
git-svn-id: trunk@44111 -
(cherry picked from commit 4fe21a8e1a
)
2021-10-24 12:40:37 +02:00
florian
8d1eeea942
* actually, with lds/sts avrtiny can load addresses up to 191
...
git-svn-id: trunk@44104 -
(cherry picked from commit 640fe9c290
)
2021-10-24 12:40:37 +02:00
florian
dd2212e1f7
* based on a patch by Christo Crause: more compiler fixes for avrtiny, resolves #36646
...
git-svn-id: trunk@44103 -
(cherry picked from commit 36058ca4d4
)
2021-10-24 12:40:37 +02:00
florian
be4c56a05c
* patch by Christo Crause: fix startup code for avrtiny subarch, resolves #36650
...
git-svn-id: trunk@44100 -
(cherry picked from commit 7d283f530e
)
2021-10-24 12:40:37 +02:00
florian
61c6c04f71
+ patch by Christo Crause: Support for attiny10x controllers, resolves #36645
...
git-svn-id: trunk@44081 -
(cherry picked from commit 00214406bc
)
# Conflicts:
# .gitattributes
2021-10-24 12:40:37 +02:00
florian
ea2a93731d
* patch by Christo Crause: support for megaAVR 0 and tinyAVR 0/1, #36616 , part 3/3
...
git-svn-id: trunk@44038 -
(cherry picked from commit 9d91d680fb
)
# Conflicts:
# .gitattributes
2021-10-24 12:40:37 +02:00
florian
fd5614576f
* patch by Christo Crause: support for megaAVR 0 and tinyAVR 0/1, #36616 , part 2/3
...
git-svn-id: trunk@44037 -
(cherry picked from commit 7892e3f7b7
)
# Conflicts:
# .gitattributes
2021-10-24 12:40:37 +02:00
florian
0dc7bfde42
* patch by Christo Crause: support for megaAVR 0 and tinyAVR 0/1, #36616 , part 1/3
...
git-svn-id: trunk@44036 -
(cherry picked from commit 670c61e760
)
2021-10-24 12:40:37 +02:00
florian
3ee32648c0
* system unit can be build for subarch avrtiny
...
git-svn-id: trunk@44032 -
(cherry picked from commit 17c4834a4a
)
2021-10-24 12:40:37 +02:00
florian
4f5b872098
* patch by Christo Crause: avrtiny26 controller is not subarch avr25 but avr2, resolves #36620
...
git-svn-id: trunk@44021 -
(cherry picked from commit d2a059bd02
)
2021-10-24 12:40:37 +02:00
florian
0a66f8f1dd
* patch by Christo Crause: Correct subarch for avrtiny series in compiler, resolves #36619
...
git-svn-id: trunk@44020 -
(cherry picked from commit 3ab8830b83
)
2021-10-24 12:40:37 +02:00
florian
8917c66151
* AVR: use CP ...,r1 instead of CPI ...,0 to enable all registers being used as first operand
...
git-svn-id: trunk@44006 -
(cherry picked from commit 08c2afb0a4
)
2021-10-24 12:40:37 +02:00
florian
ce336a08c5
* omit first not, helps the reg. allocator to find a workable colouring, resolves #36611
...
git-svn-id: trunk@44005 -
(cherry picked from commit ae8d2dc69a
)
2021-10-24 12:40:37 +02:00
florian
23d26d495f
* AVR: attiny can do post increment operations, so remove code working around this
...
git-svn-id: trunk@43996 -
(cherry picked from commit 429130fa34
)
2021-10-24 12:40:37 +02:00
florian
6d2880e809
* AVR: do not insert jmp if not supported
...
git-svn-id: trunk@43995 -
(cherry picked from commit bd96765632
)
2021-10-24 12:40:37 +02:00
florian
0add128d7b
+ AVR: initial support of the avrtiny architecture in the rtl
...
git-svn-id: trunk@43988 -
(cherry picked from commit 28391e04bc
)
2021-10-24 12:40:37 +02:00
florian
bee41253bd
+ AVR: initial support for the avrtiny architecture
...
git-svn-id: trunk@43987 -
(cherry picked from commit 2d9cdab264
)
2021-10-24 12:40:37 +02:00
florian
150fac54cb
* changes shift parameter of shift helpers into ALUUInt, as there is an "and" used anyways, this does not change semantics but reduces register pressure on 8 bit targets
...
git-svn-id: trunk@42200 -
(cherry picked from commit f92b8d1681
)
2021-10-24 12:40:37 +02:00
florian
4a73c31c82
* AVR: tcgavr.normalize_ref must always load the reference into tmpreg
...
git-svn-id: trunk@43986 -
(cherry picked from commit f629fa1bb9
)
2021-10-24 12:40:37 +02:00
florian
a9bbcccb5d
+ AVR: GetDefaultZeroReg and GetDefaultTmpReg
...
git-svn-id: trunk@43985 -
(cherry picked from commit 26eae3672b
)
# Conflicts:
# compiler/avr/cpubase.pas
2021-10-24 12:40:37 +02:00
florian
cda78c398f
+ AVR: cputype cpu_avrtiny
...
git-svn-id: trunk@43984 -
(cherry picked from commit aaa6ae5770
)
2021-10-24 12:40:37 +02:00
florian
3328f991c7
* AVR: fixes pushing and handling of stack passed parameters
...
git-svn-id: trunk@43983 -
(cherry picked from commit 96a4cda03b
)
2021-10-24 12:40:37 +02:00
florian
fbb3fe56a9
* AVR: fixed TDwarfAsmCFILowLevel.generate_initial_instructions
...
git-svn-id: trunk@43982 -
(cherry picked from commit 6f434b6751
)
2021-10-24 12:40:37 +02:00
florian
201a89504e
* patch by Christo Crause: reg. allocation information if non-volatile registers
...
are used for parameter passing as it is might happen on avr, resolves #36079
git-svn-id: trunk@43390 -
(cherry picked from commit fabe4cc067
)
# Conflicts:
# .gitattributes
2021-10-24 12:40:37 +02:00
florian
b04f398d27
* avr: help the compiler with constant loading to avoid ie 200309041
...
git-svn-id: trunk@43350 -
(cherry picked from commit 701848889e
)
2021-10-24 12:40:37 +02:00
florian
3b5dfbf79c
* avr: more precise execution weigth for shift loops
...
git-svn-id: trunk@43349 -
(cherry picked from commit e8a48be3bc
)
2021-10-24 12:40:37 +02:00
florian
b241fec17b
* avr directly encodes constant shifts of 64 bit values
...
git-svn-id: trunk@43348 -
(cherry picked from commit f61207f1cc
)
2021-10-24 12:40:37 +02:00
florian
647c5889de
* simplified fpc_mul_qword so it compiles again on avr, fixes #36236 but does not solve the root of the problem
...
git-svn-id: trunk@43342 -
(cherry picked from commit 3b1903b430
)
2021-10-24 12:40:37 +02:00
florian
63375effda
* patch by Christo Crause: fix for r43136
...
git-svn-id: trunk@43169 -
(cherry picked from commit 5fc12500f2
)
2021-10-24 12:40:36 +02:00
florian
8e68ea69cb
* (modified/re-formatted) patch by Christo Crause: AVR: Optimizing code generation for shift with compile time constant
...
git-svn-id: trunk@43136 -
(cherry picked from commit dd2d1bf68b
)
2021-10-24 12:40:36 +02:00
florian
bf85e51962
* AVR: patch by Christo Crause: fixes tcgavr.g_concatcopy for data with size>255, resolves #36066
...
git-svn-id: trunk@42977 -
(cherry picked from commit 4e93a9a6c7
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
821a83f735
* Fix exitcode handling for avrsim target. Patch by Christo Crause
...
git-svn-id: trunk@42940 -
(cherry picked from commit 05c4f45596
)
2021-10-24 12:40:36 +02:00
florian
97b0bda68d
* fix tcgavr.g_flags2reg for sizes > 1 byte
...
git-svn-id: trunk@42938 -
(cherry picked from commit 9e5cbce6be
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
d14e3e96a7
- Fix bug in software overflow checking for longint's.
...
- AVR: Fix overflow checking for HW multiplications
git-svn-id: trunk@42531 -
(cherry picked from commit 1b698d319f
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
0c4d299514
AVR: Add support for using nostackframe in interrupt routines.
...
git-svn-id: trunk@42519 -
(cherry picked from commit f72342ed0e
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
49ac4e0ed3
AVR: Add optimizations for sign testing, and a better Abs() implementation.
...
git-svn-id: trunk@42510 -
(cherry picked from commit 91016c97a4
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
bca0d5774f
- Adds a number of optimizations for 64bit integer operations on AVR. Patch from Christo Crause in issue #35691 .
...
git-svn-id: trunk@42495 -
(cherry picked from commit 893507a5d6
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
8b02397b18
- Split division routines out into an include file.
...
- Reuse division routines for calculating both division and modulus.
- Add implementations of BsfByte and BsrByte that don't use a lookup table.
git-svn-id: trunk@42494 -
(cherry picked from commit 4b93eb64b3
)
# Conflicts:
# .gitattributes
2021-10-24 12:40:36 +02:00
Jeppe Johansen
e03c4eb34f
- Applied patch by Christo Crause from #33914
...
git-svn-id: trunk@42493 -
(cherry picked from commit ff3372567f
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
464aeb266e
- Fix overflow checking for multiplication operations on AVR.
...
git-svn-id: trunk@42492 -
(cherry picked from commit 030cf78ac5
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
2b92b97056
- Change syntax of sbiw operands to work around syntax in older binutils.
...
git-svn-id: trunk@42336 -
(cherry picked from commit 48a7c0989a
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
f1a9930550
avr: Fixed some inconsistencies.
...
git-svn-id: trunk@42204 -
(cherry picked from commit 0d97dc7965
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
a886e77b5e
- Fix compilation on architectures without absolute call/jump instructions.
...
git-svn-id: trunk@42164 -
(cherry picked from commit ee7bc1d516
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
4996d129e5
- Add mov optimization for STS instruction.
...
git-svn-id: trunk@42163 -
(cherry picked from commit aa4961d06e
)
2021-10-24 12:40:36 +02:00
Jeppe Johansen
8eb523e696
- Add assembler implementation of integer division, patch by Christo Crause. For now there's a division by zero check added.
...
- Fix setjmp/longjmp handling on 3 byte PC AVRs.
git-svn-id: trunk@42162 -
(cherry picked from commit dee0197890
)
2021-10-24 12:40:36 +02:00