1 /* 2 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #include "internal.h" 19 #include "helper_protos_generated.h.inc" 20 21 DEF_HELPER_FLAGS_2(raise_exception, TCG_CALL_NO_RETURN, noreturn, env, i32) 22 DEF_HELPER_1(debug_start_packet, void, env) 23 DEF_HELPER_FLAGS_3(debug_check_store_width, TCG_CALL_NO_WG, void, env, int, int) 24 DEF_HELPER_FLAGS_3(debug_commit_end, TCG_CALL_NO_WG, void, env, int, int) 25 DEF_HELPER_2(commit_store, void, env, int) 26 DEF_HELPER_FLAGS_4(fcircadd, TCG_CALL_NO_RWG_SE, s32, s32, s32, s32, s32) 27 DEF_HELPER_FLAGS_1(fbrev, TCG_CALL_NO_RWG_SE, i32, i32) 28 DEF_HELPER_3(sfrecipa, i64, env, f32, f32) 29 DEF_HELPER_2(sfinvsqrta, i64, env, f32) 30 DEF_HELPER_4(vacsh_val, s64, env, s64, s64, s64) 31 DEF_HELPER_FLAGS_4(vacsh_pred, TCG_CALL_NO_RWG_SE, s32, env, s64, s64, s64) 32 33 /* Floating point */ 34 DEF_HELPER_2(conv_sf2df, f64, env, f32) 35 DEF_HELPER_2(conv_df2sf, f32, env, f64) 36 DEF_HELPER_2(conv_uw2sf, f32, env, s32) 37 DEF_HELPER_2(conv_uw2df, f64, env, s32) 38 DEF_HELPER_2(conv_w2sf, f32, env, s32) 39 DEF_HELPER_2(conv_w2df, f64, env, s32) 40 DEF_HELPER_2(conv_ud2sf, f32, env, s64) 41 DEF_HELPER_2(conv_ud2df, f64, env, s64) 42 DEF_HELPER_2(conv_d2sf, f32, env, s64) 43 DEF_HELPER_2(conv_d2df, f64, env, s64) 44 DEF_HELPER_2(conv_sf2uw, i32, env, f32) 45 DEF_HELPER_2(conv_sf2w, s32, env, f32) 46 DEF_HELPER_2(conv_sf2ud, i64, env, f32) 47 DEF_HELPER_2(conv_sf2d, s64, env, f32) 48 DEF_HELPER_2(conv_df2uw, i32, env, f64) 49 DEF_HELPER_2(conv_df2w, s32, env, f64) 50 DEF_HELPER_2(conv_df2ud, i64, env, f64) 51 DEF_HELPER_2(conv_df2d, s64, env, f64) 52 DEF_HELPER_2(conv_sf2uw_chop, i32, env, f32) 53 DEF_HELPER_2(conv_sf2w_chop, s32, env, f32) 54 DEF_HELPER_2(conv_sf2ud_chop, i64, env, f32) 55 DEF_HELPER_2(conv_sf2d_chop, s64, env, f32) 56 DEF_HELPER_2(conv_df2uw_chop, i32, env, f64) 57 DEF_HELPER_2(conv_df2w_chop, s32, env, f64) 58 DEF_HELPER_2(conv_df2ud_chop, i64, env, f64) 59 DEF_HELPER_2(conv_df2d_chop, s64, env, f64) 60 DEF_HELPER_3(sfadd, f32, env, f32, f32) 61 DEF_HELPER_3(sfsub, f32, env, f32, f32) 62 DEF_HELPER_3(sfcmpeq, s32, env, f32, f32) 63 DEF_HELPER_3(sfcmpgt, s32, env, f32, f32) 64 DEF_HELPER_3(sfcmpge, s32, env, f32, f32) 65 DEF_HELPER_3(sfcmpuo, s32, env, f32, f32) 66 DEF_HELPER_3(sfmax, f32, env, f32, f32) 67 DEF_HELPER_3(sfmin, f32, env, f32, f32) 68 DEF_HELPER_3(sfclass, s32, env, f32, s32) 69 DEF_HELPER_3(sffixupn, f32, env, f32, f32) 70 DEF_HELPER_3(sffixupd, f32, env, f32, f32) 71 DEF_HELPER_2(sffixupr, f32, env, f32) 72 73 DEF_HELPER_3(dfadd, f64, env, f64, f64) 74 DEF_HELPER_3(dfsub, f64, env, f64, f64) 75 DEF_HELPER_3(dfmax, f64, env, f64, f64) 76 DEF_HELPER_3(dfmin, f64, env, f64, f64) 77 DEF_HELPER_3(dfcmpeq, s32, env, f64, f64) 78 DEF_HELPER_3(dfcmpgt, s32, env, f64, f64) 79 DEF_HELPER_3(dfcmpge, s32, env, f64, f64) 80 DEF_HELPER_3(dfcmpuo, s32, env, f64, f64) 81 DEF_HELPER_3(dfclass, s32, env, f64, s32) 82 83 DEF_HELPER_3(sfmpy, f32, env, f32, f32) 84 DEF_HELPER_4(sffma, f32, env, f32, f32, f32) 85 DEF_HELPER_5(sffma_sc, f32, env, f32, f32, f32, f32) 86 DEF_HELPER_4(sffms, f32, env, f32, f32, f32) 87 DEF_HELPER_4(sffma_lib, f32, env, f32, f32, f32) 88 DEF_HELPER_4(sffms_lib, f32, env, f32, f32, f32) 89 90 DEF_HELPER_3(dfmpyfix, f64, env, f64, f64) 91 DEF_HELPER_4(dfmpyhh, f64, env, f64, f64, f64) 92