/* Machine description for AArch64 architecture. Copyright (C) 2012-2022 Free Software Foundation, Inc. Contributed by ARM Ltd. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ /* In the list below, the BUILTIN_ macros expand to create builtins for each of the modes described by . When adding new builtins to this list, a helpful idiom to follow is to add a line for each pattern in the md file. Thus, ADDP, which has one pattern defined for the VD_BHSI iterator, and one for DImode, has two entries below. Parameter 1 is the 'type' of the intrinsic. This is used to describe the type modifiers (for example; unsigned) applied to each of the parameters to the intrinsic function. Parameter 2 is the name of the intrinsic. This is appended to `__builtin_aarch64_` to give the intrinsic name as exported to the front-ends. Parameter 3 describes how to map from the name to the CODE_FOR_ macro holding the RTL pattern for the intrinsic. This mapping is: 0 - CODE_FOR_aarch64_ 1-9 - CODE_FOR_<1-9> 10 - CODE_FOR_. Parameter 4 is the 'flag' of the intrinsic. This is used to help describe the attributes (for example, pure) for the intrinsic function. */ BUILTIN_VDC (BINOP, combine, 0, AUTO_FP) BUILTIN_VD_I (BINOPU, combine, 0, NONE) BUILTIN_VDC_P (BINOPP, combine, 0, NONE) BUILTIN_VB (BINOPP, pmul, 0, NONE) VAR1 (BINOPP, pmull, 0, NONE, v8qi) VAR1 (BINOPP, pmull_hi, 0, NONE, v16qi) BUILTIN_VHSDF_HSDF (BINOP, fmulx, 0, FP) BUILTIN_VHSDF_DF (UNOP, sqrt, 2, FP) BUILTIN_VDQ_I (BINOP, addp, 0, NONE) BUILTIN_VDQ_I (BINOPU, addp, 0, NONE) VAR1 (UNOP, addp, 0, NONE, di) VAR1 (UNOPU, addp, 0, NONE, di) BUILTIN_VDQ_BHSI (UNOP, clrsb, 2, NONE) BUILTIN_VDQ_BHSI (UNOP, clz, 2, NONE) BUILTIN_VS (UNOP, ctz, 2, NONE) BUILTIN_VB (UNOP, popcount, 2, NONE) /* Implemented by aarch64_get_low. */ BUILTIN_VQMOV (UNOP, get_low, 0, AUTO_FP) /* Implemented by aarch64_get_high. */ BUILTIN_VQMOV (UNOP, get_high, 0, AUTO_FP) /* Implemented by aarch64_qshl. */ BUILTIN_VSDQ_I (BINOP, sqshl, 0, NONE) BUILTIN_VSDQ_I (BINOP_UUS, uqshl, 0, NONE) BUILTIN_VSDQ_I (BINOP, sqrshl, 0, NONE) BUILTIN_VSDQ_I (BINOP_UUS, uqrshl, 0, NONE) /* Implemented by aarch64_. */ BUILTIN_VSDQ_I (BINOP, sqadd, 0, NONE) BUILTIN_VSDQ_I (BINOPU, uqadd, 0, NONE) BUILTIN_VSDQ_I (BINOP, sqsub, 0, NONE) BUILTIN_VSDQ_I (BINOPU, uqsub, 0, NONE) /* Implemented by aarch64_qadd. */ BUILTIN_VSDQ_I (BINOP_SSU, suqadd, 0, NONE) BUILTIN_VSDQ_I (BINOP_UUS, usqadd, 0, NONE) /* Implemented by aarch64_ld1x2. */ BUILTIN_VALLDIF (LOADSTRUCT, ld1x2, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld1x2, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld1x2, 0, LOAD) /* Implemented by aarch64_ld1x3. */ BUILTIN_VALLDIF (LOADSTRUCT, ld1x3, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld1x3, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld1x3, 0, LOAD) /* Implemented by aarch64_ld1x4. */ BUILTIN_VALLDIF (LOADSTRUCT, ld1x4, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld1x4, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld1x4, 0, LOAD) /* Implemented by aarch64_st1x2. */ BUILTIN_VALLDIF (STORESTRUCT, st1x2, 0, STORE) BUILTIN_VSDQ_I_DI (STORESTRUCT_U, st1x2, 0, STORE) BUILTIN_VALLP (STORESTRUCT_P, st1x2, 0, STORE) /* Implemented by aarch64_st1x3. */ BUILTIN_VALLDIF (STORESTRUCT, st1x3, 0, STORE) BUILTIN_VSDQ_I_DI (STORESTRUCT_U, st1x3, 0, STORE) BUILTIN_VALLP (STORESTRUCT_P, st1x3, 0, STORE) /* Implemented by aarch64_st1x4. */ BUILTIN_VALLDIF (STORESTRUCT, st1x4, 0, STORE) BUILTIN_VSDQ_I_DI (STORESTRUCT_U, st1x4, 0, STORE) BUILTIN_VALLP (STORESTRUCT_P, st1x4, 0, STORE) /* Implemented by aarch64_ld. */ BUILTIN_VALLDIF (LOADSTRUCT, ld2, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld2, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld2, 0, LOAD) BUILTIN_VALLDIF (LOADSTRUCT, ld3, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld3, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld3, 0, LOAD) BUILTIN_VALLDIF (LOADSTRUCT, ld4, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld4, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld4, 0, LOAD) /* Implemented by aarch64_st. */ BUILTIN_VALLDIF (STORESTRUCT, st2, 0, STORE) BUILTIN_VSDQ_I_DI (STORESTRUCT_U, st2, 0, STORE) BUILTIN_VALLP (STORESTRUCT_P, st2, 0, STORE) BUILTIN_VALLDIF (STORESTRUCT, st3, 0, STORE) BUILTIN_VSDQ_I_DI (STORESTRUCT_U, st3, 0, STORE) BUILTIN_VALLP (STORESTRUCT_P, st3, 0, STORE) BUILTIN_VALLDIF (STORESTRUCT, st4, 0, STORE) BUILTIN_VSDQ_I_DI (STORESTRUCT_U, st4, 0, STORE) BUILTIN_VALLP (STORESTRUCT_P, st4, 0, STORE) /* Implemented by aarch64_ldr. */ BUILTIN_VALLDIF (LOADSTRUCT, ld2r, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld2r, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld2r, 0, LOAD) BUILTIN_VALLDIF (LOADSTRUCT, ld3r, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld3r, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld3r, 0, LOAD) BUILTIN_VALLDIF (LOADSTRUCT, ld4r, 0, LOAD) BUILTIN_VSDQ_I_DI (LOADSTRUCT_U, ld4r, 0, LOAD) BUILTIN_VALLP (LOADSTRUCT_P, ld4r, 0, LOAD) /* Implemented by aarch64_ld_lane. */ BUILTIN_VALLDIF (LOADSTRUCT_LANE, ld2_lane, 0, ALL) BUILTIN_VSDQ_I_DI (LOADSTRUCT_LANE_U, ld2_lane, 0, ALL) BUILTIN_VALLP (LOADSTRUCT_LANE_P, ld2_lane, 0, ALL) BUILTIN_VALLDIF (LOADSTRUCT_LANE, ld3_lane, 0, ALL) BUILTIN_VSDQ_I_DI (LOADSTRUCT_LANE_U, ld3_lane, 0, ALL) BUILTIN_VALLP (LOADSTRUCT_LANE_P, ld3_lane, 0, ALL) BUILTIN_VALLDIF (LOADSTRUCT_LANE, ld4_lane, 0, ALL) BUILTIN_VSDQ_I_DI (LOADSTRUCT_LANE_U, ld4_lane, 0, ALL) BUILTIN_VALLP (LOADSTRUCT_LANE_P, ld4_lane, 0, ALL) /* Implemented by aarch64_st_lane. */ BUILTIN_VALLDIF (STORESTRUCT_LANE, st2_lane, 0, ALL) BUILTIN_VSDQ_I_DI (STORESTRUCT_LANE_U, st2_lane, 0, ALL) BUILTIN_VALLP (STORESTRUCT_LANE_P, st2_lane, 0, ALL) BUILTIN_VALLDIF (STORESTRUCT_LANE, st3_lane, 0, ALL) BUILTIN_VSDQ_I_DI (STORESTRUCT_LANE_U, st3_lane, 0, ALL) BUILTIN_VALLP (STORESTRUCT_LANE_P, st3_lane, 0, ALL) BUILTIN_VALLDIF (STORESTRUCT_LANE, st4_lane, 0, ALL) BUILTIN_VSDQ_I_DI (STORESTRUCT_LANE_U, st4_lane, 0, ALL) BUILTIN_VALLP (STORESTRUCT_LANE_P, st4_lane, 0, ALL) BUILTIN_VQW (BINOP, saddl2, 0, NONE) BUILTIN_VQW (BINOPU, uaddl2, 0, NONE) BUILTIN_VQW (BINOP, ssubl2, 0, NONE) BUILTIN_VQW (BINOPU, usubl2, 0, NONE) BUILTIN_VQW (BINOP, saddw2, 0, NONE) BUILTIN_VQW (BINOPU, uaddw2, 0, NONE) BUILTIN_VQW (BINOP, ssubw2, 0, NONE) BUILTIN_VQW (BINOPU, usubw2, 0, NONE) /* Implemented by aarch64_l. */ BUILTIN_VD_BHSI (BINOP, saddl, 0, NONE) BUILTIN_VD_BHSI (BINOPU, uaddl, 0, NONE) BUILTIN_VD_BHSI (BINOP, ssubl, 0, NONE) BUILTIN_VD_BHSI (BINOPU, usubl, 0, NONE) /* Implemented by aarch64_w. */ BUILTIN_VD_BHSI (BINOP, saddw, 0, NONE) BUILTIN_VD_BHSI (BINOPU, uaddw, 0, NONE) BUILTIN_VD_BHSI (BINOP, ssubw, 0, NONE) BUILTIN_VD_BHSI (BINOPU, usubw, 0, NONE) /* Implemented by aarch64_h. */ BUILTIN_VDQ_BHSI (BINOP, shadd, 0, NONE) BUILTIN_VDQ_BHSI (BINOP, shsub, 0, NONE) BUILTIN_VDQ_BHSI (BINOPU, uhadd, 0, NONE) BUILTIN_VDQ_BHSI (BINOPU, uhsub, 0, NONE) BUILTIN_VDQ_BHSI (BINOP, srhadd, 0, NONE) BUILTIN_VDQ_BHSI (BINOPU, urhadd, 0, NONE) /* Implemented by aarch64_addlp. */ BUILTIN_VDQV_L (UNOP, saddlp, 0, NONE) BUILTIN_VDQV_L (UNOPU, uaddlp, 0, NONE) /* Implemented by aarch64_addlv. */ BUILTIN_VDQV_L (UNOP, saddlv, 0, NONE) BUILTIN_VDQV_L (UNOPU, uaddlv, 0, NONE) /* Implemented by aarch64_abd. */ BUILTIN_VDQ_BHSI (BINOP, sabd, 0, NONE) BUILTIN_VDQ_BHSI (BINOPU, uabd, 0, NONE) /* Implemented by aarch64_aba. */ BUILTIN_VDQ_BHSI (TERNOP, saba, 0, NONE) BUILTIN_VDQ_BHSI (TERNOPU, uaba, 0, NONE) BUILTIN_VDQV_L (BINOP, sadalp, 0, NONE) BUILTIN_VDQV_L (BINOPU, uadalp, 0, NONE) /* Implemented by aarch64_abal. */ BUILTIN_VD_BHSI (TERNOP, sabal, 0, NONE) BUILTIN_VD_BHSI (TERNOPU, uabal, 0, NONE) /* Implemented by aarch64_abal2. */ BUILTIN_VQW (TERNOP, sabal2, 0, NONE) BUILTIN_VQW (TERNOPU, uabal2, 0, NONE) /* Implemented by aarch64_abdl. */ BUILTIN_VD_BHSI (BINOP, sabdl, 0, NONE) BUILTIN_VD_BHSI (BINOPU, uabdl, 0, NONE) /* Implemented by aarch64_abdl2. */ BUILTIN_VQW (BINOP, sabdl2, 0, NONE) BUILTIN_VQW (BINOPU, uabdl2, 0, NONE) /* Implemented by aarch64_hn. */ BUILTIN_VQN (BINOP, addhn, 0, NONE) BUILTIN_VQN (BINOPU, addhn, 0, NONE) BUILTIN_VQN (BINOP, subhn, 0, NONE) BUILTIN_VQN (BINOPU, subhn, 0, NONE) BUILTIN_VQN (BINOP, raddhn, 0, NONE) BUILTIN_VQN (BINOPU, raddhn, 0, NONE) BUILTIN_VQN (BINOP, rsubhn, 0, NONE) BUILTIN_VQN (BINOPU, rsubhn, 0, NONE) /* Implemented by aarch64_hn2. */ BUILTIN_VQN (TERNOP, addhn2, 0, NONE) BUILTIN_VQN (TERNOPU, addhn2, 0, NONE) BUILTIN_VQN (TERNOP, subhn2, 0, NONE) BUILTIN_VQN (TERNOPU, subhn2, 0, NONE) BUILTIN_VQN (TERNOP, raddhn2, 0, NONE) BUILTIN_VQN (TERNOPU, raddhn2, 0, NONE) BUILTIN_VQN (TERNOP, rsubhn2, 0, NONE) BUILTIN_VQN (TERNOPU, rsubhn2, 0, NONE) /* Implemented by aarch64_xtl. */ BUILTIN_VQN (UNOP, sxtl, 0, NONE) BUILTIN_VQN (UNOPU, uxtl, 0, NONE) /* Implemented by aarch64_xtn. */ BUILTIN_VQN (UNOP, xtn, 0, NONE) BUILTIN_VQN (UNOPU, xtn, 0, NONE) /* Implemented by aarch64_mla. */ BUILTIN_VDQ_BHSI (TERNOP, mla, 0, NONE) BUILTIN_VDQ_BHSI (TERNOPU, mla, 0, NONE) /* Implemented by aarch64_mla_n. */ BUILTIN_VDQHS (TERNOP, mla_n, 0, NONE) BUILTIN_VDQHS (TERNOPU, mla_n, 0, NONE) /* Implemented by aarch64_mls. */ BUILTIN_VDQ_BHSI (TERNOP, mls, 0, NONE) BUILTIN_VDQ_BHSI (TERNOPU, mls, 0, NONE) /* Implemented by aarch64_mls_n. */ BUILTIN_VDQHS (TERNOP, mls_n, 0, NONE) BUILTIN_VDQHS (TERNOPU, mls_n, 0, NONE) /* Implemented by aarch64_shrn". */ BUILTIN_VQN (SHIFTIMM, shrn, 0, NONE) BUILTIN_VQN (USHIFTIMM, shrn, 0, NONE) /* Implemented by aarch64_shrn2. */ BUILTIN_VQN (SHIFT2IMM, shrn2, 0, NONE) BUILTIN_VQN (USHIFT2IMM, shrn2, 0, NONE) /* Implemented by aarch64_rshrn". */ BUILTIN_VQN (SHIFTIMM, rshrn, 0, NONE) BUILTIN_VQN (USHIFTIMM, rshrn, 0, NONE) /* Implemented by aarch64_rshrn2. */ BUILTIN_VQN (SHIFT2IMM, rshrn2, 0, NONE) BUILTIN_VQN (USHIFT2IMM, rshrn2, 0, NONE) /* Implemented by aarch64_mlsl. */ BUILTIN_VD_BHSI (TERNOP, smlsl, 0, NONE) BUILTIN_VD_BHSI (TERNOPU, umlsl, 0, NONE) /* Implemented by aarch64_mlsl_n. */ BUILTIN_VD_HSI (TERNOP, smlsl_n, 0, NONE) BUILTIN_VD_HSI (TERNOPU, umlsl_n, 0, NONE) /* Implemented by aarch64_mlal. */ BUILTIN_VD_BHSI (TERNOP, smlal, 0, NONE) BUILTIN_VD_BHSI (TERNOPU, umlal, 0, NONE) /* Implemented by aarch64_mlal_n. */ BUILTIN_VD_HSI (TERNOP, smlal_n, 0, NONE) BUILTIN_VD_HSI (TERNOPU, umlal_n, 0, NONE) /* Implemented by aarch64_mlsl_hi. */ BUILTIN_VQW (TERNOP, smlsl_hi, 0, NONE) BUILTIN_VQW (TERNOPU, umlsl_hi, 0, NONE) /* Implemented by aarch64_mlsl_hi_n. */ BUILTIN_VQ_HSI (TERNOP, smlsl_hi_n, 0, NONE) BUILTIN_VQ_HSI (TERNOPU, umlsl_hi_n, 0, NONE) /* Implemented by aarch64_mlal_hi. */ BUILTIN_VQW (TERNOP, smlal_hi, 0, NONE) BUILTIN_VQW (TERNOPU, umlal_hi, 0, NONE) /* Implemented by aarch64_mlal_hi_n. */ BUILTIN_VQ_HSI (TERNOP, smlal_hi_n, 0, NONE) BUILTIN_VQ_HSI (TERNOPU, umlal_hi_n, 0, NONE) /* Implemented by aarch64_sqmovun. */ BUILTIN_VQN (UNOPUS, sqmovun, 0, NONE) BUILTIN_SD_HSDI (UNOPUS, sqmovun, 0, NONE) /* Implemented by aarch64_sqxtun2. */ BUILTIN_VQN (BINOP_UUS, sqxtun2, 0, NONE) /* Implemented by aarch64_qmovn. */ BUILTIN_VQN (UNOP, sqmovn, 0, NONE) BUILTIN_SD_HSDI (UNOP, sqmovn, 0, NONE) BUILTIN_VQN (UNOP, uqmovn, 0, NONE) BUILTIN_SD_HSDI (UNOP, uqmovn, 0, NONE) /* Implemented by aarch64_qxtn2. */ BUILTIN_VQN (BINOP, sqxtn2, 0, NONE) BUILTIN_VQN (BINOPU, uqxtn2, 0, NONE) /* Implemented by aarch64_s. */ BUILTIN_VSDQ_I (UNOP, sqabs, 0, NONE) BUILTIN_VSDQ_I (UNOP, sqneg, 0, NONE) /* Implemented by aarch64_sqdmll. */ BUILTIN_VSD_HSI (TERNOP, sqdmlal, 0, NONE) BUILTIN_VSD_HSI (TERNOP, sqdmlsl, 0, NONE) /* Implemented by aarch64_sqdmll_lane. */ BUILTIN_VSD_HSI (QUADOP_LANE, sqdmlal_lane, 0, NONE) BUILTIN_VSD_HSI (QUADOP_LANE, sqdmlsl_lane, 0, NONE) /* Implemented by aarch64_sqdmll_laneq. */ BUILTIN_VSD_HSI (QUADOP_LANE, sqdmlal_laneq, 0, NONE) BUILTIN_VSD_HSI (QUADOP_LANE, sqdmlsl_laneq, 0, NONE) /* Implemented by aarch64_sqdmll_n. */ BUILTIN_VD_HSI (TERNOP, sqdmlal_n, 0, NONE) BUILTIN_VD_HSI (TERNOP, sqdmlsl_n, 0, NONE) BUILTIN_VQ_HSI (TERNOP, sqdmlal2, 0, NONE) BUILTIN_VQ_HSI (TERNOP, sqdmlsl2, 0, NONE) BUILTIN_VQ_HSI (QUADOP_LANE, sqdmlal2_lane, 0, NONE) BUILTIN_VQ_HSI (QUADOP_LANE, sqdmlsl2_lane, 0, NONE) BUILTIN_VQ_HSI (QUADOP_LANE, sqdmlal2_laneq, 0, NONE) BUILTIN_VQ_HSI (QUADOP_LANE, sqdmlsl2_laneq, 0, NONE) BUILTIN_VQ_HSI (TERNOP, sqdmlal2_n, 0, NONE) BUILTIN_VQ_HSI (TERNOP, sqdmlsl2_n, 0, NONE) BUILTIN_VD_BHSI (BINOP, intrinsic_vec_smult_lo_, 0, NONE) BUILTIN_VD_BHSI (BINOPU, intrinsic_vec_umult_lo_, 0, NONE) BUILTIN_VQW (BINOP, vec_widen_smult_hi_, 10, NONE) BUILTIN_VQW (BINOPU, vec_widen_umult_hi_, 10, NONE) BUILTIN_VD_HSI (BINOP, smull_n, 0, NONE) BUILTIN_VD_HSI (BINOPU, umull_n, 0, NONE) BUILTIN_VQ_HSI (BINOP, smull_hi_n, 0, NONE) BUILTIN_VQ_HSI (BINOPU, umull_hi_n, 0, NONE) BUILTIN_VQ_HSI (TERNOP_LANE, smull_hi_lane, 0, NONE) BUILTIN_VQ_HSI (TERNOP_LANE, smull_hi_laneq, 0, NONE) BUILTIN_VQ_HSI (TERNOPU_LANE, umull_hi_lane, 0, NONE) BUILTIN_VQ_HSI (TERNOPU_LANE, umull_hi_laneq, 0, NONE) BUILTIN_VD_HSI (TERNOP_LANE, vec_smult_lane_, 0, NONE) BUILTIN_VD_HSI (QUADOP_LANE, vec_smlal_lane_, 0, NONE) BUILTIN_VD_HSI (TERNOP_LANE, vec_smult_laneq_, 0, NONE) BUILTIN_VD_HSI (QUADOP_LANE, vec_smlal_laneq_, 0, NONE) BUILTIN_VD_HSI (TERNOPU_LANE, vec_umult_lane_, 0, NONE) BUILTIN_VD_HSI (QUADOPU_LANE, vec_umlal_lane_, 0, NONE) BUILTIN_VD_HSI (TERNOPU_LANE, vec_umult_laneq_, 0, NONE) BUILTIN_VD_HSI (QUADOPU_LANE, vec_umlal_laneq_, 0, NONE) BUILTIN_VD_HSI (QUADOP_LANE, vec_smlsl_lane_, 0, NONE) BUILTIN_VD_HSI (QUADOP_LANE, vec_smlsl_laneq_, 0, NONE) BUILTIN_VD_HSI (QUADOPU_LANE, vec_umlsl_lane_, 0, NONE) BUILTIN_VD_HSI (QUADOPU_LANE, vec_umlsl_laneq_, 0, NONE) BUILTIN_VQ_HSI (QUADOP_LANE, smlal_hi_lane, 0, NONE) BUILTIN_VQ_HSI (QUADOP_LANE, smlal_hi_laneq, 0, NONE) BUILTIN_VQ_HSI (QUADOPU_LANE, umlal_hi_lane, 0, NONE) BUILTIN_VQ_HSI (QUADOPU_LANE, umlal_hi_laneq, 0, NONE) BUILTIN_VQ_HSI (QUADOP_LANE, smlsl_hi_lane, 0, NONE) BUILTIN_VQ_HSI (QUADOP_LANE, smlsl_hi_laneq, 0, NONE) BUILTIN_VQ_HSI (QUADOPU_LANE, umlsl_hi_lane, 0, NONE) BUILTIN_VQ_HSI (QUADOPU_LANE, umlsl_hi_laneq, 0, NONE) BUILTIN_VSD_HSI (BINOP, sqdmull, 0, NONE) BUILTIN_VSD_HSI (TERNOP_LANE, sqdmull_lane, 0, NONE) BUILTIN_VSD_HSI (TERNOP_LANE, sqdmull_laneq, 0, NONE) BUILTIN_VD_HSI (BINOP, sqdmull_n, 0, NONE) BUILTIN_VQ_HSI (BINOP, sqdmull2, 0, NONE) BUILTIN_VQ_HSI (TERNOP_LANE, sqdmull2_lane, 0, NONE) BUILTIN_VQ_HSI (TERNOP_LANE, sqdmull2_laneq, 0, NONE) BUILTIN_VQ_HSI (BINOP, sqdmull2_n, 0, NONE) /* Implemented by aarch64_sqdmulh. */ BUILTIN_VSDQ_HSI (BINOP, sqdmulh, 0, NONE) BUILTIN_VSDQ_HSI (BINOP, sqrdmulh, 0, NONE) /* Implemented by aarch64_sqdmulh_n. */ BUILTIN_VDQHS (BINOP, sqdmulh_n, 0, NONE) BUILTIN_VDQHS (BINOP, sqrdmulh_n, 0, NONE) /* Implemented by aarch64_sqdmulh_lane. */ BUILTIN_VSDQ_HSI (TERNOP_LANE, sqdmulh_lane, 0, NONE) BUILTIN_VSDQ_HSI (TERNOP_LANE, sqdmulh_laneq, 0, NONE) BUILTIN_VSDQ_HSI (TERNOP_LANE, sqrdmulh_lane, 0, NONE) BUILTIN_VSDQ_HSI (TERNOP_LANE, sqrdmulh_laneq, 0, NONE) BUILTIN_VSDQ_I_DI (BINOP, ashl, 3, NONE) /* Implemented by aarch64_shl. */ BUILTIN_VSDQ_I_DI (BINOP, sshl, 0, NONE) BUILTIN_VSDQ_I_DI (BINOP_UUS, ushl, 0, NONE) BUILTIN_VSDQ_I_DI (BINOP, srshl, 0, NONE) BUILTIN_VSDQ_I_DI (BINOP_UUS, urshl, 0, NONE) /* Implemented by _prod. */ BUILTIN_VB (TERNOP, sdot_prod, 10, NONE) BUILTIN_VB (TERNOPU, udot_prod, 10, NONE) BUILTIN_VB (TERNOP_SUSS, usdot_prod, 10, NONE) /* Implemented by aarch64__lane{q}. */ BUILTIN_VB (QUADOP_LANE, sdot_lane, 0, NONE) BUILTIN_VB (QUADOPU_LANE, udot_lane, 0, NONE) BUILTIN_VB (QUADOP_LANE, sdot_laneq, 0, NONE) BUILTIN_VB (QUADOPU_LANE, udot_laneq, 0, NONE) BUILTIN_VB (QUADOPSSUS_LANE_QUADTUP, usdot_lane, 0, NONE) BUILTIN_VB (QUADOPSSUS_LANE_QUADTUP, usdot_laneq, 0, NONE) BUILTIN_VB (QUADOPSSSU_LANE_QUADTUP, sudot_lane, 0, NONE) BUILTIN_VB (QUADOPSSSU_LANE_QUADTUP, sudot_laneq, 0, NONE) /* Implemented by aarch64_fcadd. */ BUILTIN_VHSDF (BINOP, fcadd90, 0, FP) BUILTIN_VHSDF (BINOP, fcadd270, 0, FP) /* Implemented by aarch64_fcmla{_lane}{q}. */ BUILTIN_VHSDF (TERNOP, fcmla0, 0, FP) BUILTIN_VHSDF (TERNOP, fcmla90, 0, FP) BUILTIN_VHSDF (TERNOP, fcmla180, 0, FP) BUILTIN_VHSDF (TERNOP, fcmla270, 0, FP) BUILTIN_VHSDF (QUADOP_LANE_PAIR, fcmla_lane0, 0, FP) BUILTIN_VHSDF (QUADOP_LANE_PAIR, fcmla_lane90, 0, FP) BUILTIN_VHSDF (QUADOP_LANE_PAIR, fcmla_lane180, 0, FP) BUILTIN_VHSDF (QUADOP_LANE_PAIR, fcmla_lane270, 0, FP) BUILTIN_VQ_HSF (QUADOP_LANE_PAIR, fcmlaq_lane0, 0, FP) BUILTIN_VQ_HSF (QUADOP_LANE_PAIR, fcmlaq_lane90, 0, FP) BUILTIN_VQ_HSF (QUADOP_LANE_PAIR, fcmlaq_lane180, 0, FP) BUILTIN_VQ_HSF (QUADOP_LANE_PAIR, fcmlaq_lane270, 0, FP) BUILTIN_VDQ_I (SHIFTIMM, ashr, 3, NONE) VAR1 (SHIFTIMM, ashr_simd, 0, NONE, di) BUILTIN_VDQ_I (USHIFTIMM, lshr, 3, NONE) VAR1 (USHIFTIMM, lshr_simd, 0, NONE, di) /* Implemented by aarch64_shr_n. */ BUILTIN_VSDQ_I_DI (SHIFTIMM, srshr_n, 0, NONE) BUILTIN_VSDQ_I_DI (USHIFTIMM, urshr_n, 0, NONE) /* Implemented by aarch64_sra_n. */ BUILTIN_VSDQ_I_DI (SHIFTACC, ssra_n, 0, NONE) BUILTIN_VSDQ_I_DI (USHIFTACC, usra_n, 0, NONE) BUILTIN_VSDQ_I_DI (SHIFTACC, srsra_n, 0, NONE) BUILTIN_VSDQ_I_DI (USHIFTACC, ursra_n, 0, NONE) /* Implemented by aarch64_shll_n. */ BUILTIN_VD_BHSI (SHIFTIMM, sshll_n, 0, NONE) BUILTIN_VD_BHSI (USHIFTIMM, ushll_n, 0, NONE) /* Implemented by aarch64_shll2_n. */ BUILTIN_VQW (SHIFTIMM, sshll2_n, 0, NONE) BUILTIN_VQW (SHIFTIMM, ushll2_n, 0, NONE) /* Implemented by aarch64_qshrn_n. */ BUILTIN_VQN (SHIFTIMM, sqshrun_n, 0, NONE) BUILTIN_VQN (SHIFTIMM, sqrshrun_n, 0, NONE) BUILTIN_VQN (SHIFTIMM, sqshrn_n, 0, NONE) BUILTIN_VQN (USHIFTIMM, uqshrn_n, 0, NONE) BUILTIN_VQN (SHIFTIMM, sqrshrn_n, 0, NONE) BUILTIN_VQN (USHIFTIMM, uqrshrn_n, 0, NONE) BUILTIN_SD_HSDI (SHIFTIMM, sqshrun_n, 0, NONE) BUILTIN_SD_HSDI (SHIFTIMM, sqrshrun_n, 0, NONE) BUILTIN_SD_HSDI (SHIFTIMM, sqshrn_n, 0, NONE) BUILTIN_SD_HSDI (USHIFTIMM, uqshrn_n, 0, NONE) BUILTIN_SD_HSDI (SHIFTIMM, sqrshrn_n, 0, NONE) BUILTIN_SD_HSDI (USHIFTIMM, uqrshrn_n, 0, NONE) /* Implemented by aarch64_qshrn2_n. */ BUILTIN_VQN (SHIFT2IMM_UUSS, sqshrun2_n, 0, NONE) BUILTIN_VQN (SHIFT2IMM_UUSS, sqrshrun2_n, 0, NONE) BUILTIN_VQN (SHIFT2IMM, sqshrn2_n, 0, NONE) BUILTIN_VQN (USHIFT2IMM, uqshrn2_n, 0, NONE) BUILTIN_VQN (SHIFT2IMM, sqrshrn2_n, 0, NONE) BUILTIN_VQN (USHIFT2IMM, uqrshrn2_n, 0, NONE) /* Implemented by aarch64_si_n. */ BUILTIN_VSDQ_I_DI (SHIFTINSERT, ssri_n, 0, NONE) BUILTIN_VALLP (SHIFTINSERTP, ssri_n, 0, NONE) BUILTIN_VSDQ_I_DI (USHIFTACC, usri_n, 0, NONE) BUILTIN_VSDQ_I_DI (SHIFTINSERT, ssli_n, 0, NONE) BUILTIN_VALLP (SHIFTINSERTP, ssli_n, 0, NONE) BUILTIN_VSDQ_I_DI (USHIFTACC, usli_n, 0, NONE) /* Implemented by aarch64_qshl_n. */ BUILTIN_VSDQ_I (SHIFTIMM_USS, sqshlu_n, 0, NONE) BUILTIN_VSDQ_I (SHIFTIMM, sqshl_n, 0, NONE) BUILTIN_VSDQ_I (USHIFTIMM, uqshl_n, 0, NONE) /* Implemented by aarch64_xtn2. */ BUILTIN_VQN (BINOP, xtn2, 0, NONE) BUILTIN_VQN (BINOPU, xtn2, 0, NONE) /* Implemented by vec_unpack_hi_. */ BUILTIN_VQW (UNOP, vec_unpacks_hi_, 10, NONE) BUILTIN_VQW (UNOPU, vec_unpacku_hi_, 10, NONE) /* Implemented by aarch64_reduc_plus_. */ BUILTIN_VALL (UNOP, reduc_plus_scal_, 10, NONE) BUILTIN_VDQ_I (UNOPU, reduc_plus_scal_, 10, NONE) /* Implemented by reduc__scal_ (producing scalar). */ BUILTIN_VDQIF_F16 (UNOP, reduc_smax_scal_, 10, NONE) BUILTIN_VDQIF_F16 (UNOP, reduc_smin_scal_, 10, NONE) BUILTIN_VDQ_BHSI (UNOPU, reduc_umax_scal_, 10, NONE) BUILTIN_VDQ_BHSI (UNOPU, reduc_umin_scal_, 10, NONE) BUILTIN_VHSDF (UNOP, reduc_smax_nan_scal_, 10, NONE) BUILTIN_VHSDF (UNOP, reduc_smin_nan_scal_, 10, NONE) /* Implemented by 3. */ BUILTIN_VDQ_BHSI (BINOP, smax, 3, NONE) BUILTIN_VDQ_BHSI (BINOP, smin, 3, NONE) BUILTIN_VDQ_BHSI (BINOP, umax, 3, NONE) BUILTIN_VDQ_BHSI (BINOP, umin, 3, NONE) /* Implemented by 3. */ BUILTIN_VHSDF_HSDF (BINOP, fmax, 3, FP) BUILTIN_VHSDF_HSDF (BINOP, fmin, 3, FP) BUILTIN_VHSDF_DF (BINOP, fmax_nan, 3, FP) BUILTIN_VHSDF_DF (BINOP, fmin_nan, 3, FP) /* Implemented by aarch64_p. */ BUILTIN_VDQ_BHSI (BINOP, smaxp, 0, NONE) BUILTIN_VDQ_BHSI (BINOP, sminp, 0, NONE) BUILTIN_VDQ_BHSI (BINOP, umaxp, 0, NONE) BUILTIN_VDQ_BHSI (BINOP, uminp, 0, NONE) BUILTIN_VHSDF (BINOP, smaxp, 0, NONE) BUILTIN_VHSDF (BINOP, sminp, 0, NONE) BUILTIN_VHSDF (BINOP, smax_nanp, 0, NONE) BUILTIN_VHSDF (BINOP, smin_nanp, 0, NONE) /* Implemented by 2. */ BUILTIN_VHSDF (UNOP, btrunc, 2, FP) BUILTIN_VHSDF (UNOP, ceil, 2, FP) BUILTIN_VHSDF (UNOP, floor, 2, FP) BUILTIN_VHSDF (UNOP, nearbyint, 2, FP) BUILTIN_VHSDF (UNOP, rint, 2, FP) BUILTIN_VHSDF (UNOP, round, 2, FP) BUILTIN_VHSDF_HSDF (UNOP, roundeven, 2, FP) VAR1 (UNOP, btrunc, 2, FP, hf) VAR1 (UNOP, ceil, 2, FP, hf) VAR1 (UNOP, floor, 2, FP, hf) VAR1 (UNOP, nearbyint, 2, FP, hf) VAR1 (UNOP, rint, 2, FP, hf) VAR1 (UNOP, round, 2, FP, hf) /* Implemented by l2. */ VAR1 (UNOP, lbtruncv4hf, 2, FP, v4hi) VAR1 (UNOP, lbtruncv8hf, 2, FP, v8hi) VAR1 (UNOP, lbtruncv2sf, 2, FP, v2si) VAR1 (UNOP, lbtruncv4sf, 2, FP, v4si) VAR1 (UNOP, lbtruncv2df, 2, FP, v2di) VAR1 (UNOPUS, lbtruncuv4hf, 2, FP, v4hi) VAR1 (UNOPUS, lbtruncuv8hf, 2, FP, v8hi) VAR1 (UNOPUS, lbtruncuv2sf, 2, FP, v2si) VAR1 (UNOPUS, lbtruncuv4sf, 2, FP, v4si) VAR1 (UNOPUS, lbtruncuv2df, 2, FP, v2di) VAR1 (UNOP, lroundv4hf, 2, FP, v4hi) VAR1 (UNOP, lroundv8hf, 2, FP, v8hi) VAR1 (UNOP, lroundv2sf, 2, FP, v2si) VAR1 (UNOP, lroundv4sf, 2, FP, v4si) VAR1 (UNOP, lroundv2df, 2, FP, v2di) /* Implemented by l2. */ BUILTIN_GPI_I16 (UNOP, lroundhf, 2, FP) VAR1 (UNOP, lroundsf, 2, FP, si) VAR1 (UNOP, lrounddf, 2, FP, di) VAR1 (UNOPUS, lrounduv4hf, 2, FP, v4hi) VAR1 (UNOPUS, lrounduv8hf, 2, FP, v8hi) VAR1 (UNOPUS, lrounduv2sf, 2, FP, v2si) VAR1 (UNOPUS, lrounduv4sf, 2, FP, v4si) VAR1 (UNOPUS, lrounduv2df, 2, FP, v2di) BUILTIN_GPI_I16 (UNOPUS, lrounduhf, 2, FP) VAR1 (UNOPUS, lroundusf, 2, FP, si) VAR1 (UNOPUS, lroundudf, 2, FP, di) VAR1 (UNOP, lceilv4hf, 2, FP, v4hi) VAR1 (UNOP, lceilv8hf, 2, FP, v8hi) VAR1 (UNOP, lceilv2sf, 2, FP, v2si) VAR1 (UNOP, lceilv4sf, 2, FP, v4si) VAR1 (UNOP, lceilv2df, 2, FP, v2di) BUILTIN_GPI_I16 (UNOP, lceilhf, 2, FP) VAR1 (UNOPUS, lceiluv4hf, 2, FP, v4hi) VAR1 (UNOPUS, lceiluv8hf, 2, FP, v8hi) VAR1 (UNOPUS, lceiluv2sf, 2, FP, v2si) VAR1 (UNOPUS, lceiluv4sf, 2, FP, v4si) VAR1 (UNOPUS, lceiluv2df, 2, FP, v2di) BUILTIN_GPI_I16 (UNOPUS, lceiluhf, 2, FP) VAR1 (UNOPUS, lceilusf, 2, FP, si) VAR1 (UNOPUS, lceiludf, 2, FP, di) VAR1 (UNOP, lfloorv4hf, 2, FP, v4hi) VAR1 (UNOP, lfloorv8hf, 2, FP, v8hi) VAR1 (UNOP, lfloorv2sf, 2, FP, v2si) VAR1 (UNOP, lfloorv4sf, 2, FP, v4si) VAR1 (UNOP, lfloorv2df, 2, FP, v2di) BUILTIN_GPI_I16 (UNOP, lfloorhf, 2, FP) VAR1 (UNOPUS, lflooruv4hf, 2, FP, v4hi) VAR1 (UNOPUS, lflooruv8hf, 2, FP, v8hi) VAR1 (UNOPUS, lflooruv2sf, 2, FP, v2si) VAR1 (UNOPUS, lflooruv4sf, 2, FP, v4si) VAR1 (UNOPUS, lflooruv2df, 2, FP, v2di) BUILTIN_GPI_I16 (UNOPUS, lflooruhf, 2, FP) VAR1 (UNOPUS, lfloorusf, 2, FP, si) VAR1 (UNOPUS, lfloorudf, 2, FP, di) VAR1 (UNOP, lfrintnv4hf, 2, FP, v4hi) VAR1 (UNOP, lfrintnv8hf, 2, FP, v8hi) VAR1 (UNOP, lfrintnv2sf, 2, FP, v2si) VAR1 (UNOP, lfrintnv4sf, 2, FP, v4si) VAR1 (UNOP, lfrintnv2df, 2, FP, v2di) BUILTIN_GPI_I16 (UNOP, lfrintnhf, 2, FP) VAR1 (UNOP, lfrintnsf, 2, FP, si) VAR1 (UNOP, lfrintndf, 2, FP, di) VAR1 (UNOPUS, lfrintnuv4hf, 2, FP, v4hi) VAR1 (UNOPUS, lfrintnuv8hf, 2, FP, v8hi) VAR1 (UNOPUS, lfrintnuv2sf, 2, FP, v2si) VAR1 (UNOPUS, lfrintnuv4sf, 2, FP, v4si) VAR1 (UNOPUS, lfrintnuv2df, 2, FP, v2di) BUILTIN_GPI_I16 (UNOPUS, lfrintnuhf, 2, FP) VAR1 (UNOPUS, lfrintnusf, 2, FP, si) VAR1 (UNOPUS, lfrintnudf, 2, FP, di) /* Implemented by 2. */ VAR1 (UNOP, floatv4hi, 2, FP, v4hf) VAR1 (UNOP, floatv8hi, 2, FP, v8hf) VAR1 (UNOP, floatv2si, 2, FP, v2sf) VAR1 (UNOP, floatv4si, 2, FP, v4sf) VAR1 (UNOP, floatv2di, 2, FP, v2df) VAR1 (UNOP, floatunsv4hi, 2, FP, v4hf) VAR1 (UNOP, floatunsv8hi, 2, FP, v8hf) VAR1 (UNOP, floatunsv2si, 2, FP, v2sf) VAR1 (UNOP, floatunsv4si, 2, FP, v4sf) VAR1 (UNOP, floatunsv2di, 2, FP, v2df) VAR5 (UNOPU, bswap, 2, NONE, v4hi, v8hi, v2si, v4si, v2di) BUILTIN_VB (UNOP, rbit, 0, NONE) /* Implemented by aarch64_. */ BUILTIN_VALL (BINOP, zip1, 0, AUTO_FP) BUILTIN_VALL (BINOP, zip2, 0, AUTO_FP) BUILTIN_VALL (BINOP, uzp1, 0, AUTO_FP) BUILTIN_VALL (BINOP, uzp2, 0, AUTO_FP) BUILTIN_VALL (BINOP, trn1, 0, AUTO_FP) BUILTIN_VALL (BINOP, trn2, 0, AUTO_FP) BUILTIN_GPF_F16 (UNOP, frecpe, 0, FP) BUILTIN_GPF_F16 (UNOP, frecpx, 0, FP) BUILTIN_VDQ_SI (UNOP, urecpe, 0, NONE) BUILTIN_VHSDF (UNOP, frecpe, 0, FP) BUILTIN_VHSDF_HSDF (BINOP, frecps, 0, FP) /* Implemented by a mixture of abs2 patterns. Note the DImode builtin is only ever used for the int64x1_t intrinsic, there is no scalar version. */ BUILTIN_VSDQ_I_DI (UNOP, abs, 0, AUTO_FP) BUILTIN_VHSDF (UNOP, abs, 2, AUTO_FP) VAR1 (UNOP, abs, 2, AUTO_FP, hf) BUILTIN_VQ_HSF (UNOP, vec_unpacks_hi_, 10, FP) VAR1 (BINOP, float_truncate_hi_, 0, FP, v4sf) VAR1 (BINOP, float_truncate_hi_, 0, FP, v8hf) VAR1 (UNOP, float_extend_lo_, 0, FP, v2df) VAR1 (UNOP, float_extend_lo_, 0, FP, v4sf) BUILTIN_VDF (UNOP, float_truncate_lo_, 0, FP) VAR1 (UNOP, float_trunc_rodd_, 0, FP, df) VAR1 (UNOP, float_trunc_rodd_lo_, 0, FP, v2sf) VAR1 (BINOP, float_trunc_rodd_hi_, 0, FP, v4sf) /* Implemented by aarch64_ld1. */ BUILTIN_VALL_F16 (LOAD1, ld1, 0, LOAD) BUILTIN_VDQ_I (LOAD1_U, ld1, 0, LOAD) BUILTIN_VALLP_NO_DI (LOAD1_P, ld1, 0, LOAD) /* Implemented by aarch64_st1. */ BUILTIN_VALL_F16 (STORE1, st1, 0, STORE) BUILTIN_VDQ_I (STORE1_U, st1, 0, STORE) BUILTIN_VALLP_NO_DI (STORE1_P, st1, 0, STORE) /* Implemented by fma4. */ BUILTIN_VHSDF (TERNOP, fma, 4, FP) VAR1 (TERNOP, fma, 4, FP, hf) /* Implemented by fnma4. */ BUILTIN_VHSDF (TERNOP, fnma, 4, FP) VAR1 (TERNOP, fnma, 4, FP, hf) BUILTIN_VDQF_DF (TERNOP, float_mla, 0, FP) BUILTIN_VDQF_DF (TERNOP, float_mls, 0, FP) BUILTIN_VDQSF (TERNOP, float_mla_n, 0, FP) BUILTIN_VDQSF (TERNOP, float_mls_n, 0, FP) BUILTIN_VDQSF (QUADOP_LANE, float_mla_lane, 0, FP) BUILTIN_VDQSF (QUADOP_LANE, float_mls_lane, 0, FP) BUILTIN_VDQSF (QUADOP_LANE, float_mla_laneq, 0, FP) BUILTIN_VDQSF (QUADOP_LANE, float_mls_laneq, 0, FP) /* Implemented by aarch64_simd_bsl. */ BUILTIN_VDQQH (BSL_P, simd_bsl, 0, NONE) VAR2 (BSL_P, simd_bsl,0, NONE, di, v2di) BUILTIN_VSDQ_I_DI (BSL_U, simd_bsl, 0, NONE) BUILTIN_VALLDIF (BSL_S, simd_bsl, 0, AUTO_FP) /* Implemented by aarch64_crypto_aes. */ VAR1 (BINOPU, crypto_aese, 0, NONE, v16qi) VAR1 (BINOPU, crypto_aesd, 0, NONE, v16qi) VAR1 (UNOPU, crypto_aesmc, 0, NONE, v16qi) VAR1 (UNOPU, crypto_aesimc, 0, NONE, v16qi) /* Implemented by aarch64_crypto_sha1. */ VAR1 (UNOPU, crypto_sha1h, 0, NONE, si) VAR1 (BINOPU, crypto_sha1su1, 0, NONE, v4si) VAR1 (TERNOPU, crypto_sha1c, 0, NONE, v4si) VAR1 (TERNOPU, crypto_sha1m, 0, NONE, v4si) VAR1 (TERNOPU, crypto_sha1p, 0, NONE, v4si) VAR1 (TERNOPU, crypto_sha1su0, 0, NONE, v4si) /* Implemented by aarch64_crypto_sha256. */ VAR1 (TERNOPU, crypto_sha256h, 0, NONE, v4si) VAR1 (TERNOPU, crypto_sha256h2, 0, NONE, v4si) VAR1 (BINOPU, crypto_sha256su0, 0, NONE, v4si) VAR1 (TERNOPU, crypto_sha256su1, 0, NONE, v4si) /* Implemented by aarch64_crypto_pmull. */ VAR1 (BINOPP, crypto_pmull, 0, NONE, di) VAR1 (BINOPP, crypto_pmull, 0, NONE, v2di) /* Implemented by aarch64_qtbl1. */ VAR2 (BINOP, qtbl1, 0, NONE, v8qi, v16qi) VAR2 (BINOPU, qtbl1, 0, NONE, v8qi, v16qi) VAR2 (BINOP_PPU, qtbl1, 0, NONE, v8qi, v16qi) VAR2 (BINOP_SSU, qtbl1, 0, NONE, v8qi, v16qi) /* Implemented by aarch64_qtbl2. */ VAR2 (BINOP, qtbl2, 0, NONE, v8qi, v16qi) VAR2 (BINOPU, qtbl2, 0, NONE, v8qi, v16qi) VAR2 (BINOP_PPU, qtbl2, 0, NONE, v8qi, v16qi) VAR2 (BINOP_SSU, qtbl2, 0, NONE, v8qi, v16qi) /* Implemented by aarch64_qtbl3. */ VAR2 (BINOP, qtbl3, 0, NONE, v8qi, v16qi) VAR2 (BINOPU, qtbl3, 0, NONE, v8qi, v16qi) VAR2 (BINOP_PPU, qtbl3, 0, NONE, v8qi, v16qi) VAR2 (BINOP_SSU, qtbl3, 0, NONE, v8qi, v16qi) /* Implemented by aarch64_qtbl4. */ VAR2 (BINOP, qtbl4, 0, NONE, v8qi, v16qi) VAR2 (BINOPU, qtbl4, 0, NONE, v8qi, v16qi) VAR2 (BINOP_PPU, qtbl4, 0, NONE, v8qi, v16qi) VAR2 (BINOP_SSU, qtbl4, 0, NONE, v8qi, v16qi) /* Implemented by aarch64_qtbx1. */ VAR2 (TERNOP, qtbx1, 0, NONE, v8qi, v16qi) VAR2 (TERNOPU, qtbx1, 0, NONE, v8qi, v16qi) VAR2 (TERNOP_PPPU, qtbx1, 0, NONE, v8qi, v16qi) VAR2 (TERNOP_SSSU, qtbx1, 0, NONE, v8qi, v16qi) /* Implemented by aarch64_qtbx2. */ VAR2 (TERNOP, qtbx2, 0, NONE, v8qi, v16qi) VAR2 (TERNOPU, qtbx2, 0, NONE, v8qi, v16qi) VAR2 (TERNOP_PPPU, qtbx2, 0, NONE, v8qi, v16qi) VAR2 (TERNOP_SSSU, qtbx2, 0, NONE, v8qi, v16qi) /* Implemented by aarch64_qtbx3. */ VAR2 (TERNOP, qtbx3, 0, NONE, v8qi, v16qi) VAR2 (TERNOPU, qtbx3, 0, NONE, v8qi, v16qi) VAR2 (TERNOP_PPPU, qtbx3, 0, NONE, v8qi, v16qi) VAR2 (TERNOP_SSSU, qtbx3, 0, NONE, v8qi, v16qi) /* Implemented by aarch64_qtbx4. */ VAR2 (TERNOP, qtbx4, 0, NONE, v8qi, v16qi) VAR2 (TERNOPU, qtbx4, 0, NONE, v8qi, v16qi) VAR2 (TERNOP_PPPU, qtbx4, 0, NONE, v8qi, v16qi) VAR2 (TERNOP_SSSU, qtbx4, 0, NONE, v8qi, v16qi) /* Builtins for ARMv8.1-A Adv.SIMD instructions. */ /* Implemented by aarch64_sqrdmlh. */ BUILTIN_VSDQ_HSI (TERNOP, sqrdmlah, 0, NONE) BUILTIN_VSDQ_HSI (TERNOP, sqrdmlsh, 0, NONE) /* Implemented by aarch64_sqrdmlh_lane. */ BUILTIN_VSDQ_HSI (QUADOP_LANE, sqrdmlah_lane, 0, NONE) BUILTIN_VSDQ_HSI (QUADOP_LANE, sqrdmlsh_lane, 0, NONE) /* Implemented by aarch64_sqrdmlh_laneq. */ BUILTIN_VSDQ_HSI (QUADOP_LANE, sqrdmlah_laneq, 0, NONE) BUILTIN_VSDQ_HSI (QUADOP_LANE, sqrdmlsh_laneq, 0, NONE) /* Implemented by <*><*>3. */ BUILTIN_VSDQ_HSDI (SHIFTIMM, scvtf, 3, FP) BUILTIN_VSDQ_HSDI (FCVTIMM_SUS, ucvtf, 3, FP) BUILTIN_VHSDF_HSDF (SHIFTIMM, fcvtzs, 3, FP) BUILTIN_VHSDF_HSDF (SHIFTIMM_USS, fcvtzu, 3, FP) VAR1 (SHIFTIMM, scvtfsi, 3, FP, hf) VAR1 (SHIFTIMM, scvtfdi, 3, FP, hf) VAR1 (FCVTIMM_SUS, ucvtfsi, 3, FP, hf) VAR1 (FCVTIMM_SUS, ucvtfdi, 3, FP, hf) BUILTIN_GPI (SHIFTIMM, fcvtzshf, 3, FP) BUILTIN_GPI (SHIFTIMM_USS, fcvtzuhf, 3, FP) /* Implemented by aarch64_rsqrte. */ BUILTIN_VHSDF_HSDF (UNOP, rsqrte, 0, FP) /* Implemented by aarch64_rsqrts. */ BUILTIN_VHSDF_HSDF (BINOP, rsqrts, 0, FP) /* Implemented by aarch64_ursqrte. */ BUILTIN_VDQ_SI (UNOPU, ursqrte, 0, NONE) /* Implemented by fabd3. */ BUILTIN_VHSDF_HSDF (BINOP, fabd, 3, FP) /* Implemented by aarch64_faddp. */ BUILTIN_VHSDF (BINOP, faddp, 0, FP) /* Implemented by aarch64_cm. */ BUILTIN_VHSDF_HSDF (BINOP_USS, cmeq, 0, FP) BUILTIN_VHSDF_HSDF (BINOP_USS, cmge, 0, FP) BUILTIN_VHSDF_HSDF (BINOP_USS, cmgt, 0, FP) BUILTIN_VHSDF_HSDF (BINOP_USS, cmle, 0, FP) BUILTIN_VHSDF_HSDF (BINOP_USS, cmlt, 0, FP) /* Implemented by neg2. */ BUILTIN_VHSDF_HSDF (UNOP, neg, 2, ALL) /* Implemented by aarch64_fac. */ BUILTIN_VHSDF_HSDF (BINOP_USS, faclt, 0, FP) BUILTIN_VHSDF_HSDF (BINOP_USS, facle, 0, FP) BUILTIN_VHSDF_HSDF (BINOP_USS, facgt, 0, FP) BUILTIN_VHSDF_HSDF (BINOP_USS, facge, 0, FP) /* Implemented by sqrt2. */ VAR1 (UNOP, sqrt, 2, FP, hf) /* Implemented by hf2. */ VAR1 (UNOP, floatdi, 2, FP, hf) VAR1 (UNOP, floatsi, 2, FP, hf) VAR1 (UNOP, floathi, 2, FP, hf) VAR1 (UNOPUS, floatunsdi, 2, FP, hf) VAR1 (UNOPUS, floatunssi, 2, FP, hf) VAR1 (UNOPUS, floatunshi, 2, FP, hf) BUILTIN_GPI_I16 (UNOP, fix_trunchf, 2, FP) BUILTIN_GPI (UNOP, fix_truncsf, 2, FP) BUILTIN_GPI (UNOP, fix_truncdf, 2, FP) BUILTIN_GPI_I16 (UNOPUS, fixuns_trunchf, 2, FP) BUILTIN_GPI (UNOPUS, fixuns_truncsf, 2, FP) BUILTIN_GPI (UNOPUS, fixuns_truncdf, 2, FP) /* Implemented by aarch64_sm3ss1qv4si. */ VAR1 (TERNOPU, sm3ss1q, 0, NONE, v4si) /* Implemented by aarch64_sm3ttqv4si. */ VAR1 (QUADOPUI, sm3tt1aq, 0, NONE, v4si) VAR1 (QUADOPUI, sm3tt1bq, 0, NONE, v4si) VAR1 (QUADOPUI, sm3tt2aq, 0, NONE, v4si) VAR1 (QUADOPUI, sm3tt2bq, 0, NONE, v4si) /* Implemented by aarch64_sm3partwqv4si. */ VAR1 (TERNOPU, sm3partw1q, 0, NONE, v4si) VAR1 (TERNOPU, sm3partw2q, 0, NONE, v4si) /* Implemented by aarch64_sm4eqv4si. */ VAR1 (BINOPU, sm4eq, 0, NONE, v4si) /* Implemented by aarch64_sm4ekeyqv4si. */ VAR1 (BINOPU, sm4ekeyq, 0, NONE, v4si) /* Implemented by aarch64_crypto_sha512hqv2di. */ VAR1 (TERNOPU, crypto_sha512hq, 0, NONE, v2di) /* Implemented by aarch64_sha512h2qv2di. */ VAR1 (TERNOPU, crypto_sha512h2q, 0, NONE, v2di) /* Implemented by aarch64_crypto_sha512su0qv2di. */ VAR1 (BINOPU, crypto_sha512su0q, 0, NONE, v2di) /* Implemented by aarch64_crypto_sha512su1qv2di. */ VAR1 (TERNOPU, crypto_sha512su1q, 0, NONE, v2di) /* Implemented by eor3q4. */ BUILTIN_VQ_I (TERNOPU, eor3q, 4, NONE) BUILTIN_VQ_I (TERNOP, eor3q, 4, NONE) /* Implemented by aarch64_rax1qv2di. */ VAR1 (BINOPU, rax1q, 0, NONE, v2di) /* Implemented by aarch64_xarqv2di. */ VAR1 (TERNOPUI, xarq, 0, NONE, v2di) /* Implemented by bcaxq4. */ BUILTIN_VQ_I (TERNOPU, bcaxq, 4, NONE) BUILTIN_VQ_I (TERNOP, bcaxq, 4, NONE) /* Implemented by aarch64_fmll_low. */ VAR1 (TERNOP, fmlal_low, 0, FP, v2sf) VAR1 (TERNOP, fmlsl_low, 0, FP, v2sf) VAR1 (TERNOP, fmlalq_low, 0, FP, v4sf) VAR1 (TERNOP, fmlslq_low, 0, FP, v4sf) /* Implemented by aarch64_fmll_high. */ VAR1 (TERNOP, fmlal_high, 0, FP, v2sf) VAR1 (TERNOP, fmlsl_high, 0, FP, v2sf) VAR1 (TERNOP, fmlalq_high, 0, FP, v4sf) VAR1 (TERNOP, fmlslq_high, 0, FP, v4sf) /* Implemented by aarch64_fmll_lane_lowv2sf. */ VAR1 (QUADOP_LANE, fmlal_lane_low, 0, FP, v2sf) VAR1 (QUADOP_LANE, fmlsl_lane_low, 0, FP, v2sf) /* Implemented by aarch64_fmll_laneq_lowv2sf. */ VAR1 (QUADOP_LANE, fmlal_laneq_low, 0, FP, v2sf) VAR1 (QUADOP_LANE, fmlsl_laneq_low, 0, FP, v2sf) /* Implemented by aarch64_fmllq_lane_lowv4sf. */ VAR1 (QUADOP_LANE, fmlalq_lane_low, 0, FP, v4sf) VAR1 (QUADOP_LANE, fmlslq_lane_low, 0, FP, v4sf) /* Implemented by aarch64_fmllq_laneq_lowv4sf. */ VAR1 (QUADOP_LANE, fmlalq_laneq_low, 0, FP, v4sf) VAR1 (QUADOP_LANE, fmlslq_laneq_low, 0, FP, v4sf) /* Implemented by aarch64_fmll_lane_highv2sf. */ VAR1 (QUADOP_LANE, fmlal_lane_high, 0, FP, v2sf) VAR1 (QUADOP_LANE, fmlsl_lane_high, 0, FP, v2sf) /* Implemented by aarch64_fmll_laneq_highv2sf. */ VAR1 (QUADOP_LANE, fmlal_laneq_high, 0, FP, v2sf) VAR1 (QUADOP_LANE, fmlsl_laneq_high, 0, FP, v2sf) /* Implemented by aarch64_fmllq_lane_highv4sf. */ VAR1 (QUADOP_LANE, fmlalq_lane_high, 0, FP, v4sf) VAR1 (QUADOP_LANE, fmlslq_lane_high, 0, FP, v4sf) /* Implemented by aarch64_fmllq_laneq_highv4sf. */ VAR1 (QUADOP_LANE, fmlalq_laneq_high, 0, FP, v4sf) VAR1 (QUADOP_LANE, fmlslq_laneq_high, 0, FP, v4sf) /* Implemented by aarch64_. */ BUILTIN_VSFDF (UNOP, frint32z, 0, FP) BUILTIN_VSFDF (UNOP, frint32x, 0, FP) BUILTIN_VSFDF (UNOP, frint64z, 0, FP) BUILTIN_VSFDF (UNOP, frint64x, 0, FP) /* Implemented by aarch64_bfdot{_lane}{q}. */ VAR2 (TERNOP, bfdot, 0, AUTO_FP, v2sf, v4sf) VAR2 (QUADOP_LANE_PAIR, bfdot_lane, 0, AUTO_FP, v2sf, v4sf) VAR2 (QUADOP_LANE_PAIR, bfdot_laneq, 0, AUTO_FP, v2sf, v4sf) /* Implemented by aarch64_bfmmlaqv4sf */ VAR1 (TERNOP, bfmmlaq, 0, AUTO_FP, v4sf) /* Implemented by aarch64_bfmlal{_lane{q}}v4sf */ VAR1 (TERNOP, bfmlalb, 0, FP, v4sf) VAR1 (TERNOP, bfmlalt, 0, FP, v4sf) VAR1 (QUADOP_LANE, bfmlalb_lane, 0, FP, v4sf) VAR1 (QUADOP_LANE, bfmlalt_lane, 0, FP, v4sf) VAR1 (QUADOP_LANE, bfmlalb_lane_q, 0, FP, v4sf) VAR1 (QUADOP_LANE, bfmlalt_lane_q, 0, FP, v4sf) /* Implemented by aarch64_vget_lo/hi_halfv8bf. */ VAR1 (UNOP, vget_lo_half, 0, AUTO_FP, v8bf) VAR1 (UNOP, vget_hi_half, 0, AUTO_FP, v8bf) /* Implemented by aarch64_simd_mmlav16qi. */ VAR1 (TERNOP, simd_smmla, 0, NONE, v16qi) VAR1 (TERNOPU, simd_ummla, 0, NONE, v16qi) VAR1 (TERNOP_SSUS, simd_usmmla, 0, NONE, v16qi) /* Implemented by aarch64_bfcvtn{q}{2} */ VAR1 (UNOP, bfcvtn, 0, FP, v4bf) VAR1 (UNOP, bfcvtn_q, 0, FP, v8bf) VAR1 (BINOP, bfcvtn2, 0, FP, v8bf) VAR1 (UNOP, bfcvt, 0, FP, bf) /* Implemented by aarch64_{v}bfcvt{_high}. */ VAR2 (UNOP, vbfcvt, 0, AUTO_FP, v4bf, v8bf) VAR1 (UNOP, vbfcvt_high, 0, AUTO_FP, v8bf) VAR1 (UNOP, bfcvt, 0, AUTO_FP, sf)