xref: /netbsd-src/external/gpl3/gcc/dist/libgcc/config/riscv/t-softfp32 (revision fb8a8121f28072308659629b86cfb7c449bd93e1)
1ABI_SINGLE:=$(findstring __riscv_float_abi_single,$(shell $(gcc_compile_bare) -dM -E - </dev/null))
2ABI_DOUBLE:=$(findstring __riscv_float_abi_double,$(shell $(gcc_compile_bare) -dM -E - </dev/null))
3ABI_QUAD:=$(findstring __riscv_float_abi_quad,$(shell $(gcc_compile_bare) -dM -E - </dev/null))
4
5softfp_int_modes := si di
6softfp_exclude_libgcc2 := n
7
8ifndef ABI_QUAD
9ifdef ABI_DOUBLE
10
11softfp_float_modes := tf
12softfp_extensions := sftf dftf
13softfp_truncations := tfsf tfdf
14
15# Enable divide routines to make -mno-fdiv work.
16softfp_extras := divsf3 divdf3
17
18else
19# !ABI_DOUBLE
20
21softfp_float_modes := df tf
22softfp_extensions := sfdf sftf dftf
23softfp_truncations := dfsf tfsf tfdf
24
25ifndef ABI_SINGLE
26softfp_float_modes += sf
27else
28# ABI_SINGLE
29
30# Enable divide routines to make -mno-fdiv work.
31softfp_extras := divsf3
32
33endif
34
35endif
36
37else
38# ABI_QUAD
39
40# Enable divide routines to make -mno-fdiv work.
41softfp_extras := divsf3 divdf3 divtf3
42
43endif
44