helper-a64.h (6602B)
1/* 2 * AArch64 specific helper definitions 3 * 4 * Copyright (c) 2013 Alexander Graf <agraf@suse.de> 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, see <http://www.gnu.org/licenses/>. 18 */ 19DEF_HELPER_FLAGS_2(udiv64, TCG_CALL_NO_RWG_SE, i64, i64, i64) 20DEF_HELPER_FLAGS_2(sdiv64, TCG_CALL_NO_RWG_SE, s64, s64, s64) 21DEF_HELPER_FLAGS_1(rbit64, TCG_CALL_NO_RWG_SE, i64, i64) 22DEF_HELPER_2(msr_i_spsel, void, env, i32) 23DEF_HELPER_2(msr_i_daifset, void, env, i32) 24DEF_HELPER_2(msr_i_daifclear, void, env, i32) 25DEF_HELPER_3(vfp_cmph_a64, i64, f16, f16, ptr) 26DEF_HELPER_3(vfp_cmpeh_a64, i64, f16, f16, ptr) 27DEF_HELPER_3(vfp_cmps_a64, i64, f32, f32, ptr) 28DEF_HELPER_3(vfp_cmpes_a64, i64, f32, f32, ptr) 29DEF_HELPER_3(vfp_cmpd_a64, i64, f64, f64, ptr) 30DEF_HELPER_3(vfp_cmped_a64, i64, f64, f64, ptr) 31DEF_HELPER_FLAGS_4(simd_tblx, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32) 32DEF_HELPER_FLAGS_3(vfp_mulxs, TCG_CALL_NO_RWG, f32, f32, f32, ptr) 33DEF_HELPER_FLAGS_3(vfp_mulxd, TCG_CALL_NO_RWG, f64, f64, f64, ptr) 34DEF_HELPER_FLAGS_3(neon_ceq_f64, TCG_CALL_NO_RWG, i64, i64, i64, ptr) 35DEF_HELPER_FLAGS_3(neon_cge_f64, TCG_CALL_NO_RWG, i64, i64, i64, ptr) 36DEF_HELPER_FLAGS_3(neon_cgt_f64, TCG_CALL_NO_RWG, i64, i64, i64, ptr) 37DEF_HELPER_FLAGS_3(recpsf_f16, TCG_CALL_NO_RWG, f16, f16, f16, ptr) 38DEF_HELPER_FLAGS_3(recpsf_f32, TCG_CALL_NO_RWG, f32, f32, f32, ptr) 39DEF_HELPER_FLAGS_3(recpsf_f64, TCG_CALL_NO_RWG, f64, f64, f64, ptr) 40DEF_HELPER_FLAGS_3(rsqrtsf_f16, TCG_CALL_NO_RWG, f16, f16, f16, ptr) 41DEF_HELPER_FLAGS_3(rsqrtsf_f32, TCG_CALL_NO_RWG, f32, f32, f32, ptr) 42DEF_HELPER_FLAGS_3(rsqrtsf_f64, TCG_CALL_NO_RWG, f64, f64, f64, ptr) 43DEF_HELPER_FLAGS_1(neon_addlp_s8, TCG_CALL_NO_RWG_SE, i64, i64) 44DEF_HELPER_FLAGS_1(neon_addlp_u8, TCG_CALL_NO_RWG_SE, i64, i64) 45DEF_HELPER_FLAGS_1(neon_addlp_s16, TCG_CALL_NO_RWG_SE, i64, i64) 46DEF_HELPER_FLAGS_1(neon_addlp_u16, TCG_CALL_NO_RWG_SE, i64, i64) 47DEF_HELPER_FLAGS_2(frecpx_f64, TCG_CALL_NO_RWG, f64, f64, ptr) 48DEF_HELPER_FLAGS_2(frecpx_f32, TCG_CALL_NO_RWG, f32, f32, ptr) 49DEF_HELPER_FLAGS_2(frecpx_f16, TCG_CALL_NO_RWG, f16, f16, ptr) 50DEF_HELPER_FLAGS_2(fcvtx_f64_to_f32, TCG_CALL_NO_RWG, f32, f64, env) 51DEF_HELPER_FLAGS_3(crc32_64, TCG_CALL_NO_RWG_SE, i64, i64, i64, i32) 52DEF_HELPER_FLAGS_3(crc32c_64, TCG_CALL_NO_RWG_SE, i64, i64, i64, i32) 53DEF_HELPER_FLAGS_4(paired_cmpxchg64_le, TCG_CALL_NO_WG, i64, env, i64, i64, i64) 54DEF_HELPER_FLAGS_4(paired_cmpxchg64_le_parallel, TCG_CALL_NO_WG, 55 i64, env, i64, i64, i64) 56DEF_HELPER_FLAGS_4(paired_cmpxchg64_be, TCG_CALL_NO_WG, i64, env, i64, i64, i64) 57DEF_HELPER_FLAGS_4(paired_cmpxchg64_be_parallel, TCG_CALL_NO_WG, 58 i64, env, i64, i64, i64) 59DEF_HELPER_5(casp_le_parallel, void, env, i32, i64, i64, i64) 60DEF_HELPER_5(casp_be_parallel, void, env, i32, i64, i64, i64) 61DEF_HELPER_FLAGS_3(advsimd_maxh, TCG_CALL_NO_RWG, f16, f16, f16, ptr) 62DEF_HELPER_FLAGS_3(advsimd_minh, TCG_CALL_NO_RWG, f16, f16, f16, ptr) 63DEF_HELPER_FLAGS_3(advsimd_maxnumh, TCG_CALL_NO_RWG, f16, f16, f16, ptr) 64DEF_HELPER_FLAGS_3(advsimd_minnumh, TCG_CALL_NO_RWG, f16, f16, f16, ptr) 65DEF_HELPER_3(advsimd_addh, f16, f16, f16, ptr) 66DEF_HELPER_3(advsimd_subh, f16, f16, f16, ptr) 67DEF_HELPER_3(advsimd_mulh, f16, f16, f16, ptr) 68DEF_HELPER_3(advsimd_divh, f16, f16, f16, ptr) 69DEF_HELPER_3(advsimd_ceq_f16, i32, f16, f16, ptr) 70DEF_HELPER_3(advsimd_cge_f16, i32, f16, f16, ptr) 71DEF_HELPER_3(advsimd_cgt_f16, i32, f16, f16, ptr) 72DEF_HELPER_3(advsimd_acge_f16, i32, f16, f16, ptr) 73DEF_HELPER_3(advsimd_acgt_f16, i32, f16, f16, ptr) 74DEF_HELPER_3(advsimd_mulxh, f16, f16, f16, ptr) 75DEF_HELPER_4(advsimd_muladdh, f16, f16, f16, f16, ptr) 76DEF_HELPER_3(advsimd_add2h, i32, i32, i32, ptr) 77DEF_HELPER_3(advsimd_sub2h, i32, i32, i32, ptr) 78DEF_HELPER_3(advsimd_mul2h, i32, i32, i32, ptr) 79DEF_HELPER_3(advsimd_div2h, i32, i32, i32, ptr) 80DEF_HELPER_3(advsimd_max2h, i32, i32, i32, ptr) 81DEF_HELPER_3(advsimd_min2h, i32, i32, i32, ptr) 82DEF_HELPER_3(advsimd_maxnum2h, i32, i32, i32, ptr) 83DEF_HELPER_3(advsimd_minnum2h, i32, i32, i32, ptr) 84DEF_HELPER_3(advsimd_mulx2h, i32, i32, i32, ptr) 85DEF_HELPER_4(advsimd_muladd2h, i32, i32, i32, i32, ptr) 86DEF_HELPER_2(advsimd_rinth_exact, f16, f16, ptr) 87DEF_HELPER_2(advsimd_rinth, f16, f16, ptr) 88DEF_HELPER_2(advsimd_f16tosinth, i32, f16, ptr) 89DEF_HELPER_2(advsimd_f16touinth, i32, f16, ptr) 90DEF_HELPER_2(sqrt_f16, f16, f16, ptr) 91 92DEF_HELPER_2(exception_return, void, env, i64) 93DEF_HELPER_FLAGS_2(dc_zva, TCG_CALL_NO_WG, void, env, i64) 94 95DEF_HELPER_FLAGS_3(pacia, TCG_CALL_NO_WG, i64, env, i64, i64) 96DEF_HELPER_FLAGS_3(pacib, TCG_CALL_NO_WG, i64, env, i64, i64) 97DEF_HELPER_FLAGS_3(pacda, TCG_CALL_NO_WG, i64, env, i64, i64) 98DEF_HELPER_FLAGS_3(pacdb, TCG_CALL_NO_WG, i64, env, i64, i64) 99DEF_HELPER_FLAGS_3(pacga, TCG_CALL_NO_WG, i64, env, i64, i64) 100DEF_HELPER_FLAGS_3(autia, TCG_CALL_NO_WG, i64, env, i64, i64) 101DEF_HELPER_FLAGS_3(autib, TCG_CALL_NO_WG, i64, env, i64, i64) 102DEF_HELPER_FLAGS_3(autda, TCG_CALL_NO_WG, i64, env, i64, i64) 103DEF_HELPER_FLAGS_3(autdb, TCG_CALL_NO_WG, i64, env, i64, i64) 104DEF_HELPER_FLAGS_2(xpaci, TCG_CALL_NO_RWG_SE, i64, env, i64) 105DEF_HELPER_FLAGS_2(xpacd, TCG_CALL_NO_RWG_SE, i64, env, i64) 106 107DEF_HELPER_FLAGS_3(mte_check, TCG_CALL_NO_WG, i64, env, i32, i64) 108DEF_HELPER_FLAGS_3(mte_check_zva, TCG_CALL_NO_WG, i64, env, i32, i64) 109DEF_HELPER_FLAGS_3(irg, TCG_CALL_NO_RWG, i64, env, i64, i64) 110DEF_HELPER_FLAGS_4(addsubg, TCG_CALL_NO_RWG_SE, i64, env, i64, s32, i32) 111DEF_HELPER_FLAGS_3(ldg, TCG_CALL_NO_WG, i64, env, i64, i64) 112DEF_HELPER_FLAGS_3(stg, TCG_CALL_NO_WG, void, env, i64, i64) 113DEF_HELPER_FLAGS_3(stg_parallel, TCG_CALL_NO_WG, void, env, i64, i64) 114DEF_HELPER_FLAGS_2(stg_stub, TCG_CALL_NO_WG, void, env, i64) 115DEF_HELPER_FLAGS_3(st2g, TCG_CALL_NO_WG, void, env, i64, i64) 116DEF_HELPER_FLAGS_3(st2g_parallel, TCG_CALL_NO_WG, void, env, i64, i64) 117DEF_HELPER_FLAGS_2(st2g_stub, TCG_CALL_NO_WG, void, env, i64) 118DEF_HELPER_FLAGS_2(ldgm, TCG_CALL_NO_WG, i64, env, i64) 119DEF_HELPER_FLAGS_3(stgm, TCG_CALL_NO_WG, void, env, i64, i64) 120DEF_HELPER_FLAGS_3(stzgm_tags, TCG_CALL_NO_WG, void, env, i64, i64)