Commit Graph

45 Commits

Author SHA1 Message Date
Jonas Maebe
335bc9fd46 + PIC support for darwin/ppc32 (-Cg works now, no regressions in test
suite compiled with -Cg compared to without -Cg)
  + support for using a virtual register as PIC/got base register
  * moved got loading code from ncgutil to cgobj/cgcpu (can't test whether
    it didn't break anything under linux/i386, because "make cycle OPT=-Cg"
    was already broken due to the *prt*.as -> si_*.pp changes)

git-svn-id: trunk@8651 -
2007-09-26 16:41:32 +00:00
michael
3a2eaa94b1 + Removed INTERNCONSTINTF define
git-svn-id: trunk@267 -
2005-06-07 22:04:18 +00:00
michael
93ba0409be + Removed HASCOMPILERPROC define
git-svn-id: trunk@265 -
2005-06-07 21:41:02 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
Jonas Maebe
b6a6e78db1 * fixed remaining compilation problems 2004-11-21 16:14:59 +00:00
peter
4d8460ec2f * float routines all use internproc and compilerproc helpers 2004-11-21 15:35:23 +00:00
Jonas Maebe
cfeaa8aa65 * some compilation fixes for powerpc after all the internconst and
internproc changes, still crashes with internalerror(88) for ppc1
    on real2str.inc(193,39)
2004-11-20 15:49:21 +00:00
Jonas Maebe
edbec6f2b4 * use generic round, the ppc-specific one is buggy 2004-11-07 19:09:02 +00:00
Jonas Maebe
0f26252376 + cgenmath with libc math functions. Faster than the routines in genmath
and also have full double support (exp() only has support for values in
    the single range in genmath, for example). Used in FPC_USE_LIBC is
    defined
  * several fixes to allow compilation with -dHASINLINE, but internalerrors
    because of missing support for inlining assembler code
2004-10-09 21:00:46 +00:00
olle
4372f8ef91 * fixed global variable access in asm 2004-02-09 20:21:06 +00:00
Jonas Maebe
ecfca6db55 - reverted previous patch, solved with the new assembler reader
(which didn't understand the new syntax)
2003-12-07 19:55:37 +00:00
olle
0b2afad6e8 * changed in temp+4 to 4+temp, to be compatible with PPCAsm 2003-12-07 17:54:53 +00:00
florian
4ff69f3905 * fixed rtl to work with the integrated fpc ppc assembler reader 2003-11-15 19:01:27 +00:00
florian
ed7610985b * fixed qword_to_double conversion on powerpc 2003-09-04 16:07:31 +00:00
florian
8d771df2d4 * arm fixes to the common rtl code
* some generic math code fixed
  * ...
2003-09-03 14:09:37 +00:00
olle
4eac90e5d4 * small bugfix macos 2003-08-08 22:02:05 +00:00
Jonas Maebe
a4db446a95 * fixed compilation problems (removed unnecessary modified registers
lists from procedures)
2003-06-14 12:41:08 +00:00
Jonas Maebe
18f6811154 * fixed 64 bit results of trunc and round 2003-05-31 20:22:06 +00:00
florian
d992e13e08 * fixed parameter passing for int64 2003-05-30 23:56:41 +00:00
Jonas Maebe
df5e0bbfc6 * fsqrt is an optional instruction in the ppc architecture and isn't
implemented by any current ppc afaik, so use the generic sqrt routine
    instead (adapted so it works with compilerproc)
2003-05-24 13:39:32 +00:00
Jonas Maebe
59dae8729c * fixed round() (almost the same as trunc) 2003-05-16 16:04:33 +00:00
Jonas Maebe
a23b530fc8 * fixed qword and int64 to double conversion 2003-05-11 18:09:45 +00:00
Jonas Maebe
c59fb8e28a - removed empty ppc-specific frac()
+ added correct generic frac() implementation for doubles (translated
    from glibc code)
2003-05-02 15:12:19 +00:00
Jonas Maebe
49497382c0 * trunc now also supports int64 (no NaN's etc though) 2003-04-26 20:36:24 +00:00
florian
96df8384cd * fixed trunc, now it's working at least for longint range 2003-04-26 17:20:16 +00:00
peter
a7691d8bb8 * fpc_round added, needed for int64 currency 2003-04-23 21:28:21 +00:00
olle
e45d57fd4f * changed access of globals to be indirect via TOC 2003-01-16 11:29:11 +00:00
florian
14bfc9eeba * changed power(...) prototype to int64 2003-01-15 01:09:04 +00:00
olle
757728dcd8 * macos: refs to globals in asm adapted to macos 2002-11-28 11:04:16 +00:00
Jonas Maebe
22beab1c43 * round has int64 instead of longint result 2002-10-21 18:08:28 +00:00
Jonas Maebe
afdfcc6eb5 * made pi an internproc instead of internconst 2002-09-08 13:00:21 +00:00
peter
9f31783a0a * old logs removed and tabs fixed 2002-09-07 16:01:16 +00:00
florian
b6f184646c * fixed remaining assembler errors 2002-08-18 22:11:10 +00:00
florian
d9b55c9213 * several errors in inline assembler fixed 2002-08-18 21:37:48 +00:00
Jonas Maebe
3a23eefecc * various fixes, mostly changing the names of the modifies registers to
upper case since that seems to be required by the compiler
2002-08-10 17:14:36 +00:00
Jonas Maebe
a28ee81ed6 * fixed conversion from int64/qword to double errors 2002-07-31 16:58:12 +00:00
florian
53a0b662b9 * several fixes to get further with linux/ppc system unit compilation 2002-07-29 21:28:16 +00:00
florian
6d4e01d74f * made abs a compiler proc if it is generic 2002-07-28 21:39:28 +00:00
florian
7ac5c3743d * several fixes for linux/powerpc
* several fixes to MT
2002-07-28 20:43:47 +00:00
Jonas Maebe
bb2ff94da7 * fpu results are returned in fr1, not fr0 2001-12-02 16:19:45 +00:00
Jonas Maebe
6fbd6e2e6d * fixed fpc_int64_to_double and fpc_int64_to_double (fpc_int64_to_double
is now mostly tested and should work fine, fpc_qword_to_double should
    work too since it's almost the same)
2001-10-30 17:18:14 +00:00
Jonas Maebe
1ccf8662fe + initial implementation, lots of things still missing 2001-10-28 14:09:13 +00:00