Károly Balogh
|
13210ff7d4
use MVZ/MVS ColdFire instructions to load constants where applicable
|
11 years ago |
Károly Balogh
|
1d5f74fae0
m68k implementation of g_save_registers and g_restore_registers using movem.l
|
11 years ago |
Károly Balogh
|
8730b1bf45
cleaned up g_proc_exit, optimized generated code and also added some comments about possible ABI variations. the changes also fix two tests on my system related to cdecl procedures
|
11 years ago |
Károly Balogh
|
bd4cc3b8f3
cleaned up, reindented, simplified and allowed some minor optimizations in tcg64f68k
|
11 years ago |
Károly Balogh
|
74533a7c90
avoid generating addressing like <label>+8(aX), since this might fail during linking if label is more than 32k away, fixes linking with lineinfo unit here
|
11 years ago |
Károly Balogh
|
667ec17cae
tiny optimization for clearing address regs
|
11 years ago |
Károly Balogh
|
047395df5f
implemented add/sub ops in a_op_reg_ref, since these are used often. also fixed up reference handling in a_op_const_ref a bit
|
11 years ago |
Károly Balogh
|
cd4bb364e5
reenabled and fixed up tcg68k.op_const_ref a bit
|
11 years ago |
nickysn
|
85dd9e5789
+ added a size parameter to optimize_op_const and do a sign extension of the 'a' parameter up from the specified size, so that things like (i and $ffffffff) get optimized away the same way as (i and -1)
|
11 years ago |
Károly Balogh
|
b37ebeaabd
disabled a_loadaddr_ref_cgpara() for m68k, this code was copy-pasted from x86 probably and could never work properly as it is
|
11 years ago |
Károly Balogh
|
74af6d0dab
enabled hardware mul reg, reg codepath for ColdFire too, accelerates tfloattostr test (thus some of the SoftFPU code) by a magnitude...
|
11 years ago |
Károly Balogh
|
e5eac1bd44
make the array of registers to use depending on wheter we have an FP or not, and which register we have as FP
|
12 years ago |
svenbarth
|
6fef9a2c80
Correctly implement g_intf_wrapper. Fixes nearly 200 tests and now the cross compiled compiler is at least able to print the help (compiling a simple program does not work yet though).
|
12 years ago |
svenbarth
|
a4683461cf
Fix around 25 tests (under them all tcalval* tests!) by indeed using the save/restore registers code I adjusted earlier.
|
12 years ago |
Károly Balogh
|
1f11c39a5d
* huge m68k/cgcpu.pas cleanup and improvement commit
|
12 years ago |
svenbarth
|
b1d79494dd
Fix around 30 tests by using a volatile register for restoring the stack pointer
|
12 years ago |
svenbarth
|
20587d8547
And another place where I forgot to (de)allocate address registers...
|
12 years ago |
svenbarth
|
29ff548c0b
Revert some additions of add_move_instruction as this heavily breaks code when the frame pointer is involved
|
12 years ago |
svenbarth
|
dd204f395d
m68k: add a few more add_move_instruction to tcg68k
|
12 years ago |
svenbarth
|
03623c6c1a
Forgot to commit that I moved tcgsize2opsize from cgcpu to cpubase.
|
12 years ago |
svenbarth
|
0cb2bda0a5
Correctly handle loads of different sizes. Fixes 1 test. Might be more, but some other bugs might hide it.
|
12 years ago |
Károly Balogh
|
31e7b790a7
a_load_const_reg: don't sign_extend after MOVEQ, it's not needed. also use CRL.L before loading to reg instead of sign_extend when possible
|
12 years ago |
svenbarth
|
2c93687c5a
Fix an embarrasing error in m68k which fixes 60 tests.
|
12 years ago |
svenbarth
|
6f5a648516
Improve the cpu type handling for M68k just in case we should branch 2.8.0 before I can start working on M68k again.
|
12 years ago |
svenbarth
|
12f3a21f09
Fix passing of Doubles on m68k processors that don't have FPU support.
|
12 years ago |
paul
|
51825b6f2e
compiler: change ret_in_param to accept tabstractprocdef instead of tproccalloption to allow check more options (required for record constructor implementation)
|
12 years ago |
svenbarth
|
ccecf2c13c
Fix comparisons (aka usage of flag/CCR register)
|
12 years ago |
svenbarth
|
252744ad24
m68k/cgcpu.pas, tcg68k.g_concatcopy:
|
12 years ago |
Jonas Maebe
|
69c29a415f
* pass the procdef to getintparaloc instead of only the proccalloption, so
|
12 years ago |
pierre
|
39219cc30f
Also handle fpu_soft
|
12 years ago |