1# Support for adding __float128 hardware support to the powerpc.
2# Tell the float128 functions that the ISA 3.1 hardware support can
3# be compiled it to be selected via IFUNC functions.
4
5FLOAT128_HW_INSNS   += -DFLOAT128_HW_INSNS_ISA3_1
6
7# New functions for hardware support
8
9fp128_3_1_hw_funcs  = float128-p10
10fp128_3_1_hw_src    = $(srcdir)/config/rs6000/float128-p10.c
11fp128_3_1_hw_static_obj       = $(addsuffix $(objext),$(fp128_3_1_hw_funcs))
12fp128_3_1_hw_shared_obj       = $(addsuffix _s$(objext),$(fp128_3_1_hw_funcs))
13fp128_3_1_hw_obj    = $(fp128_3_1_hw_static_obj) $(fp128_3_1_hw_shared_obj)
14
15# Build the hardware support functions with appropriate hardware support
16FP128_3_1_CFLAGS_HW  = -Wno-type-limits -mvsx -mfloat128 \
17                                 -mcpu=power10 \
18                                 -mfloat128-hardware -mno-gnu-attribute \
19                                 -I$(srcdir)/soft-fp \
20                                 -I$(srcdir)/config/rs6000 \
21                                 $(FLOAT128_HW_INSNS)
22
23$(fp128_3_1_hw_obj)            : INTERNAL_CFLAGS += $(FP128_3_1_CFLAGS_HW)
24$(fp128_3_1_hw_obj)            : $(srcdir)/config/rs6000/t-float128-p10-hw
25