2
0

nx64cal.pas 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Florian Klaempfl
  4. Implements the x86-64 specific part of call nodes
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published bymethodpointer
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit nx64cal;
  19. {$i fpcdefs.inc}
  20. interface
  21. uses
  22. ncal,ncgcal;
  23. type
  24. tx8664callnode = class(tcgcallnode)
  25. procedure extra_call_code;override;
  26. end;
  27. implementation
  28. uses
  29. cpubase,
  30. aasmtai,aasmcpu;
  31. procedure tx8664callnode.extra_call_code;
  32. begin
  33. { x86_64 requires %al to contain the no. SSE regs passed }
  34. if assigned(varargsparas) then
  35. exprasmlist.concat(taicpu.op_const_reg(A_MOV,S_Q,varargsparas.mmregsused,NR_RAX));
  36. end;
  37. begin
  38. ccallnode:=tx8664callnode;
  39. end.
  40. {
  41. $Log$
  42. Revision 1.2 2004-06-16 20:07:11 florian
  43. * dwarf branch merged
  44. Revision 1.1.2.1 2004/05/09 15:32:57 peter
  45. * new file for x86_64
  46. }