1//===-- ZOSLibcallNames.def ----------------------------------- -*- C++ -*-===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8// 9// This file defines all of the runtime library functions on z/OS which can be 10// generated during instruction selection. 11// 12//===----------------------------------------------------------------------===// 13 14#if !defined(HANDLE_LIBCALL) 15#error "HANDLE_LIBCALL must be defined" 16#endif 17 18HANDLE_LIBCALL(TRUNC_F64, "@@TRNC@B") 19HANDLE_LIBCALL(TRUNC_F32, "@@FTRC@B") 20HANDLE_LIBCALL(TRUNC_F128, "@@LTRC@B") 21HANDLE_LIBCALL(SQRT_F64, "@@WSQT@B") 22HANDLE_LIBCALL(SQRT_F32, "@@FSQT@B") 23HANDLE_LIBCALL(SQRT_F128, "@@LSQT@B") 24HANDLE_LIBCALL(SIN_F64, "@@SSIN@B") 25HANDLE_LIBCALL(SIN_F32, "@@FSIN@B") 26HANDLE_LIBCALL(SIN_F128, "@@LSIN@B") 27HANDLE_LIBCALL(ROUND_F64, "@@ROUN@B") 28HANDLE_LIBCALL(ROUND_F32, "@@ROUNFB") 29HANDLE_LIBCALL(ROUND_F128, "@@ROUNLB") 30HANDLE_LIBCALL(RINT_F64, "@@SRNT@B") 31HANDLE_LIBCALL(RINT_F32, "@@RINTFB") 32HANDLE_LIBCALL(RINT_F128, "@@RINTLB") 33HANDLE_LIBCALL(REM_F64, "@@WFMD@B") 34HANDLE_LIBCALL(REM_F32, "@@FFMD@B") 35HANDLE_LIBCALL(REM_F128, "@@LFMD@B") 36HANDLE_LIBCALL(POW_F64, "@@WPOW@B") 37HANDLE_LIBCALL(POW_F32, "@@FPOW@B") 38HANDLE_LIBCALL(POW_F128, "@@LPOW@B") 39HANDLE_LIBCALL(NEARBYINT_F64, "@@NBYI@B") 40HANDLE_LIBCALL(NEARBYINT_F32, "@@NBYIFB") 41HANDLE_LIBCALL(NEARBYINT_F128, "@@NBYILB") 42HANDLE_LIBCALL(LROUND_F64, "@@ROND@B") 43HANDLE_LIBCALL(LROUND_F32, "@@FRND@B") 44HANDLE_LIBCALL(LROUND_F128, "@@LRND@B") 45HANDLE_LIBCALL(LRINT_F64, "@@LRNT@B") 46HANDLE_LIBCALL(LRINT_F32, "@@LRNTFB") 47HANDLE_LIBCALL(LRINT_F128, "@@LRNTLB") 48HANDLE_LIBCALL(LOG_F64, "@@WLOG@B") 49HANDLE_LIBCALL(LOG_F32, "@@FLOG@B") 50HANDLE_LIBCALL(LOG_F128, "@@LLOG@B") 51HANDLE_LIBCALL(LOG2_F64, "@@LOG2@B") 52HANDLE_LIBCALL(LOG2_F32, "@@FLG2@B") 53HANDLE_LIBCALL(LOG2_F128, "@@LLG2@B") 54HANDLE_LIBCALL(LOG10_F64, "@@WLG1@B") 55HANDLE_LIBCALL(LOG10_F32, "@@FLG1@B") 56HANDLE_LIBCALL(LOG10_F128, "@@LLG1@B") 57HANDLE_LIBCALL(LLROUND_F64, "@@LLRD@B") 58HANDLE_LIBCALL(LLROUND_F32, "@@LLRDFB") 59HANDLE_LIBCALL(LLROUND_F128, "@@LLRDLB") 60HANDLE_LIBCALL(LLRINT_F64, "@@LLRT@B") 61HANDLE_LIBCALL(LLRINT_F32, "@@LLRTFB") 62HANDLE_LIBCALL(LLRINT_F128, "@@LLRTLB") 63HANDLE_LIBCALL(LDEXP_F64, "@@SLXP@B") 64HANDLE_LIBCALL(LDEXP_F32, "@@FLXP@B") 65HANDLE_LIBCALL(LDEXP_F128, "@@LLXP@B") 66HANDLE_LIBCALL(FREXP_F64, "@@SFXP@B") 67HANDLE_LIBCALL(FREXP_F32, "@@FFXP@B") 68HANDLE_LIBCALL(FREXP_F128, "@@LFXP@B") 69HANDLE_LIBCALL(FMIN_F64, "@@FMIN@B") 70HANDLE_LIBCALL(FMIN_F32, "@@FMINFB") 71HANDLE_LIBCALL(FMIN_F128, "@@FMINLB") 72HANDLE_LIBCALL(FMA_F64, "@@FMA@B") 73HANDLE_LIBCALL(FMA_F32, "@@FMAFB") 74HANDLE_LIBCALL(FMA_F128, "@@FMALB") 75HANDLE_LIBCALL(FMAX_F64, "@@FMAX@B") 76HANDLE_LIBCALL(FMAX_F32, "@@FMAXFB") 77HANDLE_LIBCALL(FMAX_F128, "@@FMAXLB") 78HANDLE_LIBCALL(FLOOR_F64, "@@SFLR@B") 79HANDLE_LIBCALL(FLOOR_F32, "@@FFLR@B") 80HANDLE_LIBCALL(FLOOR_F128, "@@LFLR@B") 81HANDLE_LIBCALL(EXP_F64, "@@WEXP@B") 82HANDLE_LIBCALL(EXP_F32, "@@FEXP@B") 83HANDLE_LIBCALL(EXP_F128, "@@LEXP@B") 84HANDLE_LIBCALL(EXP2_F64, "@@EXP2@B") 85HANDLE_LIBCALL(EXP2_F32, "@@FXP2@B") 86HANDLE_LIBCALL(EXP2_F128, "@@LXP2@B") 87HANDLE_LIBCALL(COS_F64, "@@SCOS@B") 88HANDLE_LIBCALL(COS_F32, "@@FCOS@B") 89HANDLE_LIBCALL(COS_F128, "@@LCOS@B") 90HANDLE_LIBCALL(COPYSIGN_F64, "@@DCPY@B") 91HANDLE_LIBCALL(COPYSIGN_F32, "@@FCPY@B") 92HANDLE_LIBCALL(COPYSIGN_F128, "@@LCPY@B") 93HANDLE_LIBCALL(CEIL_F64, "@@SCEL@B") 94HANDLE_LIBCALL(CEIL_F32, "@@FCEL@B") 95HANDLE_LIBCALL(CEIL_F128, "@@LCEL@B") 96HANDLE_LIBCALL(CBRT_F64, "@@SCRT@B") 97HANDLE_LIBCALL(CBRT_F32, "@@FCBT@B") 98HANDLE_LIBCALL(CBRT_F128, "@@LCBT@B") 99 100#undef HANDLE_LIBCALL 101