Reduce efficiency notes for complex type checks.
[sbcl.git] / tools-for-build / arm-softfp-test.c
blob133958d509123c514295a0d9b40a3f0a67de1c09
1 int main ()
3 /*
4 The C compiler defines __ARM_PCS_VFP when the hard float ABI is in
5 use and floats/doubles are passed to and returned from functions
6 via VFP registers. Otherwise, floats are treated as integers for
7 the purpose of function calls.
9 Confusingly, __SOFTFP__ is defined only when software floating
10 point emulation is used within a function, and doesn't reveal which
11 function calling convention is used. It will be defined with
12 -mfloat-abi=soft but not -mfloat-abi=softfp
14 #if defined __arm__ && !defined __ARM_PCS_VFP
15 return 104;
16 #else
17 return 0;
18 #endif