i386: Refactor ssedoublemode
[official-gcc.git] / libgcc / config / riscv / t-softfp32
blobda55eb348c181f8e609dfad1b860e5673f9a36bd
1 ABI_SINGLE:=$(findstring __riscv_float_abi_single,$(shell $(gcc_compile_bare) -dM -E - </dev/null))
2 ABI_DOUBLE:=$(findstring __riscv_float_abi_double,$(shell $(gcc_compile_bare) -dM -E - </dev/null))
3 ABI_QUAD:=$(findstring __riscv_float_abi_quad,$(shell $(gcc_compile_bare) -dM -E - </dev/null))
5 softfp_int_modes := si di
6 softfp_exclude_libgcc2 := n
8 ifndef ABI_QUAD
9 ifdef ABI_DOUBLE
11 softfp_float_modes := tf
12 softfp_extensions := sftf dftf
13 softfp_truncations := tfsf tfdf
15 # Enable divide routines to make -mno-fdiv work.
16 softfp_extras += divsf3 divdf3
18 else
19 # !ABI_DOUBLE
21 softfp_float_modes := df tf
22 softfp_extensions := sfdf sftf dftf
23 softfp_truncations := dfsf tfsf tfdf
25 ifndef ABI_SINGLE
26 softfp_float_modes += sf
27 else
28 # ABI_SINGLE
30 # Enable divide routines to make -mno-fdiv work.
31 softfp_extras += divsf3
33 endif
35 endif
37 else
38 # ABI_QUAD
40 # Enable divide routines to make -mno-fdiv work.
41 softfp_extras += divsf3 divdf3 divtf3
43 endif
45 softfp_extensions += hfsf hfdf hftf \
46                      bfsf
47 softfp_truncations += tfhf dfhf sfhf \
48                       tfbf dfbf sfbf \
49                       hfbf bfhf
50 softfp_extras += fixhfsi fixhfdi fixunshfsi fixunshfdi \
51                  floatsihf floatdihf floatunsihf floatundihf \
52                  floatsibf floatdibf floatunsibf floatundibf