mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-09 12:52:34 +02:00

+ RTL support: o VFP exceptions are disabled by default on Darwin, because they cause kernel panics on iPhoneOS 2.2.1 at least o all denormals are truncated to 0 on Darwin, because disabling that also causes kernel panics on iPhoneOS 2.2.1 (probably because otherwise denormals can also cause exceptions) * set softfloat rounding mode correctly for non-wince/darwin/vfp targets + compiler support: only half the number of single precision registers is available due to limitations of the register allocator + added a number of comments about why the stackframe on ARM is set up the way it is by the compiler + added regtype and subregtype info to regsets, because they're also used for VFP registers (+ support in assembler reader) + various generic support routines for dealing with floating point values located in integer registers that have to be transferred to mm registers (needed for VFP) * renamed use_sse() to use_vectorfpu() and also use it for ARM/vfp support o only superficially tested for Linux (compiler compiled with -Cpvfpv6 -Cfvfpv2 works on a Cortex-A8, no testsuite run performed -- at least the fpu exception handler still needs to be implemented), Darwin has been tested more thoroughly + added ARMv6 cpu type and made it default for Darwin/ARM + ARMv6+ implementations of atomic operations using ldrex/strex * don't use r9 on Darwin/ARM, as it's reserved under certain circumstances (don't know yet which ones) * changed C-test object files for ARM/Darwin to ARMv6 versions * check in assembler reader that regsets are not empty, because instructions with a regset operand have undefined behaviour in that case * fixed resultdef of tarmtypeconvnode.first_int_to_real in case of int64->single type conversion * fixed constant pool locations in case 64 bit constants are generated, and/or when vfp instructions with limited reach are present WARNING: when using VFP on an ARMv6 or later cpu, you *must* compile all code with -Cparmv6 (or higher), or you will get crashes. The reason is that storing/restoring multiple VFP registers must happen using different instructions on pre/post-ARMv6. git-svn-id: trunk@14317 -
93 lines
1.3 KiB
PHP
93 lines
1.3 KiB
PHP
{ don't edit, this file is generated from armreg.dat }
|
|
RS_NO = $00;
|
|
RS_R0 = $00;
|
|
RS_R1 = $01;
|
|
RS_R2 = $02;
|
|
RS_R3 = $03;
|
|
RS_R4 = $04;
|
|
RS_R5 = $05;
|
|
RS_R6 = $06;
|
|
RS_R7 = $07;
|
|
RS_R8 = $08;
|
|
RS_R9 = $09;
|
|
RS_R10 = $0a;
|
|
RS_R11 = $0b;
|
|
RS_R12 = $0c;
|
|
RS_R13 = $0d;
|
|
RS_R14 = $0e;
|
|
RS_R15 = $0f;
|
|
RS_F0 = $00;
|
|
RS_F1 = $01;
|
|
RS_F2 = $02;
|
|
RS_F3 = $03;
|
|
RS_F4 = $04;
|
|
RS_F5 = $05;
|
|
RS_F6 = $06;
|
|
RS_F7 = $07;
|
|
RS_S0 = $00;
|
|
RS_S1 = $00;
|
|
RS_D0 = $00;
|
|
RS_S2 = $01;
|
|
RS_S3 = $01;
|
|
RS_D1 = $01;
|
|
RS_S4 = $02;
|
|
RS_S5 = $02;
|
|
RS_D2 = $02;
|
|
RS_S6 = $03;
|
|
RS_S7 = $03;
|
|
RS_D3 = $03;
|
|
RS_S8 = $04;
|
|
RS_S9 = $04;
|
|
RS_D4 = $04;
|
|
RS_S10 = $05;
|
|
RS_S11 = $05;
|
|
RS_D5 = $05;
|
|
RS_S12 = $06;
|
|
RS_S13 = $06;
|
|
RS_D6 = $06;
|
|
RS_S14 = $07;
|
|
RS_S15 = $07;
|
|
RS_D7 = $07;
|
|
RS_S16 = $08;
|
|
RS_S17 = $08;
|
|
RS_D8 = $08;
|
|
RS_S18 = $09;
|
|
RS_S19 = $09;
|
|
RS_D9 = $09;
|
|
RS_S20 = $0A;
|
|
RS_S21 = $0A;
|
|
RS_D10 = $0A;
|
|
RS_S22 = $0B;
|
|
RS_S23 = $0B;
|
|
RS_D11 = $0B;
|
|
RS_S24 = $0C;
|
|
RS_S25 = $0C;
|
|
RS_D12 = $0C;
|
|
RS_S26 = $0D;
|
|
RS_S27 = $0D;
|
|
RS_D13 = $0D;
|
|
RS_S28 = $0E;
|
|
RS_S29 = $0E;
|
|
RS_D14 = $0E;
|
|
RS_S30 = $0F;
|
|
RS_S31 = $0F;
|
|
RS_D15 = $0F;
|
|
RS_D16 = $10;
|
|
RS_D17 = $11;
|
|
RS_D18 = $12;
|
|
RS_D19 = $13;
|
|
RS_D20 = $14;
|
|
RS_D21 = $15;
|
|
RS_D22 = $16;
|
|
RS_D23 = $17;
|
|
RS_D24 = $18;
|
|
RS_D25 = $19;
|
|
RS_D26 = $1A;
|
|
RS_D27 = $1B;
|
|
RS_D28 = $1C;
|
|
RS_D29 = $1D;
|
|
RS_D30 = $1E;
|
|
RS_D31 = $1F;
|
|
RS_CPSR_C = $00;
|
|
RS_FPSCR = $01;
|