⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jm-insns.c

📁 The Valgrind distribution has multiple tools. The most popular is the memory checking tool (called M
💻 C
📖 第 1 页 / 共 5 页
字号:
    { &test_mullw           , "       mullw", },    { &test_mullwo          , "      mullwo", },    { &test_subf            , "        subf", },    { &test_subfo           , "       subfo", },    { &test_subfc           , "       subfc", },    { &test_subfco          , "      subfco", },#ifdef __powerpc64__    { &test_mulhd           , "       mulhd", },    { &test_mulhdu          , "      mulhdu", },    { &test_mulld           , "       mulld", },    { &test_divd            , "        divd", },    { &test_divdu           , "       divdu", },#endif // #ifdef __powerpc64__    { NULL,                   NULL,           },};static void test_add_ (void){    __asm__ __volatile__ ("add.         17, 14, 15");}static void test_addo_ (void){    __asm__ __volatile__ ("addo.        17, 14, 15");}static void test_addc_ (void){    __asm__ __volatile__ ("addc.        17, 14, 15");}static void test_addco_ (void){    __asm__ __volatile__ ("addco.       17, 14, 15");}static void test_divw_ (void){    __asm__ __volatile__ ("divw.        17, 14, 15");}static void test_divwo_ (void){    __asm__ __volatile__ ("divwo.       17, 14, 15");}static void test_divwu_ (void){    __asm__ __volatile__ ("divwu.       17, 14, 15");}static void test_divwuo_ (void){    __asm__ __volatile__ ("divwuo.      17, 14, 15");}static void test_mulhw_ (void){    __asm__ __volatile__ ("mulhw.       17, 14, 15");}static void test_mulhwu_ (void){    __asm__ __volatile__ ("mulhwu.      17, 14, 15");}static void test_mullw_ (void){    __asm__ __volatile__ ("mullw.       17, 14, 15");}static void test_mullwo_ (void){    __asm__ __volatile__ ("mullwo.      17, 14, 15");}static void test_subf_ (void){    __asm__ __volatile__ ("subf.        17, 14, 15");}static void test_subfo_ (void){    __asm__ __volatile__ ("subfo.       17, 14, 15");}static void test_subfc_ (void){    __asm__ __volatile__ ("subfc.       17, 14, 15");}static void test_subfco_ (void){    __asm__ __volatile__ ("subfco.      17, 14, 15");}#ifdef __powerpc64__static void test_mulhd_ (void){    __asm__ __volatile__ ("mulhd.       17, 14, 15");}static void test_mulhdu_ (void){    __asm__ __volatile__ ("mulhdu.      17, 14, 15");}static void test_mulld_ (void){    __asm__ __volatile__ ("mulld.       17, 14, 15");}static void test_divd_ (void){    __asm__ __volatile__ ("divd.        17, 14, 15");}static void test_divdu_ (void){    __asm__ __volatile__ ("divdu.       17, 14, 15");}#endif // #ifdef __powerpc64__static test_t tests_iar_ops_two[] = {    { &test_add_            , "        add.", },    { &test_addo_           , "       addo.", },    { &test_addc_           , "       addc.", },    { &test_addco_          , "      addco.", },    { &test_divw_           , "       divw.", },    { &test_divwo_          , "      divwo.", },    { &test_divwu_          , "      divwu.", },    { &test_divwuo_         , "     divwuo.", },    { &test_mulhw_          , "      mulhw.", },    { &test_mulhwu_         , "     mulhwu.", },    { &test_mullw_          , "      mullw.", },    { &test_mullwo_         , "     mullwo.", },    { &test_subf_           , "       subf.", },    { &test_subfo_          , "      subfo.", },    { &test_subfc_          , "      subfc.", },    { &test_subfco_         , "     subfco.", },#ifdef __powerpc64__    { &test_mulhd_          , "      mulhd.", },    { &test_mulhdu_         , "     mulhdu.", },    { &test_mulld_          , "      mulld.", },    { &test_divd_           , "       divd.", },    { &test_divdu_          , "      divdu.", },#endif // #ifdef __powerpc64__    { NULL,                   NULL,           },};static void test_adde (void){    __asm__ __volatile__ ("adde         17, 14, 15");}static void test_addeo (void){    __asm__ __volatile__ ("addeo        17, 14, 15");}static void test_subfe (void){    __asm__ __volatile__ ("subfe        17, 14, 15");}static void test_subfeo (void){    __asm__ __volatile__ ("subfeo       17, 14, 15");}static test_t tests_iac_ops_two[] = {    { &test_adde            , "        adde", },    { &test_addeo           , "       addeo", },    { &test_subfe           , "       subfe", },    { &test_subfeo          , "      subfeo", },    { NULL,                   NULL,           },};static void test_adde_ (void){    __asm__ __volatile__ ("adde.        17, 14, 15");}static void test_addeo_ (void){    __asm__ __volatile__ ("addeo.       17, 14, 15");}static void test_subfe_ (void){    __asm__ __volatile__ ("subfe.       17, 14, 15");}static void test_subfeo_ (void){    __asm__ __volatile__ ("subfeo.      17, 14, 15");}static test_t tests_iacr_ops_two[] = {    { &test_adde_           , "       adde.", },    { &test_addeo_          , "      addeo.", },    { &test_subfe_          , "      subfe.", },    { &test_subfeo_         , "     subfeo.", },    { NULL,                   NULL,           },};static void test_and (void){    __asm__ __volatile__ ("and          17, 14, 15");}static void test_andc (void){    __asm__ __volatile__ ("andc         17, 14, 15");}static void test_eqv (void){    __asm__ __volatile__ ("eqv          17, 14, 15");}static void test_nand (void){    __asm__ __volatile__ ("nand         17, 14, 15");}static void test_nor (void){    __asm__ __volatile__ ("nor          17, 14, 15");}static void test_or (void){    __asm__ __volatile__ ("or           17, 14, 15");}static void test_orc (void){    __asm__ __volatile__ ("orc          17, 14, 15");}static void test_xor (void){    __asm__ __volatile__ ("xor          17, 14, 15");}static void test_slw (void){    __asm__ __volatile__ ("slw          17, 14, 15");}static void test_sraw (void){    __asm__ __volatile__ ("sraw         17, 14, 15");}static void test_srw (void){    __asm__ __volatile__ ("srw          17, 14, 15");}#ifdef __powerpc64__static void test_sld (void){    __asm__ __volatile__ ("sld          17, 14, 15");}static void test_srad (void){    __asm__ __volatile__ ("srad         17, 14, 15");}static void test_srd (void){    __asm__ __volatile__ ("srd          17, 14, 15");}#endif // #ifdef __powerpc64__static test_t tests_il_ops_two[] = {    { &test_and             , "         and", },    { &test_andc            , "        andc", },    { &test_eqv             , "         eqv", },    { &test_nand            , "        nand", },    { &test_nor             , "         nor", },    { &test_or              , "          or", },    { &test_orc             , "         orc", },    { &test_xor             , "         xor", },    { &test_slw             , "         slw", },    { &test_sraw            , "        sraw", },    { &test_srw             , "         srw", },#ifdef __powerpc64__    { &test_sld             , "         sld", },    { &test_srad            , "        srad", },    { &test_srd             , "         srd", },#endif // #ifdef __powerpc64__    { NULL,                   NULL,           },};static void test_and_ (void){    __asm__ __volatile__ ("and.         17, 14, 15");}static void test_andc_ (void){    __asm__ __volatile__ ("andc.        17, 14, 15");}static void test_eqv_ (void){    __asm__ __volatile__ ("eqv.         17, 14, 15");}static void test_nand_ (void){    __asm__ __volatile__ ("nand.        17, 14, 15");}static void test_nor_ (void){    __asm__ __volatile__ ("nor.         17, 14, 15");}static void test_or_ (void){    __asm__ __volatile__ ("or.          17, 14, 15");}static void test_orc_ (void){    __asm__ __volatile__ ("orc.         17, 14, 15");}static void test_xor_ (void){    __asm__ __volatile__ ("xor.         17, 14, 15");}static void test_slw_ (void){    __asm__ __volatile__ ("slw.         17, 14, 15");}static void test_sraw_ (void){    __asm__ __volatile__ ("sraw.        17, 14, 15");}static void test_srw_ (void){    __asm__ __volatile__ ("srw.         17, 14, 15");}#ifdef __powerpc64__static void test_sld_ (void){    __asm__ __volatile__ ("sld.         17, 14, 15");}static void test_srad_ (void){    __asm__ __volatile__ ("srad.        17, 14, 15");}static void test_srd_ (void){    __asm__ __volatile__ ("srd.         17, 14, 15");}#endif // #ifdef __powerpc64__static test_t tests_ilr_ops_two[] = {    { &test_and_            , "        and.", },    { &test_andc_           , "       andc.", },    { &test_eqv_            , "        eqv.", },    { &test_nand_           , "       nand.", },    { &test_nor_            , "        nor.", },    { &test_or_             , "         or.", },    { &test_orc_            , "        orc.", },    { &test_xor_            , "        xor.", },    { &test_slw_            , "        slw.", },    { &test_sraw_           , "       sraw.", },    { &test_srw_            , "        srw.", },#ifdef __powerpc64__    { &test_sld_            , "        sld.", },    { &test_srad_           , "       srad.", },    { &test_srd_            , "        srd.", },#endif // #ifdef __powerpc64__    { NULL,                   NULL,           },};static void test_cmpw (void){    __asm__ __volatile__ ("cmpw         2, 14, 15");}static void test_cmplw (void){    __asm__ __volatile__ ("cmplw        2, 14, 15");}#ifdef __powerpc64__static void test_cmpd (void){    __asm__ __volatile__ ("cmpd         2, 14, 15");}static void test_cmpld (void){    __asm__ __volatile__ ("cmpld        2, 14, 15");}#endif // #ifdef __powerpc64__static test_t tests_icr_ops_two[] = {    { &test_cmpw            , "        cmpw", },    { &test_cmplw           , "       cmplw", },#ifdef __powerpc64__    { &test_cmpd            , "        cmpd", },    { &test_cmpld           , "       cmpld", },#endif // #ifdef __powerpc64__    { NULL,                   NULL,           },};extern void test_cmpwi (void);ASSEMBLY_FUNC("test_cmpwi", "cmpwi         2, 14, 0");extern void test_cmplwi (void);ASSEMBLY_FUNC("test_cmplwi", "cmplwi        2, 14, 0");#ifdef __powerpc64__extern void test_cmpdi (void);ASSEMBLY_FUNC("test_cmpdi", "cmpdi        2, 14, 0");extern void test_cmpldi (void);ASSEMBLY_FUNC("test_cmpldi", "cmpldi       2, 14, 0");#endif // #ifdef __powerpc64__static test_t tests_icr_ops_two_i16[] = {    { &test_cmpwi           , "       cmpwi", },    { &test_cmplwi          , "      cmplwi", },#ifdef __powerpc64__    { &test_cmpdi           , "       cmpdi", },    { &test_cmpldi          , "      cmpldi", },#endif // #ifdef __powerpc64__    { NULL,                   NULL,           },};extern void test_addi (void);ASSEMBLY_FUNC("test_addi", "addi         17, 14, 0");extern void test_addic (void);ASSEMBLY_FUNC("test_addic", "addic        17, 14, 0");extern void test_addis (void);ASSEMBLY_FUNC("test_addis", "addis        17, 14, 0");extern void test_mulli (void);ASSEMBLY_FUNC("test_mulli", "mulli        17, 14, 0");extern void test_subfic (void);ASSEMBLY_FUNC("test_subfic", "subfic       17, 14, 0");static test_t tests_ia_ops_two_i16[] = {    { &test_addi            , "        addi", },    { &test_addic           , "       addic", },    { &test_addis           , "       addis", },    { &test_mulli           , "       mulli", },    { &test_subfic          , "      subfic", },    { NULL,                   NULL,           },};extern void test_addic_ (void);ASSEMBLY_FUNC("test_addic_", "addic.       17, 14, 0");static test_t tests_iar_ops_two_i16[] = {    { &test_addic_          , "      addic.", },    { NULL,                   NULL,           },};extern void test_ori (void);ASSEMBLY_FUNC("test_ori", "ori       17, 14, 0");extern void test_oris (void);ASSEMBLY_FUNC("test_oris", "oris       17, 14, 0");extern void test_xori (void);ASSEMBLY_FUNC("test_xori", "xori       17, 14, 0");extern void test_xoris (void);ASSEMBLY_FUNC("test_xoris", "xoris       17, 14, 0");static test_t tests_il_ops_two_i16[] = {    { &test_ori             , "         ori", },    { &test_oris            , "        oris", },    { &test_xori            , "        xori", },    { &test_xoris           , "       xoris", },    { NULL,                   NULL,           },};extern void test_andi_ (void);ASSEMBLY_FUNC("test_andi_", "andi.       17, 14, 0");extern void test_andis_ (void);ASSEMBLY_FUNC("test_andis_", "andis.      17, 14, 0");static test_t tests_ilr_ops_two_i16[] = {    { &test_andi_           , "       andi.", },    { &test_andis_          , "      andis.", },    { NULL,                   NULL,           },};static void test_crand (void){    __asm__ __volatile__ ("crand        17, 14, 15");}static void test_crandc (void)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -