From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217319; cv=none; d=zoho.com; s=zohoarc; b=f3zqw3BavbNwooYRiDFbvrHEjF2e+0fspexDTCFuZKiiRjY9trEEHaKS2dbwiYr0p4JsLn3cXb+K5hTAOgEw/7OIxuhByshn/vnuCoAme7PGxIFHx93kIhwtgebMf5REq0Z4zA0wMptcKG+a3DVVK+MKUkRGJcZHE6eHSXkIMRM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217319; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=E9fQURWPd0DR3u1qyC+uTSJH8LreYCD0SCI7fGmWVnk=; b=ciJbJaaViR0H5gUL9Gv5xkWNwKQJXdDUqnL6a5ab1baDUhOWTg/+u+RXVapmZGTgmrsG/9hQWZ2ehTSOphyDnAC1jlD+c6xK6kHlXetLSx1GNfiDHV79gMQ8Z2V3yHuXc54HyAfst/C1OXCwFw0ojtWWaNGsxLNFQzJg0F4Zr2c= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217319946375.10116560105826; Mon, 19 Aug 2019 05:21:59 -0700 (PDT) Received: from localhost ([::1]:49130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgfe-00073q-Is for importer@patchew.org; Mon, 19 Aug 2019 08:21:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36131) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTc-0001t3-TG for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTZ-0002Z1-JT for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:32 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:56438 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTZ-0001eX-7g for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:29 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 086771A20AB; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id A7E4B1A205C; Mon, 19 Aug 2019 14:08:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:40 +0200 Message-Id: <1566216496-17375-2-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 01/37] target/mips: Add support for DSPRAM X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yongbok Kim The optional Data Scratch Pad RAM (DSPRAM) block provides a general scratch= pad RAM used for temporary storage of data. The DSPRAM provides a connection to on-= chip memory or memory-mapped registers, which are accessed in parallel with the = L1 data cache to minimize access latency Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic --- hw/mips/cps.c | 29 +++++++- hw/misc/Makefile.objs | 1 + hw/misc/mips_dspram.c | 153 +++++++++++++++++++++++++++++++++++= ++++ include/hw/mips/cps.h | 2 + include/hw/misc/mips_dspram.h | 46 ++++++++++++ target/mips/cpu.h | 9 ++- target/mips/internal.h | 3 +- target/mips/op_helper.c | 18 +++++ target/mips/translate.c | 8 ++ target/mips/translate_init.inc.c | 2 + 10 files changed, 266 insertions(+), 5 deletions(-) create mode 100644 hw/misc/mips_dspram.c create mode 100644 include/hw/misc/mips_dspram.h diff --git a/hw/mips/cps.c b/hw/mips/cps.c index 0d459c4..c84bc64 100644 --- a/hw/mips/cps.c +++ b/hw/mips/cps.c @@ -18,6 +18,7 @@ */ =20 #include "qemu/osdep.h" +#include "qemu/error-report.h" #include "qapi/error.h" #include "qemu/module.h" #include "hw/mips/cps.h" @@ -91,7 +92,8 @@ static void mips_cps_realize(DeviceState *dev, Error **er= rp) =20 cpu =3D MIPS_CPU(first_cpu); env =3D &cpu->env; - saar_present =3D (bool)env->saarp; + saar_present =3D env->saarp; + bool dspram_present =3D env->dspramp; =20 /* Inter-Thread Communication Unit */ if (itu_present) { @@ -102,7 +104,8 @@ static void mips_cps_realize(DeviceState *dev, Error **= errp) object_property_set_bool(OBJECT(&s->itu), saar_present, "saar-pres= ent", &err); if (saar_present) { - qdev_prop_set_ptr(DEVICE(&s->itu), "saar", (void *)&env->CP0_S= AAR); + qdev_prop_set_ptr(DEVICE(&s->itu), "saar", + (void *) &env->CP0_SAAR[0]); } object_property_set_bool(OBJECT(&s->itu), true, "realized", &err); if (err !=3D NULL) { @@ -113,6 +116,28 @@ static void mips_cps_realize(DeviceState *dev, Error *= *errp) memory_region_add_subregion(&s->container, 0, sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->itu),= 0)); } + env->dspram =3D g_new0(MIPSDSPRAMState, 1); + + /* Data Scratch Pad RAM */ + if (dspram_present) { + if (!saar_present) { + error_report("%s: DSPRAM requires SAAR registers", __func__); + return; + } + object_initialize(&s->dspram, sizeof(MIPSDSPRAMState), + TYPE_MIPS_DSPRAM); + qdev_set_parent_bus(DEVICE(&s->dspram), sysbus_get_default()); + qdev_prop_set_ptr(DEVICE(&s->dspram), "saar", + &env->CP0_SAAR[1]); + object_property_set_bool(OBJECT(&s->dspram), true, "realized", &er= r); + if (err !=3D NULL) { + error_report("%s: DSPRAM initialisation failed", __func__); + error_propagate(errp, err); + return; + } + memory_region_add_subregion(&s->container, 0, + sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->dspram), 0)); + } =20 /* Cluster Power Controller */ sysbus_init_child_obj(OBJECT(dev), "cpc", &s->cpc, sizeof(s->cpc), diff --git a/hw/misc/Makefile.objs b/hw/misc/Makefile.objs index e9aab51..5fcb4db 100644 --- a/hw/misc/Makefile.objs +++ b/hw/misc/Makefile.objs @@ -60,6 +60,7 @@ obj-$(CONFIG_STM32F2XX_SYSCFG) +=3D stm32f2xx_syscfg.o obj-$(CONFIG_MIPS_CPS) +=3D mips_cmgcr.o obj-$(CONFIG_MIPS_CPS) +=3D mips_cpc.o obj-$(CONFIG_MIPS_ITU) +=3D mips_itu.o +obj-$(CONFIG_MIPS_DSPRAM) +=3D mips_dspram.o obj-$(CONFIG_MPS2_FPGAIO) +=3D mps2-fpgaio.o obj-$(CONFIG_MPS2_SCC) +=3D mps2-scc.o =20 diff --git a/hw/misc/mips_dspram.c b/hw/misc/mips_dspram.c new file mode 100644 index 0000000..9bc155b --- /dev/null +++ b/hw/misc/mips_dspram.c @@ -0,0 +1,153 @@ +/* + * Data Scratch Pad RAM + * + * Copyright (c) 2017 Imagination Technologies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#include "qemu/osdep.h" +#include "qapi/error.h" +#include "cpu.h" +#include "qemu/log.h" +#include "exec/exec-all.h" +#include "hw/hw.h" +#include "hw/sysbus.h" +#include "sysemu/sysemu.h" +#include "hw/misc/mips_dspram.h" + +static void raise_exception(int excp) +{ + current_cpu->exception_index =3D excp; + cpu_loop_exit(current_cpu); +} + +static uint64_t dspram_read(void *opaque, hwaddr addr, unsigned size) +{ + MIPSDSPRAMState *s =3D (MIPSDSPRAMState *)opaque; + + switch (size) { + case 1: + case 2: + raise_exception(EXCP_AdEL); + return 0; + case 4: + return *(uint32_t *) &s->ramblock[addr % (1 << s->size)]; + case 8: + return *(uint64_t *) &s->ramblock[addr % (1 << s->size)]; + } + return 0; +} + +static void dspram_write(void *opaque, hwaddr addr, uint64_t data, + unsigned size) +{ + MIPSDSPRAMState *s =3D (MIPSDSPRAMState *)opaque; + + switch (size) { + case 1: + case 2: + raise_exception(EXCP_AdES); + return; + case 4: + *(uint32_t *) &s->ramblock[addr % (1 << s->size)] =3D (uint32_t) d= ata; + break; + case 8: + *(uint64_t *) &s->ramblock[addr % (1 << s->size)] =3D data; + break; + } +} + +void dspram_reconfigure(struct MIPSDSPRAMState *dspram) +{ + MemoryRegion *mr =3D &dspram->mr; + hwaddr address; + bool is_enabled; + + address =3D ((*(uint64_t *) dspram->saar) & 0xFFFFFFFE000ULL) << 4; + is_enabled =3D *(uint64_t *) dspram->saar & 1; + + memory_region_transaction_begin(); + memory_region_set_size(mr, (1 << dspram->size)); + memory_region_set_address(mr, address); + memory_region_set_enabled(mr, is_enabled); + memory_region_transaction_commit(); +} + +static const MemoryRegionOps dspram_ops =3D { + .read =3D dspram_read, + .write =3D dspram_write, + .endianness =3D DEVICE_NATIVE_ENDIAN, + .valid =3D { + .unaligned =3D false, + } +}; + +static void mips_dspram_init(Object *obj) +{ + SysBusDevice *sbd =3D SYS_BUS_DEVICE(obj); + MIPSDSPRAMState *s =3D MIPS_DSPRAM(obj); + + memory_region_init_io(&s->mr, OBJECT(s), &dspram_ops, s, + "mips-dspram", (1 << s->size)); + sysbus_init_mmio(sbd, &s->mr); +} + +static void mips_dspram_realize(DeviceState *dev, Error **errp) +{ + MIPSDSPRAMState *s =3D MIPS_DSPRAM(dev); + + /* some error handling here */ + + s->ramblock =3D g_malloc0(1 << s->size); +} + +static void mips_dspram_reset(DeviceState *dev) +{ + MIPSDSPRAMState *s =3D MIPS_DSPRAM(dev); + + *(uint64_t *) s->saar =3D s->size << 1; + memset(s->ramblock, 0, (1 << s->size)); +} + +static Property mips_dspram_properties[] =3D { + DEFINE_PROP_PTR("saar", MIPSDSPRAMState, saar), + /* default DSPRAM size is 64 KB */ + DEFINE_PROP_SIZE("size", MIPSDSPRAMState, size, 0x10), + DEFINE_PROP_END_OF_LIST(), +}; + +static void mips_dspram_class_init(ObjectClass *klass, void *data) +{ + DeviceClass *dc =3D DEVICE_CLASS(klass); + + dc->props =3D mips_dspram_properties; + dc->realize =3D mips_dspram_realize; + dc->reset =3D mips_dspram_reset; +} + +static const TypeInfo mips_dspram_info =3D { + .name =3D TYPE_MIPS_DSPRAM, + .parent =3D TYPE_SYS_BUS_DEVICE, + .instance_size =3D sizeof(MIPSDSPRAMState), + .instance_init =3D mips_dspram_init, + .class_init =3D mips_dspram_class_init, +}; + +static void mips_dspram_register_types(void) +{ + type_register_static(&mips_dspram_info); +} + +type_init(mips_dspram_register_types); diff --git a/include/hw/mips/cps.h b/include/hw/mips/cps.h index aab1af9..a637036 100644 --- a/include/hw/mips/cps.h +++ b/include/hw/mips/cps.h @@ -25,6 +25,7 @@ #include "hw/intc/mips_gic.h" #include "hw/misc/mips_cpc.h" #include "hw/misc/mips_itu.h" +#include "hw/misc/mips_dspram.h" =20 #define TYPE_MIPS_CPS "mips-cps" #define MIPS_CPS(obj) OBJECT_CHECK(MIPSCPSState, (obj), TYPE_MIPS_CPS) @@ -41,6 +42,7 @@ typedef struct MIPSCPSState { MIPSGICState gic; MIPSCPCState cpc; MIPSITUState itu; + MIPSDSPRAMState dspram; } MIPSCPSState; =20 qemu_irq get_cps_irq(MIPSCPSState *cps, int pin_number); diff --git a/include/hw/misc/mips_dspram.h b/include/hw/misc/mips_dspram.h new file mode 100644 index 0000000..ee99e17 --- /dev/null +++ b/include/hw/misc/mips_dspram.h @@ -0,0 +1,46 @@ +/* + * Data Scratch Pad RAM + * + * Copyright (c) 2017 Imagination Technologies + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library 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 + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, see . + */ + +#ifndef MIPS_DSPRAM_H +#define MIPS_DSPRAM_H + +#include "hw/sysbus.h" + +#define TYPE_MIPS_DSPRAM "mips-dspram" +#define MIPS_DSPRAM(obj) OBJECT_CHECK(MIPSDSPRAMState, (obj), TYPE_MIPS_DS= PRAM) + +typedef struct MIPSDSPRAMState { + /*< private >*/ + SysBusDevice parent_obj; + /*< public >*/ + + /* 2 ^ SIZE */ + uint64_t size; + + MemoryRegion mr; + + /* SAAR */ + bool saar_present; + void *saar; + + /* ramblock */ + uint8_t *ramblock; +} MIPSDSPRAMState; + +#endif /* MIPS_DSPRAM_H */ diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 21c0615..90a2ed8 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -453,6 +453,7 @@ struct TCState { =20 }; =20 +struct MIPSDSPRAMState; struct MIPSITUState; typedef struct CPUMIPSState CPUMIPSState; struct CPUMIPSState { @@ -1035,8 +1036,8 @@ struct CPUMIPSState { uint32_t CP0_Status_rw_bitmask; /* Read/write bits in CP0_Status */ uint32_t CP0_TCStatus_rw_bitmask; /* Read/write bits in CP0_TCStatus */ uint64_t insn_flags; /* Supported instruction set */ - int saarp; - + bool saarp; + bool dspramp; /* Fields up to this point are cleared by a CPU reset */ struct {} end_reset_fields; =20 @@ -1051,6 +1052,7 @@ struct CPUMIPSState { QEMUTimer *timer; /* Internal timer */ struct MIPSITUState *itu; MemoryRegion *itc_tag; /* ITC Configuration Tags */ + struct MIPSDSPRAMState *dspram; target_ulong exception_base; /* ExceptionBase input to the core */ }; =20 @@ -1192,6 +1194,9 @@ void cpu_mips_soft_irq(CPUMIPSState *env, int irq, in= t level); /* mips_itu.c */ void itc_reconfigure(struct MIPSITUState *tag); =20 +/* mips_dspram.c */ +void dspram_reconfigure(struct MIPSDSPRAMState *dspram); + /* helper.c */ target_ulong exception_resume_pc(CPUMIPSState *env); =20 diff --git a/target/mips/internal.h b/target/mips/internal.h index b2b41a5..f6d0d7a 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -61,7 +61,8 @@ struct mips_def_t { target_ulong CP0_EBaseWG_rw_bitmask; uint64_t insn_flags; enum mips_mmu_types mmu_type; - int32_t SAARP; + bool SAARP; + bool DSPRAMP; }; =20 extern const struct mips_def_t mips_defs[]; diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 9e2e02f..628da45 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -1614,7 +1614,16 @@ void helper_mtc0_saar(CPUMIPSState *env, target_ulon= g arg1) itc_reconfigure(env->itu); } break; +#if defined(CONFIG_MIPS_DSPRAM) + case 1: + if (env->dspram) { + dspram_reconfigure(env->dspram); + } + break; +#endif } + } else { + helper_raise_exception(env, EXCP_RI); } } =20 @@ -1631,7 +1640,16 @@ void helper_mthc0_saar(CPUMIPSState *env, target_ulo= ng arg1) itc_reconfigure(env->itu); } break; +#if defined(CONFIG_MIPS_DSPRAM) + case 1: + if (env->dspram) { + dspram_reconfigure(env->dspram); + } + break; +#endif } + } else { + helper_raise_exception(env, EXCP_RI); } } =20 diff --git a/target/mips/translate.c b/target/mips/translate.c index ca62800..4ebeabe 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -30368,6 +30368,8 @@ void cpu_state_reset(CPUMIPSState *env) env->active_fpu.fcr31 =3D env->cpu_model->CP1_fcr31; env->msair =3D env->cpu_model->MSAIR; env->insn_flags =3D env->cpu_model->insn_flags; + env->saarp =3D env->cpu_model->SAARP; + env->dspramp =3D env->cpu_model->DSPRAMP; =20 #if defined(CONFIG_USER_ONLY) env->CP0_Status =3D (MIPS_HFLAG_UM << CP0St_KSU); @@ -30528,6 +30530,12 @@ void cpu_state_reset(CPUMIPSState *env) msa_reset(env); } =20 + /* DSPRAM */ + if (env->dspramp) { + /* Fixed DSPRAM size with Default Value */ + env->CP0_SAAR[1] =3D 0x10 << 1; + } + compute_hflags(env); restore_fp_status(env); restore_pamask(env); diff --git a/target/mips/translate_init.inc.c b/target/mips/translate_init.= inc.c index 6d145a9..1df0901 100644 --- a/target/mips/translate_init.inc.c +++ b/target/mips/translate_init.inc.c @@ -760,6 +760,8 @@ const mips_def_t mips_defs[] =3D .PABITS =3D 48, .insn_flags =3D CPU_MIPS64R6 | ASE_MSA, .mmu_type =3D MMU_TYPE_R4000, + .SAARP =3D 1, + .DSPRAMP =3D 1, }, { .name =3D "Loongson-2E", --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217114; cv=none; d=zoho.com; s=zohoarc; b=lujMnnQD+4Ow9SIXGtdkSHuyAnWMQgpgqeP9/64k/ThgG5SP8Z+HV7mi4XW2nQT3aXFs+kRKLow8dqhLaM+VPYLnBOi+00z3fHsHlREhUh0jTXPyY3dXpkMXAS41PggDhdWIbc4gXN9F1PKBmOl0lX6F+TdOyLco1HtlOgOfvMs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217114; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=4QY6dryIaf4cULvGTBniQaPJf49+/LKx//8XGUV1Tdo=; b=Sely231H+uZ8ARXo7t0LjbtNq1Iybrz6hg2NGo0637nhLI3EbFeKbDqxgGfTmEWIhGRyBUppsE0TYeGxRUPQSOG4yYcu+OW3YiMPJoJtD/8H9QD5hi/s1D53iCViNxnWyNyF8bH1B4d8YoMO0a5O7cjANblCe6fVVIQUxc2ACn0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217114214546.2797357903049; Mon, 19 Aug 2019 05:18:34 -0700 (PDT) Received: from localhost ([::1]:49094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgcJ-0003Ka-EM for importer@patchew.org; Mon, 19 Aug 2019 08:18:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36090) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTb-0001s3-DU for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTZ-0002Yq-IT for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:31 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:56386 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTZ-0001cu-6y for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:29 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id F02D11A20A9; Mon, 19 Aug 2019 14:08:23 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id B38581A205D; Mon, 19 Aug 2019 14:08:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:41 +0200 Message-Id: <1566216496-17375-3-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 02/37] target/mips: Amend CP0 WatchHi register implementation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yongbok Kim WatchHi is extended by the field MemoryMapID with the GINVT instruction. The field is accessible by MTHC0/MFHC0 in 32-bit architectures and DMTC0/ DMFC0 in 64-bit architectures. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 2 +- target/mips/helper.h | 3 +++ target/mips/machine.c | 6 +++--- target/mips/op_helper.c | 23 +++++++++++++++++++++-- target/mips/translate.c | 42 +++++++++++++++++++++++++++++++++++++++++- 5 files changed, 69 insertions(+), 7 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 90a2ed8..6406ba8 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -898,7 +898,7 @@ struct CPUMIPSState { /* * CP0 Register 19 */ - int32_t CP0_WatchHi[8]; + uint64_t CP0_WatchHi[8]; #define CP0WH_ASID 16 /* * CP0 Register 20 diff --git a/target/mips/helper.h b/target/mips/helper.h index 51f0e1c..aad0951 100644 --- a/target/mips/helper.h +++ b/target/mips/helper.h @@ -78,6 +78,7 @@ DEF_HELPER_1(mfc0_maar, tl, env) DEF_HELPER_1(mfhc0_maar, tl, env) DEF_HELPER_2(mfc0_watchlo, tl, env, i32) DEF_HELPER_2(mfc0_watchhi, tl, env, i32) +DEF_HELPER_2(mfhc0_watchhi, tl, env, i32) DEF_HELPER_1(mfc0_debug, tl, env) DEF_HELPER_1(mftc0_debug, tl, env) #ifdef TARGET_MIPS64 @@ -89,6 +90,7 @@ DEF_HELPER_1(dmfc0_tcschefback, tl, env) DEF_HELPER_1(dmfc0_lladdr, tl, env) DEF_HELPER_1(dmfc0_maar, tl, env) DEF_HELPER_2(dmfc0_watchlo, tl, env, i32) +DEF_HELPER_2(dmfc0_watchhi, tl, env, i32) DEF_HELPER_1(dmfc0_saar, tl, env) #endif /* TARGET_MIPS64 */ =20 @@ -159,6 +161,7 @@ DEF_HELPER_2(mthc0_maar, void, env, tl) DEF_HELPER_2(mtc0_maari, void, env, tl) DEF_HELPER_3(mtc0_watchlo, void, env, tl, i32) DEF_HELPER_3(mtc0_watchhi, void, env, tl, i32) +DEF_HELPER_3(mthc0_watchhi, void, env, tl, i32) DEF_HELPER_2(mtc0_xcontext, void, env, tl) DEF_HELPER_2(mtc0_framemask, void, env, tl) DEF_HELPER_2(mtc0_debug, void, env, tl) diff --git a/target/mips/machine.c b/target/mips/machine.c index eb2d970..c3e52f8 100644 --- a/target/mips/machine.c +++ b/target/mips/machine.c @@ -213,8 +213,8 @@ const VMStateDescription vmstate_tlb =3D { =20 const VMStateDescription vmstate_mips_cpu =3D { .name =3D "cpu", - .version_id =3D 18, - .minimum_version_id =3D 18, + .version_id =3D 19, + .minimum_version_id =3D 19, .post_load =3D cpu_post_load, .fields =3D (VMStateField[]) { /* Active TC */ @@ -297,7 +297,7 @@ const VMStateDescription vmstate_mips_cpu =3D { VMSTATE_INT32(env.CP0_MAARI, MIPSCPU), VMSTATE_UINTTL(env.lladdr, MIPSCPU), VMSTATE_UINTTL_ARRAY(env.CP0_WatchLo, MIPSCPU, 8), - VMSTATE_INT32_ARRAY(env.CP0_WatchHi, MIPSCPU, 8), + VMSTATE_UINT64_ARRAY(env.CP0_WatchHi, MIPSCPU, 8), VMSTATE_UINTTL(env.CP0_XContext, MIPSCPU), VMSTATE_INT32(env.CP0_Framemask, MIPSCPU), VMSTATE_INT32(env.CP0_Debug, MIPSCPU), diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 628da45..279b800 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -979,7 +979,12 @@ target_ulong helper_mfc0_watchlo(CPUMIPSState *env, ui= nt32_t sel) =20 target_ulong helper_mfc0_watchhi(CPUMIPSState *env, uint32_t sel) { - return env->CP0_WatchHi[sel]; + return (int32_t) env->CP0_WatchHi[sel]; +} + +target_ulong helper_mfhc0_watchhi(CPUMIPSState *env, uint32_t sel) +{ + return env->CP0_WatchHi[sel] >> 32; } =20 target_ulong helper_mfc0_debug(CPUMIPSState *env) @@ -1055,6 +1060,11 @@ target_ulong helper_dmfc0_saar(CPUMIPSState *env) } return 0; } + +target_ulong helper_dmfc0_watchhi(CPUMIPSState *env, uint32_t sel) +{ + return env->CP0_WatchHi[sel]; +} #endif /* TARGET_MIPS64 */ =20 void helper_mtc0_index(CPUMIPSState *env, target_ulong arg1) @@ -1896,11 +1906,20 @@ void helper_mtc0_watchlo(CPUMIPSState *env, target_= ulong arg1, uint32_t sel) =20 void helper_mtc0_watchhi(CPUMIPSState *env, target_ulong arg1, uint32_t se= l) { - int mask =3D 0x40000FF8 | (env->CP0_EntryHi_ASID_mask << CP0WH_ASID); + uint64_t mask =3D 0x40000FF8 | (env->CP0_EntryHi_ASID_mask << CP0WH_AS= ID); + if ((env->CP0_Config5 >> CP0C5_MI) & 1) { + mask |=3D 0xFFFFFFFF00000000ULL; /* MMID */ + } env->CP0_WatchHi[sel] =3D arg1 & mask; env->CP0_WatchHi[sel] &=3D ~(env->CP0_WatchHi[sel] & arg1 & 0x7); } =20 +void helper_mthc0_watchhi(CPUMIPSState *env, target_ulong arg1, uint32_t s= el) +{ + env->CP0_WatchHi[sel] =3D ((uint64_t) (arg1) << 32) | + (env->CP0_WatchHi[sel] & 0x00000000ffffffffULL= ); +} + void helper_mtc0_xcontext(CPUMIPSState *env, target_ulong arg1) { target_ulong mask =3D (1ULL << (env->SEGBITS - 7)) - 1; diff --git a/target/mips/translate.c b/target/mips/translate.c index 4ebeabe..b40468d 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -2547,6 +2547,7 @@ typedef struct DisasContext { bool nan2008; bool abs2008; bool saar; + bool mi; } DisasContext; =20 #define DISAS_STOP DISAS_TARGET_0 @@ -6680,6 +6681,25 @@ static void gen_mfhc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) goto cp0_unimplemented; } break; + case CP0_REGISTER_19: + switch (sel) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + /* upper 32 bits are only available when Config5MI !=3D 0 */ + CP0_CHECK(ctx->mi); + gen_mfhc0_load64(arg, offsetof(CPUMIPSState, CP0_WatchHi[sel])= , 0); + register_name =3D "WatchHi"; + break; + default: + goto cp0_unimplemented; + } + break; case CP0_REGISTER_28: switch (sel) { case 0: @@ -6766,6 +6786,25 @@ static void gen_mthc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) goto cp0_unimplemented; } break; + case CP0_REGISTER_19: + switch (sel) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + /* upper 32 bits are only available when Config5MI !=3D 0 */ + CP0_CHECK(ctx->mi); + gen_helper_0e1i(mthc0_watchhi, arg, sel); + register_name =3D "WatchHi"; + break; + default: + goto cp0_unimplemented; + } + break; case CP0_REGISTER_28: switch (sel) { case 0: @@ -8805,7 +8844,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) case 6: case 7: CP0_CHECK(ctx->CP0_Config1 & (1 << CP0C1_WR)); - gen_helper_1e0i(mfc0_watchhi, arg, sel); + gen_helper_1e0i(dmfc0_watchhi, arg, sel); register_name =3D "WatchHi"; break; default: @@ -29965,6 +30004,7 @@ static void mips_tr_init_disas_context(DisasContext= Base *dcbase, CPUState *cs) ctx->mrp =3D (env->CP0_Config5 >> CP0C5_MRP) & 1; ctx->nan2008 =3D (env->active_fpu.fcr31 >> FCR31_NAN2008) & 1; ctx->abs2008 =3D (env->active_fpu.fcr31 >> FCR31_ABS2008) & 1; + ctx->mi =3D (env->CP0_Config5 >> CP0C5_MI) & 1; restore_cpu_state(env, ctx); #ifdef CONFIG_USER_ONLY ctx->mem_idx =3D MIPS_HFLAG_UM; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566216873; cv=none; d=zoho.com; s=zohoarc; b=hFRy6t2QNP3pMdAa5B9wwZSZGgEExTwiD45TLLPyT/+e9NeyYxCaRJuUqrGi8/IouD94yAf1U8sjCM/9Q21FaGlErcOzA0Ffzt6lC4eYWV5jIk/ev25ZN0bCiHz/sSJx5KqRmGPw4mp4pDQ7KmvReKOZM7yM9ChLdkxcmFpAe5o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566216873; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=YJilDuLouktCS+w5DttTBPD8j7upoBu/Wyfkh7i/Vk4=; b=WjXC8EAaX1FNJQsJ3iBLOoYX0ZEhVw8XE+4bqHFXv6NFFPGhwgKuCvGOCiozmHjPGN+m0Qp3AR6DTgLd0nQmPnaQws1hM5yk8YehmfSmd3ZlPZFnER03IO9bERw4AlVnXD74sEIRHTVZDmEBhxY/SPh4fjgUU+kL2/gfAMHUwII= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566216873008307.9319531786763; Mon, 19 Aug 2019 05:14:33 -0700 (PDT) Received: from localhost ([::1]:48974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgYP-0007Yk-0X for importer@patchew.org; Mon, 19 Aug 2019 08:14:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36067) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTa-0001rH-Rt for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTZ-0002YX-Cg for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:56479 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTZ-0001et-6B for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:29 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 19A631A2083; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id BB23F1A2061; Mon, 19 Aug 2019 14:08:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:42 +0200 Message-Id: <1566216496-17375-4-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 03/37] target/mips: Amend CP0 MemoryMapID register implementation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yongbok Kim Add migration support and fix preprocessor constant name for MemoryMapID register. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- target/mips/cpu.h | 2 +- target/mips/machine.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 6406ba8..eda8350 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -290,7 +290,7 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG04__CONTEXT 0 #define CP0_REG04__USERLOCAL 2 #define CP0_REG04__DBGCONTEXTID 4 -#define CP0_REG00__MMID 5 +#define CP0_REG04__MEMORYMAPID 5 /* CP0 Register 05 */ #define CP0_REG05__PAGEMASK 0 #define CP0_REG05__PAGEGRAIN 1 diff --git a/target/mips/machine.c b/target/mips/machine.c index c3e52f8..e23b767 100644 --- a/target/mips/machine.c +++ b/target/mips/machine.c @@ -137,6 +137,7 @@ static int get_tlb(QEMUFile *f, void *pv, size_t size, qemu_get_betls(f, &v->VPN); qemu_get_be32s(f, &v->PageMask); qemu_get_be16s(f, &v->ASID); + qemu_get_be32s(f, &v->MMID); qemu_get_be16s(f, &flags); v->G =3D (flags >> 10) & 1; v->C0 =3D (flags >> 7) & 3; @@ -162,6 +163,7 @@ static int put_tlb(QEMUFile *f, void *pv, size_t size, r4k_tlb_t *v =3D pv; =20 uint16_t asid =3D v->ASID; + uint32_t mmid =3D v->MMID; uint16_t flags =3D ((v->EHINV << 15) | (v->RI1 << 14) | (v->RI0 << 13) | @@ -178,6 +180,7 @@ static int put_tlb(QEMUFile *f, void *pv, size_t size, qemu_put_betls(f, &v->VPN); qemu_put_be32s(f, &v->PageMask); qemu_put_be16s(f, &asid); + qemu_put_be32s(f, &mmid); qemu_put_be16s(f, &flags); qemu_put_be64s(f, &v->PFN[0]); qemu_put_be64s(f, &v->PFN[1]); @@ -199,8 +202,8 @@ const VMStateInfo vmstate_info_tlb =3D { =20 const VMStateDescription vmstate_tlb =3D { .name =3D "cpu/tlb", - .version_id =3D 2, - .minimum_version_id =3D 2, + .version_id =3D 3, + .minimum_version_id =3D 3, .fields =3D (VMStateField[]) { VMSTATE_UINT32(nb_tlb, CPUMIPSTLBContext), VMSTATE_UINT32(tlb_in_use, CPUMIPSTLBContext), --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217207; cv=none; d=zoho.com; s=zohoarc; b=PH00Y0qIqC+F2sEQ91uyjLT41FQPqw4u/PS40WPbRzQp73SqC4lf6Osr7sq1bguyjDANEf78/nXI0JA9EIxZU7GzUZu1NPYnnQDpJHY5/oYiuvcLySOmDEDvLEU+KiPaAZRWbFUxvqHNikJZfhnxH5s+gQ3OKinlrFl+X9E42h0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217207; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Kq/odMSb//Azqa+Zz9ftxWZj3OU9tyR1Z33uvGmyd+Y=; b=fMj2VbSElym630wD1KYS+T0r9YmwT0OVGnf7PwIGgyg3gh6uFWMw5OhClRGUTWLECkWco+I3snjO+84H4ehdRTbsKbLvVrK5n400h52uWO9Z10LojYs3wq9yTbq5f8++iB++KMGTiC81Fz2fQg4IOIRZjjctUAtWOqJxTqK1KI0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217207432198.14556074147515; Mon, 19 Aug 2019 05:20:07 -0700 (PDT) Received: from localhost ([::1]:49108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgdk-0004jL-O9 for importer@patchew.org; Mon, 19 Aug 2019 08:20:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36188) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTe-0001tt-LF for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTb-0002bR-3z for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:34 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57737 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTa-0002ZC-Fq for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 3DA871A205C; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id C31531A2072; Mon, 19 Aug 2019 14:08:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:43 +0200 Message-Id: <1566216496-17375-5-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 04/37] target/mips: Add support for emulation of GINVT instruction X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yongbok Kim Implement emulation of GINVT instruction. As QEMU doesn't support caches and virtualization, this implementation covers only GINVT (Global Invalidate TLB) instruction among TLB-related instructions. Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic --- disas/mips.c | 2 + target/mips/helper.c | 24 ++++++++-- target/mips/helper.h | 2 + target/mips/internal.h | 1 + target/mips/op_helper.c | 122 ++++++++++++++++++++++++++++++++++++++++++--= ---- target/mips/translate.c | 48 ++++++++++++++++++- 6 files changed, 177 insertions(+), 22 deletions(-) diff --git a/disas/mips.c b/disas/mips.c index dfefe5e..c3a3059 100644 --- a/disas/mips.c +++ b/disas/mips.c @@ -1409,6 +1409,8 @@ const struct mips_opcode mips_builtin_opcodes[] =3D {"dvp", "t", 0x41600024, 0xffe0ffff, TRAP|WR_t, 0, I= 32R6}, {"evp", "", 0x41600004, 0xffffffff, TRAP, 0, I= 32R6}, {"evp", "t", 0x41600004, 0xffe0ffff, TRAP|WR_t, 0, I= 32R6}, +{"ginvi", "v", 0x7c00003d, 0xfc1ffcff, TRAP | INSN_TLB, 0, I= 32R6}, +{"ginvt", "v", 0x7c0000bd, 0xfc1ffcff, TRAP | INSN_TLB, 0, I= 32R6}, =20 /* MSA */ {"sll.b", "+d,+e,+f", 0x7800000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA= }, diff --git a/target/mips/helper.c b/target/mips/helper.c index a2b6459..6e583d3 100644 --- a/target/mips/helper.c +++ b/target/mips/helper.c @@ -70,7 +70,12 @@ int r4k_map_address (CPUMIPSState *env, hwaddr *physical= , int *prot, target_ulong address, int rw, int access_type) { uint16_t ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + uint32_t MMID =3D env->CP0_MemoryMapID; + bool mi =3D !!((env->CP0_Config5 >> CP0C5_MI) & 1); int i; + uint32_t tlb_mmid; + + MMID =3D mi ? MMID : (uint32_t) ASID; =20 for (i =3D 0; i < env->tlb->tlb_in_use; i++) { r4k_tlb_t *tlb =3D &env->tlb->mmu.r4k.tlb[i]; @@ -82,8 +87,9 @@ int r4k_map_address (CPUMIPSState *env, hwaddr *physical,= int *prot, tag &=3D env->SEGMask; #endif =20 - /* Check ASID, virtual page number & size */ - if ((tlb->G =3D=3D 1 || tlb->ASID =3D=3D ASID) && VPN =3D=3D tag &= & !tlb->EHINV) { + /* Check ASID/MMID, virtual page number & size */ + tlb_mmid =3D mi ? tlb->MMID : (uint32_t) tlb->ASID; + if ((tlb->G =3D=3D 1 || tlb_mmid =3D=3D MMID) && VPN =3D=3D tag &&= !tlb->EHINV) { /* TLB match */ int n =3D !!(address & mask & ~(mask >> 1)); /* Check access rights */ @@ -1397,12 +1403,20 @@ void r4k_invalidate_tlb (CPUMIPSState *env, int idx= , int use_extra) target_ulong addr; target_ulong end; uint16_t ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + uint32_t MMID =3D env->CP0_MemoryMapID; target_ulong mask; + bool mi =3D !!((env->CP0_Config5 >> CP0C5_MI) & 1); + uint32_t tlb_mmid; + + MMID =3D mi ? MMID : (uint32_t) ASID; =20 tlb =3D &env->tlb->mmu.r4k.tlb[idx]; - /* The qemu TLB is flushed when the ASID changes, so no need to - flush these entries again. */ - if (tlb->G =3D=3D 0 && tlb->ASID !=3D ASID) { + /* + * The qemu TLB is flushed when the ASID/MMID changes, so no need to + * flush these entries again. + */ + tlb_mmid =3D mi ? tlb->MMID : (uint32_t) tlb->ASID; + if (tlb->G =3D=3D 0 && tlb_mmid !=3D MMID) { return; } =20 diff --git a/target/mips/helper.h b/target/mips/helper.h index aad0951..c7d35bd 100644 --- a/target/mips/helper.h +++ b/target/mips/helper.h @@ -120,6 +120,7 @@ DEF_HELPER_2(mtc0_tcschefback, void, env, tl) DEF_HELPER_2(mttc0_tcschefback, void, env, tl) DEF_HELPER_2(mtc0_entrylo1, void, env, tl) DEF_HELPER_2(mtc0_context, void, env, tl) +DEF_HELPER_2(mtc0_memorymapid, void, env, tl) DEF_HELPER_2(mtc0_pagemask, void, env, tl) DEF_HELPER_2(mtc0_pagegrain, void, env, tl) DEF_HELPER_2(mtc0_segctl0, void, env, tl) @@ -376,6 +377,7 @@ DEF_HELPER_1(ei, tl, env) DEF_HELPER_1(eret, void, env) DEF_HELPER_1(eretnc, void, env) DEF_HELPER_1(deret, void, env) +DEF_HELPER_3(ginvt, void, env, tl, i32) #endif /* !CONFIG_USER_ONLY */ DEF_HELPER_1(rdhwr_cpunum, tl, env) DEF_HELPER_1(rdhwr_synci_step, tl, env) diff --git a/target/mips/internal.h b/target/mips/internal.h index f6d0d7a..d9216fb 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -92,6 +92,7 @@ struct r4k_tlb_t { target_ulong VPN; uint32_t PageMask; uint16_t ASID; + uint32_t MMID; unsigned int G:1; unsigned int C0:3; unsigned int C1:3; diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 279b800..3104904 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -1409,6 +1409,17 @@ void helper_mtc0_context(CPUMIPSState *env, target_u= long arg1) env->CP0_Context =3D (env->CP0_Context & 0x007FFFFF) | (arg1 & ~0x007F= FFFF); } =20 +void helper_mtc0_memorymapid(CPUMIPSState *env, target_ulong arg1) +{ + int32_t old; + old =3D env->CP0_MemoryMapID; + env->CP0_MemoryMapID =3D (int32_t) arg1; + /* If the MemoryMapID changes, flush qemu's TLB. */ + if (old !=3D env->CP0_MemoryMapID) { + cpu_mips_tlb_flush(env); + } +} + void update_pagemask(CPUMIPSState *env, target_ulong arg1, int32_t *pagema= sk) { uint64_t mask =3D arg1 >> (TARGET_PAGE_BITS + 1); @@ -1857,6 +1868,8 @@ void helper_mtc0_config5(CPUMIPSState *env, target_ul= ong arg1) { env->CP0_Config5 =3D (env->CP0_Config5 & (~env->CP0_Config5_rw_bitmask= )) | (arg1 & env->CP0_Config5_rw_bitmask); + env->CP0_EntryHi_ASID_mask =3D (env->CP0_Config5 & (1 << CP0C5_MI)) ? = 0x0 : + (env->CP0_Config4 & (1 << CP0C4_AE)) ? 0x3ff : 0xf= f; compute_hflags(env); } =20 @@ -2276,6 +2289,7 @@ static void r4k_fill_tlb(CPUMIPSState *env, int idx) tlb->VPN &=3D env->SEGMask; #endif tlb->ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + tlb->MMID =3D env->CP0_MemoryMapID; tlb->PageMask =3D env->CP0_PageMask; tlb->G =3D env->CP0_EntryLo0 & env->CP0_EntryLo1 & 1; tlb->V0 =3D (env->CP0_EntryLo0 & 2) !=3D 0; @@ -2294,13 +2308,18 @@ static void r4k_fill_tlb(CPUMIPSState *env, int idx) =20 void r4k_helper_tlbinv(CPUMIPSState *env) { + bool mi =3D !!((env->CP0_Config5 >> CP0C5_MI) & 1); int idx; r4k_tlb_t *tlb; uint16_t ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + uint32_t MMID =3D env->CP0_MemoryMapID; + uint32_t tlb_mmid; =20 + MMID =3D mi ? MMID : (uint32_t) ASID; for (idx =3D 0; idx < env->tlb->nb_tlb; idx++) { tlb =3D &env->tlb->mmu.r4k.tlb[idx]; - if (!tlb->G && tlb->ASID =3D=3D ASID) { + tlb_mmid =3D mi ? tlb->MMID : (uint32_t) tlb->ASID; + if (!tlb->G && tlb_mmid =3D=3D MMID) { tlb->EHINV =3D 1; } } @@ -2319,11 +2338,16 @@ void r4k_helper_tlbinvf(CPUMIPSState *env) =20 void r4k_helper_tlbwi(CPUMIPSState *env) { + bool mi =3D !!((env->CP0_Config5 >> CP0C5_MI) & 1); r4k_tlb_t *tlb; int idx; target_ulong VPN; - uint16_t ASID; bool EHINV, G, V0, D0, V1, D1, XI0, XI1, RI0, RI1; + uint16_t ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + uint32_t MMID =3D env->CP0_MemoryMapID; + uint32_t tlb_mmid; + + MMID =3D mi ? MMID : (uint32_t) ASID; =20 idx =3D (env->CP0_Index & ~0x80000000) % env->tlb->nb_tlb; tlb =3D &env->tlb->mmu.r4k.tlb[idx]; @@ -2331,7 +2355,6 @@ void r4k_helper_tlbwi(CPUMIPSState *env) #if defined(TARGET_MIPS64) VPN &=3D env->SEGMask; #endif - ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; EHINV =3D (env->CP0_EntryHi & (1 << CP0EnHi_EHINV)) !=3D 0; G =3D env->CP0_EntryLo0 & env->CP0_EntryLo1 & 1; V0 =3D (env->CP0_EntryLo0 & 2) !=3D 0; @@ -2343,9 +2366,10 @@ void r4k_helper_tlbwi(CPUMIPSState *env) XI1 =3D (env->CP0_EntryLo1 >> CP0EnLo_XI) &1; RI1 =3D (env->CP0_EntryLo1 >> CP0EnLo_RI) &1; =20 + tlb_mmid =3D mi ? tlb->MMID : (uint32_t) tlb->ASID; /* Discard cached TLB entries, unless tlbwi is just upgrading access permissions on the current entry. */ - if (tlb->VPN !=3D VPN || tlb->ASID !=3D ASID || tlb->G !=3D G || + if (tlb->VPN !=3D VPN || tlb_mmid !=3D MMID || tlb->G !=3D G || (!tlb->EHINV && EHINV) || (tlb->V0 && !V0) || (tlb->D0 && !D0) || (!tlb->XI0 && XI0) || (!tlb->RI0 && RI0) || @@ -2368,14 +2392,17 @@ void r4k_helper_tlbwr(CPUMIPSState *env) =20 void r4k_helper_tlbp(CPUMIPSState *env) { + bool mi =3D !!((env->CP0_Config5 >> CP0C5_MI) & 1); r4k_tlb_t *tlb; target_ulong mask; target_ulong tag; target_ulong VPN; - uint16_t ASID; int i; + uint16_t ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + uint32_t MMID =3D env->CP0_MemoryMapID; + uint32_t tlb_mmid; =20 - ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + MMID =3D mi ? MMID : (uint32_t) ASID; for (i =3D 0; i < env->tlb->nb_tlb; i++) { tlb =3D &env->tlb->mmu.r4k.tlb[i]; /* 1k pages are not supported. */ @@ -2385,8 +2412,9 @@ void r4k_helper_tlbp(CPUMIPSState *env) #if defined(TARGET_MIPS64) tag &=3D env->SEGMask; #endif - /* Check ASID, virtual page number & size */ - if ((tlb->G =3D=3D 1 || tlb->ASID =3D=3D ASID) && VPN =3D=3D tag &= & !tlb->EHINV) { + tlb_mmid =3D mi ? tlb->MMID : (uint32_t) tlb->ASID; + /* Check ASID/MMID, virtual page number & size */ + if ((tlb->G =3D=3D 1 || tlb_mmid =3D=3D MMID) && VPN =3D=3D tag &&= !tlb->EHINV) { /* TLB match */ env->CP0_Index =3D i; break; @@ -2403,8 +2431,9 @@ void r4k_helper_tlbp(CPUMIPSState *env) #if defined(TARGET_MIPS64) tag &=3D env->SEGMask; #endif - /* Check ASID, virtual page number & size */ - if ((tlb->G =3D=3D 1 || tlb->ASID =3D=3D ASID) && VPN =3D=3D t= ag) { + tlb_mmid =3D mi ? tlb->MMID : (uint32_t) tlb->ASID; + /* Check ASID/MMID, virtual page number & size */ + if ((tlb->G =3D=3D 1 || tlb_mmid =3D=3D MMID) && VPN =3D=3D ta= g) { r4k_mips_tlb_flush_extra (env, i); break; } @@ -2426,17 +2455,22 @@ static inline uint64_t get_entrylo_pfn_from_tlb(uin= t64_t tlb_pfn) =20 void r4k_helper_tlbr(CPUMIPSState *env) { + bool mi =3D !!((env->CP0_Config5 >> CP0C5_MI) & 1); r4k_tlb_t *tlb; - uint16_t ASID; int idx; + uint16_t ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + uint32_t MMID =3D env->CP0_MemoryMapID; + uint32_t tlb_mmid; =20 - ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; + MMID =3D mi ? MMID : (uint32_t) ASID; idx =3D (env->CP0_Index & ~0x80000000) % env->tlb->nb_tlb; tlb =3D &env->tlb->mmu.r4k.tlb[idx]; =20 - /* If this will change the current ASID, flush qemu's TLB. */ - if (ASID !=3D tlb->ASID) + tlb_mmid =3D mi ? tlb->MMID : (uint32_t) tlb->ASID; + /* If this will change the current ASID/MMID, flush qemu's TLB. */ + if (MMID !=3D tlb_mmid) { cpu_mips_tlb_flush(env); + } =20 r4k_mips_tlb_flush_extra(env, env->tlb->nb_tlb); =20 @@ -2446,7 +2480,8 @@ void r4k_helper_tlbr(CPUMIPSState *env) env->CP0_EntryLo0 =3D 0; env->CP0_EntryLo1 =3D 0; } else { - env->CP0_EntryHi =3D tlb->VPN | tlb->ASID; + env->CP0_EntryHi =3D mi ? tlb->VPN : tlb->VPN | tlb->ASID; + env->CP0_MemoryMapID =3D tlb->MMID; env->CP0_PageMask =3D tlb->PageMask; env->CP0_EntryLo0 =3D tlb->G | (tlb->V0 << 1) | (tlb->D0 << 2) | ((uint64_t)tlb->RI0 << CP0EnLo_RI) | @@ -2489,6 +2524,63 @@ void helper_tlbinvf(CPUMIPSState *env) env->tlb->helper_tlbinvf(env); } =20 +static void global_invalidate_tlb(CPUMIPSState *env, + uint32_t invMsgVPN2, + uint8_t invMsgR, + uint32_t invMsgMMid, + bool invAll, + bool invVAMMid, + bool invMMid, + bool invVA) +{ + + int idx; + r4k_tlb_t *tlb; + bool VAMatch; + bool MMidMatch; + + for (idx =3D 0; idx < env->tlb->nb_tlb; idx++) { + tlb =3D &env->tlb->mmu.r4k.tlb[idx]; + VAMatch =3D + (((tlb->VPN & ~tlb->PageMask) =3D=3D (invMsgVPN2 & ~tlb->PageM= ask)) +#ifdef TARGET_MIPS64 + && + (extract64(env->CP0_EntryHi, 62, 2) =3D=3D invMsgR) +#endif + ); + MMidMatch =3D tlb->MMID =3D=3D invMsgMMid; + if ((invAll && (idx > env->CP0_Wired)) || + (VAMatch && invVAMMid && (tlb->G || MMidMatch)) || + (VAMatch && invVA) || + (MMidMatch && !(tlb->G) && invMMid)) { + tlb->EHINV =3D 1; + } + } + cpu_mips_tlb_flush(env); +} + +void helper_ginvt(CPUMIPSState *env, target_ulong arg, uint32_t type) +{ + bool invAll =3D type =3D=3D 0; + bool invVA =3D type =3D=3D 1; + bool invMMid =3D type =3D=3D 2; + bool invVAMMid =3D type =3D=3D 3; + uint32_t invMsgVPN2 =3D arg & (TARGET_PAGE_MASK << 1); + uint8_t invMsgR =3D 0; + uint32_t invMsgMMid =3D env->CP0_MemoryMapID; + CPUState *other_cs =3D first_cpu; + +#ifdef TARGET_MIPS64 + invMsgR =3D extract64(arg, 62, 2); +#endif + + CPU_FOREACH(other_cs) { + MIPSCPU *other_cpu =3D MIPS_CPU(other_cs); + global_invalidate_tlb(&other_cpu->env, invMsgVPN2, invMsgR, invMsg= MMid, + invAll, invVAMMid, invMMid, invVA); + } +} + /* Specials */ target_ulong helper_di(CPUMIPSState *env) { diff --git a/target/mips/translate.c b/target/mips/translate.c index b40468d..3f73be0 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -388,6 +388,7 @@ enum { OPC_BSHFL =3D 0x20 | OPC_SPECIAL3, OPC_DBSHFL =3D 0x24 | OPC_SPECIAL3, OPC_RDHWR =3D 0x3B | OPC_SPECIAL3, + OPC_GINV =3D 0x3D | OPC_SPECIAL3, =20 /* Loongson 2E */ OPC_MULT_G_2E =3D 0x18 | OPC_SPECIAL3, @@ -2548,6 +2549,7 @@ typedef struct DisasContext { bool abs2008; bool saar; bool mi; + int gi; } DisasContext; =20 #define DISAS_STOP DISAS_TARGET_0 @@ -7027,6 +7029,11 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) tcg_gen_ext32s_tl(arg, arg); register_name =3D "UserLocal"; break; + case 5: + CP0_CHECK(ctx->mi); + gen_helper_mtc0_memorymapid(cpu_env, arg); + register_name =3D "MemoryMapID"; + break; default: goto cp0_unimplemented; } @@ -7763,6 +7770,11 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) offsetof(CPUMIPSState, active_tc.CP0_UserLocal)); register_name =3D "UserLocal"; break; + case 5: + CP0_CHECK(ctx->mi); + gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_MemoryMapID)); + register_name =3D "MemoryMapID"; + break; default: goto cp0_unimplemented; } @@ -8509,6 +8521,11 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) offsetof(CPUMIPSState, active_tc.CP0_UserLocal)); register_name =3D "UserLocal"; break; + case 5: + CP0_CHECK(ctx->mi); + gen_helper_mtc0_memorymapid(cpu_env, arg); + register_name =3D "MemoryMapID"; + break; default: goto cp0_unimplemented; } @@ -9225,6 +9242,11 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) offsetof(CPUMIPSState, active_tc.CP0_UserLocal)); register_name =3D "UserLocal"; break; + case 5: + CP0_CHECK(ctx->mi); + gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_MemoryMapID)); + register_name =3D "MemoryMapID"; + break; default: goto cp0_unimplemented; } @@ -27072,6 +27094,27 @@ static void decode_opc_special3_r6(CPUMIPSState *e= nv, DisasContext *ctx) } } break; +#ifndef CONFIG_USER_ONLY + case OPC_GINV: + if (unlikely(ctx->gi <=3D 1)) { + generate_exception_end(ctx, EXCP_RI); + } + check_cp0_enabled(ctx); + switch ((ctx->opcode >> 6) & 3) { + case 0: + /* GINVI */ + /* Treat as NOP. */ + break; + case 2: + /* GINVT */ + gen_helper_0e1i(ginvt, cpu_gpr[rs], extract32(ctx->opcode, 8, = 2)); + break; + default: + generate_exception_end(ctx, EXCP_RI); + break; + } + break; +#endif #if defined(TARGET_MIPS64) case R6_OPC_SCD: gen_st_cond(ctx, rt, rs, imm, MO_TEQ, false); @@ -30005,6 +30048,7 @@ static void mips_tr_init_disas_context(DisasContext= Base *dcbase, CPUState *cs) ctx->nan2008 =3D (env->active_fpu.fcr31 >> FCR31_NAN2008) & 1; ctx->abs2008 =3D (env->active_fpu.fcr31 >> FCR31_ABS2008) & 1; ctx->mi =3D (env->CP0_Config5 >> CP0C5_MI) & 1; + ctx->gi =3D (env->CP0_Config5 >> CP0C5_GI) & 3; restore_cpu_state(env, ctx); #ifdef CONFIG_USER_ONLY ctx->mem_idx =3D MIPS_HFLAG_UM; @@ -30464,8 +30508,8 @@ void cpu_state_reset(CPUMIPSState *env) if (env->CP0_Config3 & (1 << CP0C3_CMGCR)) { env->CP0_CMGCRBase =3D 0x1fbf8000 >> 4; } - env->CP0_EntryHi_ASID_mask =3D (env->CP0_Config4 & (1 << CP0C4_AE)) ? - 0x3ff : 0xff; + env->CP0_EntryHi_ASID_mask =3D (env->CP0_Config5 & (1 << CP0C5_MI)) ? = 0x0 : + (env->CP0_Config4 & (1 << CP0C4_AE)) ? 0x3ff : 0xf= f; env->CP0_Status =3D (1 << CP0St_BEV) | (1 << CP0St_ERL); /* * Vectored interrupts not implemented, timer on int 7, --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566216699; cv=none; d=zoho.com; s=zohoarc; b=KldQSGziTMM0mRarXcQhOdQINzi6T/RZRHM8CalJtIB/RWTW7t3YX2CK05vHKzW/++BXzGvMOpeIRekCWw4D/aX2apRB4G/Gu64hrHUS4oY+pgwnby8DYYqE/JP/CFDj2Y/YrtkjeiZFERBvjs3lNXgZq7poXhvlP5cXxYi+mwU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566216699; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ppGv0A7lyxdlj0mUUOiThsiMn5Om1Dz0RY/lvEA0UAU=; b=STeZtRrEVOGWedlMSJT6MzABRaKrZzPmstAA1DMzJAeGswu/6vtYipUzOzfXek0iuqyL2J2mNThp0U3DDXa+ou0TQ0E3Q8X7ax55NH3k/73ar5GKimuHPpVkSZwPkZUkpk+Y27XEmBbKUKwpz4TIPx26LoMbblDw1367Am4rvz0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566216699298741.0419306265909; Mon, 19 Aug 2019 05:11:39 -0700 (PDT) Received: from localhost ([::1]:48940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgVe-0003sG-0P for importer@patchew.org; Mon, 19 Aug 2019 08:11:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36096) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTb-0001sK-OA for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTZ-0002Yv-In for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:31 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:56504 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTZ-0001ey-7N for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:29 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 282CA1A205D; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id D2B161A2077; Mon, 19 Aug 2019 14:08:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:44 +0200 Message-Id: <1566216496-17375-6-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 05/37] target/mips: Add support for emulation of CRC32 group of instructions X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yongbok Kim Add emulation of MIPS' CRC32 (Cyclic Redundancy Check) instructions. Reuse zlib crc32() and Linux crc32c(). Note that, at the time being, there is no MIPS CPU that supports CRC32 instructions (they are an optional part of MIPS64/32 R6 anf nanoMIPS ISAs). Signed-off-by: Yongbok Kim Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Markovic --- disas/mips.c | 8 ++++++++ target/mips/helper.h | 2 ++ target/mips/op_helper.c | 22 ++++++++++++++++++++++ target/mips/translate.c | 41 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 73 insertions(+) diff --git a/disas/mips.c b/disas/mips.c index c3a3059..b9a5204 100644 --- a/disas/mips.c +++ b/disas/mips.c @@ -1411,6 +1411,14 @@ const struct mips_opcode mips_builtin_opcodes[] =3D {"evp", "t", 0x41600004, 0xffe0ffff, TRAP|WR_t, 0, I= 32R6}, {"ginvi", "v", 0x7c00003d, 0xfc1ffcff, TRAP | INSN_TLB, 0, I= 32R6}, {"ginvt", "v", 0x7c0000bd, 0xfc1ffcff, TRAP | INSN_TLB, 0, I= 32R6}, +{"crc32b", "t,v,t", 0x7c00000f, 0xfc00ff3f, WR_d | RD_s | RD_t, 0, I= 32R6}, +{"crc32h", "t,v,t", 0x7c00004f, 0xfc00ff3f, WR_d | RD_s | RD_t, 0, I= 32R6}, +{"crc32w", "t,v,t", 0x7c00008f, 0xfc00ff3f, WR_d | RD_s | RD_t, 0, I= 32R6}, +{"crc32d", "t,v,t", 0x7c0000cf, 0xfc00ff3f, WR_d | RD_s | RD_t, 0, I= 64R6}, +{"crc32cb", "t,v,t", 0x7c00010f, 0xfc00ff3f, WR_d | RD_s | RD_t, 0, I= 32R6}, +{"crc32ch", "t,v,t", 0x7c00014f, 0xfc00ff3f, WR_d | RD_s | RD_t, 0, I= 32R6}, +{"crc32cw", "t,v,t", 0x7c00018f, 0xfc00ff3f, WR_d | RD_s | RD_t, 0, I= 32R6}, +{"crc32cd", "t,v,t", 0x7c0001cf, 0xfc00ff3f, WR_d | RD_s | RD_t, 0, I= 64R6}, =20 /* MSA */ {"sll.b", "+d,+e,+f", 0x7800000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA= }, diff --git a/target/mips/helper.h b/target/mips/helper.h index c7d35bd..0e61043 100644 --- a/target/mips/helper.h +++ b/target/mips/helper.h @@ -40,6 +40,8 @@ DEF_HELPER_FLAGS_1(bitswap, TCG_CALL_NO_RWG_SE, tl, tl) DEF_HELPER_FLAGS_1(dbitswap, TCG_CALL_NO_RWG_SE, tl, tl) #endif =20 +DEF_HELPER_3(crc32, tl, tl, tl, i32) +DEF_HELPER_3(crc32c, tl, tl, tl, i32) DEF_HELPER_FLAGS_4(rotx, TCG_CALL_NO_RWG_SE, tl, tl, i32, i32, i32) =20 #ifndef CONFIG_USER_ONLY diff --git a/target/mips/op_helper.c b/target/mips/op_helper.c index 3104904..5874029 100644 --- a/target/mips/op_helper.c +++ b/target/mips/op_helper.c @@ -25,6 +25,8 @@ #include "exec/exec-all.h" #include "exec/cpu_ldst.h" #include "sysemu/kvm.h" +#include "qemu/crc32c.h" +#include =20 /*************************************************************************= ****/ /* Exceptions processing helpers */ @@ -343,6 +345,26 @@ target_ulong helper_rotx(target_ulong rs, uint32_t shi= ft, uint32_t shiftx, return (int64_t)(int32_t)(uint32_t)tmp5; } =20 +/* these crc32 functions are based on target/arm/helper-a64.c */ +target_ulong helper_crc32(target_ulong val, target_ulong m, uint32_t sz) +{ + uint8_t buf[8]; + target_ulong mask =3D ((sz * 8) =3D=3D 64) ? -1ULL : ((1ULL << (sz * 8= )) - 1); + + m &=3D mask; + stq_le_p(buf, m); + return (int32_t) (crc32(val ^ 0xffffffff, buf, sz) ^ 0xffffffff); +} + +target_ulong helper_crc32c(target_ulong val, target_ulong m, uint32_t sz) +{ + uint8_t buf[8]; + target_ulong mask =3D ((sz * 8) =3D=3D 64) ? -1ULL : ((1ULL << (sz * 8= )) - 1); + m &=3D mask; + stq_le_p(buf, m); + return (int32_t) (crc32c(val, buf, sz) ^ 0xffffffff); +} + #ifndef CONFIG_USER_ONLY =20 static inline hwaddr do_translate_address(CPUMIPSState *env, diff --git a/target/mips/translate.c b/target/mips/translate.c index 3f73be0..3f9f113 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -452,6 +452,7 @@ enum { OPC_LWE =3D 0x2F | OPC_SPECIAL3, =20 /* R6 */ + OPC_CRC32 =3D 0x0F | OPC_SPECIAL3, R6_OPC_PREF =3D 0x35 | OPC_SPECIAL3, R6_OPC_CACHE =3D 0x25 | OPC_SPECIAL3, R6_OPC_LL =3D 0x36 | OPC_SPECIAL3, @@ -2550,6 +2551,7 @@ typedef struct DisasContext { bool saar; bool mi; int gi; + bool crcp; } DisasContext; =20 #define DISAS_STOP DISAS_TARGET_0 @@ -27041,6 +27043,33 @@ static void decode_opc_special2_legacy(CPUMIPSStat= e *env, DisasContext *ctx) } } =20 +static void gen_crc32(DisasContext *ctx, int rd, int rs, int rt, int sz, + int crc32c) +{ + TCGv t0; + TCGv t1; + TCGv_i32 tsz =3D tcg_const_i32(1 << sz); + if (rd =3D=3D 0) { + /* Treat as NOP. */ + return; + } + t0 =3D tcg_temp_new(); + t1 =3D tcg_temp_new(); + + gen_load_gpr(t0, rt); + gen_load_gpr(t1, rs); + + if (crc32c) { + gen_helper_crc32c(cpu_gpr[rd], t0, t1, tsz); + } else { + gen_helper_crc32(cpu_gpr[rd], t0, t1, tsz); + } + + tcg_temp_free(t0); + tcg_temp_free(t1); + tcg_temp_free_i32(tsz); +} + static void decode_opc_special3_r6(CPUMIPSState *env, DisasContext *ctx) { int rs, rt, rd, sa; @@ -27055,6 +27084,17 @@ static void decode_opc_special3_r6(CPUMIPSState *e= nv, DisasContext *ctx) =20 op1 =3D MASK_SPECIAL3(ctx->opcode); switch (op1) { + case OPC_CRC32: + if (unlikely(!ctx->crcp) || + unlikely((extract32(ctx->opcode, 6, 2) =3D=3D 3) && + (!(ctx->hflags & MIPS_HFLAG_64))) || + unlikely((extract32(ctx->opcode, 8, 3) >=3D 2))) { + generate_exception_end(ctx, EXCP_RI); + } + gen_crc32(ctx, rt, rs, rt, + extract32(ctx->opcode, 6, 2), + extract32(ctx->opcode, 8, 3)); + break; case R6_OPC_PREF: if (rt >=3D 24) { /* hint codes 24-31 are reserved and signal RI */ @@ -30049,6 +30089,7 @@ static void mips_tr_init_disas_context(DisasContext= Base *dcbase, CPUState *cs) ctx->abs2008 =3D (env->active_fpu.fcr31 >> FCR31_ABS2008) & 1; ctx->mi =3D (env->CP0_Config5 >> CP0C5_MI) & 1; ctx->gi =3D (env->CP0_Config5 >> CP0C5_GI) & 3; + ctx->crcp =3D (env->CP0_Config5 >> CP0C5_CRCP) & 1; restore_cpu_state(env, ctx); #ifdef CONFIG_USER_ONLY ctx->mem_idx =3D MIPS_HFLAG_UM; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217574; cv=none; d=zoho.com; s=zohoarc; b=HCfb1/mgtgEj799VfwAyvtsAcMNqPSVqU7o/80C5RgHE34VRYmnwRKoIumdMPnI9nY0rARYICtqb+6s0QZgQCqoeftb6xtmATomLsdnAKTX1w+f8ENeKDOofEtKDkuOcoUJq/vMhdeSRHX76qxgu3wFEEEEUmfgG99csc6IduJU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217574; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=EEU/nl2TUKXljL5x88Jg74c9P7xcTNWDnaREql5no5I=; b=c7otNAtUvz+aKBXvcVvnX5zEK6GTsXm7h7IE2kEtL25sGDoj1E74nnZNBsbMCnCm5hcZai/SZ6SGtEMkWHB1xmk+TA5ZzBCGxZgjqt6oKzq5WR4pwJPGm1rxDYrmcCwgiTTpMRmajDIDCWC+LiSPLnakuLyAGH9+D1PiEgwIXNU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217574561465.34926498238906; Mon, 19 Aug 2019 05:26:14 -0700 (PDT) Received: from localhost ([::1]:49196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgjl-0003aW-7C for importer@patchew.org; Mon, 19 Aug 2019 08:26:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36239) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTm-00026P-HZ for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTl-0002ij-17 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57717 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTk-0002Z5-Lp for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:40 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 41EB11A2077; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id DD5A51A205E; Mon, 19 Aug 2019 14:08:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:45 +0200 Message-Id: <1566216496-17375-7-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 06/37] target/mips: Style improvements in cp0_timer.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/cp0_timer.c | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/target/mips/cp0_timer.c b/target/mips/cp0_timer.c index f471639..b5f3560 100644 --- a/target/mips/cp0_timer.c +++ b/target/mips/cp0_timer.c @@ -29,7 +29,7 @@ #define TIMER_PERIOD 10 /* 10 ns period for 100 Mhz frequency */ =20 /* XXX: do not use a global */ -uint32_t cpu_mips_get_random (CPUMIPSState *env) +uint32_t cpu_mips_get_random(CPUMIPSState *env) { static uint32_t seed =3D 1; static uint32_t prev_idx =3D 0; @@ -42,8 +42,10 @@ uint32_t cpu_mips_get_random (CPUMIPSState *env) =20 /* Don't return same value twice, so get another value */ do { - /* Use a simple algorithm of Linear Congruential Generator - * from ISO/IEC 9899 standard. */ + /* + * Use a simple algorithm of Linear Congruential Generator + * from ISO/IEC 9899 standard. + */ seed =3D 1103515245 * seed + 12345; idx =3D (seed >> 16) % nb_rand_tlb + env->CP0_Wired; } while (idx =3D=3D prev_idx); @@ -73,7 +75,7 @@ static void cpu_mips_timer_expire(CPUMIPSState *env) qemu_irq_raise(env->irq[(env->CP0_IntCtl >> CP0IntCtl_IPTI) & 0x7]); } =20 -uint32_t cpu_mips_get_count (CPUMIPSState *env) +uint32_t cpu_mips_get_count(CPUMIPSState *env) { if (env->CP0_Cause & (1 << CP0Ca_DC)) { return env->CP0_Count; @@ -91,16 +93,16 @@ uint32_t cpu_mips_get_count (CPUMIPSState *env) } } =20 -void cpu_mips_store_count (CPUMIPSState *env, uint32_t count) +void cpu_mips_store_count(CPUMIPSState *env, uint32_t count) { /* * This gets called from cpu_state_reset(), potentially before timer i= nit. * So env->timer may be NULL, which is also the case with KVM enabled = so * treat timer as disabled in that case. */ - if (env->CP0_Cause & (1 << CP0Ca_DC) || !env->timer) + if (env->CP0_Cause & (1 << CP0Ca_DC) || !env->timer) { env->CP0_Count =3D count; - else { + } else { /* Store new count register */ env->CP0_Count =3D count - (uint32_t)(qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) / TIMER_PE= RIOD); @@ -109,13 +111,15 @@ void cpu_mips_store_count (CPUMIPSState *env, uint32_= t count) } } =20 -void cpu_mips_store_compare (CPUMIPSState *env, uint32_t value) +void cpu_mips_store_compare(CPUMIPSState *env, uint32_t value) { env->CP0_Compare =3D value; - if (!(env->CP0_Cause & (1 << CP0Ca_DC))) + if (!(env->CP0_Cause & (1 << CP0Ca_DC))) { cpu_mips_timer_update(env); - if (env->insn_flags & ISA_MIPS32R2) + } + if (env->insn_flags & ISA_MIPS32R2) { env->CP0_Cause &=3D ~(1 << CP0Ca_TI); + } qemu_irq_lower(env->irq[(env->CP0_IntCtl >> CP0IntCtl_IPTI) & 0x7]); } =20 @@ -131,27 +135,27 @@ void cpu_mips_stop_count(CPUMIPSState *env) TIMER_PERIOD); } =20 -static void mips_timer_cb (void *opaque) +static void mips_timer_cb(void *opaque) { CPUMIPSState *env; =20 env =3D opaque; -#if 0 - qemu_log("%s\n", __func__); -#endif =20 - if (env->CP0_Cause & (1 << CP0Ca_DC)) + if (env->CP0_Cause & (1 << CP0Ca_DC)) { return; + } =20 - /* ??? This callback should occur when the counter is exactly equal to - the comparator value. Offset the count by one to avoid immediately - retriggering the callback before any virtual time has passed. */ + /* + * ??? This callback should occur when the counter is exactly equal to + * the comparator value. Offset the count by one to avoid immediately + * retriggering the callback before any virtual time has passed. + */ env->CP0_Count++; cpu_mips_timer_expire(env); env->CP0_Count--; } =20 -void cpu_mips_clock_init (MIPSCPU *cpu) +void cpu_mips_clock_init(MIPSCPU *cpu) { CPUMIPSState *env =3D &cpu->env; =20 --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217315; cv=none; d=zoho.com; s=zohoarc; b=kUaxy6NMk+mgXsU603nDwaBILAj7CErsI5DPEYJ/M9RhL9CLnrHTc3sLvEqn/0UIpfVBU34jhSpO8PrCIDFKL0etAAAxPooTHXUltv9ZT/YF8lBNU0wQzS8THZuVd1/qaDcJ7BOLtdLz6nNGk9RPDqPsrxOKS4+s49vUQYOSklc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217315; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=VOEMYsqVfkGqaDcm3TEONg5XBULVedNyjhIExc0euCQ=; b=gONwyYfeeHDmewYD0znsqv4mqT8dtXPkcv4YC5ytHjKS2PtzPXIQK8ThgjEEg/crEQ6Qa9YmZlmNctSJYielm9EioGYrZhjapCHcLpDXNtZ7hoy1nqCMb0naG2Mnte9Gzp8LaGiUu6BOqZiv6cW+jZnLuElc+b0OgCQptnt3Aag= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217315633400.9633305942284; Mon, 19 Aug 2019 05:21:55 -0700 (PDT) Received: from localhost ([::1]:49128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgfW-0006ts-Tr for importer@patchew.org; Mon, 19 Aug 2019 08:21:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36108) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTc-0001sq-8j for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTa-0002aB-Ny for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:32 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57745 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTa-0002ZG-GC for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 57A351A205E; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id E73181A203D; Mon, 19 Aug 2019 14:08:23 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:46 +0200 Message-Id: <1566216496-17375-8-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 07/37] target/mips: Style improvements in cpu.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/cpu.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/target/mips/cpu.c b/target/mips/cpu.c index 39eafaf..3ffa342 100644 --- a/target/mips/cpu.c +++ b/target/mips/cpu.c @@ -57,9 +57,11 @@ static bool mips_cpu_has_work(CPUState *cs) CPUMIPSState *env =3D &cpu->env; bool has_work =3D false; =20 - /* Prior to MIPS Release 6 it is implementation dependent if non-enabl= ed - interrupts wake-up the CPU, however most of the implementations only - check for interrupts that can be taken. */ + /* + * Prior to MIPS Release 6 it is implementation dependent if non-enabl= ed + * interrupts wake-up the CPU, however most of the implementations only + * check for interrupts that can be taken. + */ if ((cs->interrupt_request & CPU_INTERRUPT_HARD) && cpu_mips_hw_interrupts_pending(env)) { if (cpu_mips_hw_interrupts_enabled(env) || @@ -70,8 +72,10 @@ static bool mips_cpu_has_work(CPUState *cs) =20 /* MIPS-MT has the ability to halt the CPU. */ if (env->CP0_Config3 & (1 << CP0C3_MT)) { - /* The QEMU model will issue an _WAKE request whenever the CPUs - should be woken up. */ + /* + * The QEMU model will issue an _WAKE request whenever the CPUs + * should be woken up. + */ if (cs->interrupt_request & CPU_INTERRUPT_WAKE) { has_work =3D true; } @@ -112,7 +116,8 @@ static void mips_cpu_reset(CPUState *s) #endif } =20 -static void mips_cpu_disas_set_info(CPUState *s, disassemble_info *info) { +static void mips_cpu_disas_set_info(CPUState *s, disassemble_info *info) +{ MIPSCPU *cpu =3D MIPS_CPU(s); CPUMIPSState *env =3D &cpu->env; =20 --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566216882; cv=none; d=zoho.com; s=zohoarc; b=RwsuxNhJWR8wdVAwM/bYvBhp+XtX8NqYuJf4bGc8mbIBeMIxAx29JDP7y0lZECo4dbWFsvSxvxAILhF9gwrPkAdKoYLT1DQc4B4EqOBQbQyvDNcv+epbUzeRwQr3UXCvqSExWN0SaPRXea7mwp5zzv1vHDY7Ym/ESxdoiDgL0Pw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566216882; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=GbVPuqi47oUKtz++3dPm2WOL4v58s5HPlUDWSU7gpM0=; b=mpkFI1P+MWKlkcjfBK8NbMU0K3xCrr3i0U1wZEKJAxxJYLxOxJahUC12ywV5C/dkJRgL/AoBoE06h4urhhgHcsZzXA8LzpizjmbZdx9VxSJ08AZHmIHjOdkhJMywU9Q9u6ZLtep2wMm4KIGnVh/b2yMxa1snRKv2p46hxi2yIKQ= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566216882138680.447559326029; Mon, 19 Aug 2019 05:14:42 -0700 (PDT) Received: from localhost ([::1]:48972 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgYO-0007YZ-ET for importer@patchew.org; Mon, 19 Aug 2019 08:14:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36172) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTd-0001tH-Qj for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTb-0002bC-2j for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:33 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57771 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTa-0002ZX-Ir for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 5C3371A2089; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 05AEC1A208C; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:47 +0200 Message-Id: <1566216496-17375-9-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 08/37] target/mips: Style improvements in internal.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/internal.h | 57 +++++++++++++++++++++++++++++++---------------= ---- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/target/mips/internal.h b/target/mips/internal.h index d9216fb..836de7a 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -1,4 +1,5 @@ -/* mips internal definitions and helpers +/* + * MIPS internal definitions and helpers * * This work is licensed under the terms of the GNU GPL, version 2 or late= r. * See the COPYING file in the top-level directory. @@ -8,8 +9,10 @@ #define MIPS_INTERNAL_H =20 =20 -/* MMU types, the first four entries have the same layout as the - CP0C0_MT field. */ +/* + * MMU types, the first four entries have the same layout as the + * CP0C0_MT field. + */ enum mips_mmu_types { MMU_TYPE_NONE, MMU_TYPE_R4000, @@ -159,9 +162,11 @@ static inline bool cpu_mips_hw_interrupts_enabled(CPUM= IPSState *env) !(env->CP0_Status & (1 << CP0St_EXL)) && !(env->CP0_Status & (1 << CP0St_ERL)) && !(env->hflags & MIPS_HFLAG_DM) && - /* Note that the TCStatus IXMT field is initialized to zero, - and only MT capable cores can set it to one. So we don't - need to check for MT capabilities here. */ + /* + * Note that the TCStatus IXMT field is initialized to zero, + * and only MT capable cores can set it to one. So we don't + * need to check for MT capabilities here. + */ !(env->active_tc.CP0_TCStatus & (1 << CP0TCSt_IXMT)); } =20 @@ -176,14 +181,18 @@ static inline bool cpu_mips_hw_interrupts_pending(CPU= MIPSState *env) status =3D env->CP0_Status & CP0Ca_IP_mask; =20 if (env->CP0_Config3 & (1 << CP0C3_VEIC)) { - /* A MIPS configured with a vectorizing external interrupt control= ler - will feed a vector into the Cause pending lines. The core treats - the status lines as a vector level, not as indiviual masks. */ + /* + * A MIPS configured with a vectorizing external interrupt control= ler + * will feed a vector into the Cause pending lines. The core treats + * the status lines as a vector level, not as indiviual masks. + */ r =3D pending > status; } else { - /* A MIPS configured with compatibility or VInt (Vectored Interrup= ts) - treats the pending lines as individual interrupt lines, the sta= tus - lines are individual masks. */ + /* + * A MIPS configured with compatibility or VInt (Vectored Interrup= ts) + * treats the pending lines as individual interrupt lines, the sta= tus + * lines are individual masks. + */ r =3D (pending & status) !=3D 0; } return r; @@ -268,12 +277,14 @@ static inline int mips_vpe_active(CPUMIPSState *env) active =3D 0; } =20 - /* Now verify that there are active thread contexts in the VPE. - - This assumes the CPU model will internally reschedule threads - if the active one goes to sleep. If there are no threads available - the active one will be in a sleeping state, and we can turn off - the entire VPE. */ + /* + * Now verify that there are active thread contexts in the VPE. + * + * This assumes the CPU model will internally reschedule threads + * if the active one goes to sleep. If there are no threads available + * the active one will be in a sleeping state, and we can turn off + * the entire VPE. + */ if (!(env->active_tc.CP0_TCStatus & (1 << CP0TCSt_A))) { /* TC is not activated. */ active =3D 0; @@ -396,10 +407,12 @@ static inline void compute_hflags(CPUMIPSState *env) env->hflags |=3D MIPS_HFLAG_COP1X; } } else if (env->insn_flags & ISA_MIPS4) { - /* All supported MIPS IV CPUs use the XX (CU3) to enable - and disable the MIPS IV extensions to the MIPS III ISA. - Some other MIPS IV CPUs ignore the bit, so the check here - would be too restrictive for them. */ + /* + * All supported MIPS IV CPUs use the XX (CU3) to enable + * and disable the MIPS IV extensions to the MIPS III ISA. + * Some other MIPS IV CPUs ignore the bit, so the check here + * would be too restrictive for them. + */ if (env->CP0_Status & (1U << CP0St_CU3)) { env->hflags |=3D MIPS_HFLAG_COP1X; } --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566216694; cv=none; d=zoho.com; s=zohoarc; b=YXE+tXO9FTnS3mZsNFN8COQaD0b3yAH1RRKm5+RHrgK00Tm2DgGsnFVFgXOix6JNKMsZtHhMzRLXXpsi255lGjXcK24DcM+H+1Bhzo95jjfvd63IfwdQpOec+RUqRnBjgpq0XD07u5LA9qVtvG+KMjHRi0AOXaRWixLU4QyOEjY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566216694; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Pzhmdoox/lQK9eAOMFZRCrRh+sLLT08ldqD2U0V0oHE=; b=oBN3N/9Ma8TAAfBNUimu5JnK6KSyLjCuGb8paOKzchsKJ1NUgdOXF7sRW4TBUkW1ec8BaHg4FSIqn4gDmYmBnMtrMW/7UueC89URe3n4Tw5capsLSZIRKcaB3pmVvPTMZKP+Ih2SA9skltCR9yIg1W9lafBpc2/VA0G3gen4Kro= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566216694195826.7620864453138; Mon, 19 Aug 2019 05:11:34 -0700 (PDT) Received: from localhost ([::1]:48934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgVY-0003iy-IH for importer@patchew.org; Mon, 19 Aug 2019 08:11:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36124) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTc-0001t1-Kl for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTa-0002aI-OY for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:32 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57752 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTa-0002ZL-HB for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 6C1A51A213D; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 0ECBA1A20B2; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:48 +0200 Message-Id: <1566216496-17375-10-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 09/37] target/mips: Style improvements in machine.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/machine.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/mips/machine.c b/target/mips/machine.c index e23b767..06887d8 100644 --- a/target/mips/machine.c +++ b/target/mips/machine.c @@ -25,7 +25,7 @@ static int get_fpr(QEMUFile *f, void *pv, size_t size, int i; fpr_t *v =3D pv; /* Restore entire MSA vector register */ - for (i =3D 0; i < MSA_WRLEN/64; i++) { + for (i =3D 0; i < MSA_WRLEN / 64; i++) { qemu_get_sbe64s(f, &v->wr.d[i]); } return 0; @@ -37,7 +37,7 @@ static int put_fpr(QEMUFile *f, void *pv, size_t size, int i; fpr_t *v =3D pv; /* Save entire MSA vector register */ - for (i =3D 0; i < MSA_WRLEN/64; i++) { + for (i =3D 0; i < MSA_WRLEN / 64; i++) { qemu_put_sbe64s(f, &v->wr.d[i]); } =20 --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217476; cv=none; d=zoho.com; s=zohoarc; b=FF72HI8ANHWRWDU2LEcDGNb8x932Wl/hox+8NxVAqv5hQO2Jb0HeRiDRv3TVvpnAAry8s3mFpy6lTrYKjp7f5bE/g2Dbk1/Lz3HIm46YgiutzC0wZun8Vu62yZ3hMOjsl/fkL+OhE5MQS6Xe5oVLLRPnjZn6RON+SdAWn3z8RJc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217476; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=a21AJ0QhB2LIkNXcphIIvHkLNlyH27ODKE+Pik6jyyk=; b=TfBnMrAx7MZ/gHF5ExH+bcEymook1V/OPQs9ZKbU4XstnBniOjCCFEopExe5p7b1epfGMI67iwihxMeL+Q/vTQKFE1CL/4OC/Qxf7ZYVzaMlabxrqaYu6tGFzkffiV2Xgj74wnV1z4c9IM386djwKGuk6NWwy0VRbEU3G/pa254= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217476990579.2964053058118; Mon, 19 Aug 2019 05:24:36 -0700 (PDT) Received: from localhost ([::1]:49190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgiB-00021O-GF for importer@patchew.org; Mon, 19 Aug 2019 08:24:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36169) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTd-0001tG-Q9 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTb-0002ay-0s for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:33 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57758 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTa-0002ZO-HT for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 72AC51A2061; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 15FB61A20E4; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:49 +0200 Message-Id: <1566216496-17375-11-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 10/37] target/mips: Style improvements in helper.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- target/mips/helper.c | 98 ++++++++++++++++++++++++++++++++----------------= ---- 1 file changed, 60 insertions(+), 38 deletions(-) diff --git a/target/mips/helper.c b/target/mips/helper.c index 6e583d3..d7a2c77 100644 --- a/target/mips/helper.c +++ b/target/mips/helper.c @@ -39,8 +39,8 @@ enum { #if !defined(CONFIG_USER_ONLY) =20 /* no MMU emulation */ -int no_mmu_map_address (CPUMIPSState *env, hwaddr *physical, int *prot, - target_ulong address, int rw, int access_type) +int no_mmu_map_address(CPUMIPSState *env, hwaddr *physical, int *prot, + target_ulong address, int rw, int access_type) { *physical =3D address; *prot =3D PAGE_READ | PAGE_WRITE | PAGE_EXEC; @@ -48,26 +48,28 @@ int no_mmu_map_address (CPUMIPSState *env, hwaddr *phys= ical, int *prot, } =20 /* fixed mapping MMU emulation */ -int fixed_mmu_map_address (CPUMIPSState *env, hwaddr *physical, int *prot, - target_ulong address, int rw, int access_type) +int fixed_mmu_map_address(CPUMIPSState *env, hwaddr *physical, int *prot, + target_ulong address, int rw, int access_type) { if (address <=3D (int32_t)0x7FFFFFFFUL) { - if (!(env->CP0_Status & (1 << CP0St_ERL))) + if (!(env->CP0_Status & (1 << CP0St_ERL))) { *physical =3D address + 0x40000000UL; - else + } else { *physical =3D address; - } else if (address <=3D (int32_t)0xBFFFFFFFUL) + } + } else if (address <=3D (int32_t)0xBFFFFFFFUL) { *physical =3D address & 0x1FFFFFFF; - else + } else { *physical =3D address; + } =20 *prot =3D PAGE_READ | PAGE_WRITE | PAGE_EXEC; return TLBRET_MATCH; } =20 /* MIPS32/MIPS64 R4000-style MMU emulation */ -int r4k_map_address (CPUMIPSState *env, hwaddr *physical, int *prot, - target_ulong address, int rw, int access_type) +int r4k_map_address(CPUMIPSState *env, hwaddr *physical, int *prot, + target_ulong address, int rw, int access_type) { uint16_t ASID =3D env->CP0_EntryHi & env->CP0_EntryHi_ASID_mask; uint32_t MMID =3D env->CP0_MemoryMapID; @@ -105,8 +107,9 @@ int r4k_map_address (CPUMIPSState *env, hwaddr *physica= l, int *prot, if (rw !=3D MMU_DATA_STORE || (n ? tlb->D1 : tlb->D0)) { *physical =3D tlb->PFN[n] | (address & (mask >> 1)); *prot =3D PAGE_READ; - if (n ? tlb->D1 : tlb->D0) + if (n ? tlb->D1 : tlb->D0) { *prot |=3D PAGE_WRITE; + } if (!(n ? tlb->XI1 : tlb->XI0)) { *prot |=3D PAGE_EXEC; } @@ -136,9 +139,10 @@ static int is_seg_am_mapped(unsigned int am, bool eu, = int mmu_idx) int32_t adetlb_mask; =20 switch (mmu_idx) { - case 3 /* ERL */: - /* If EU is set, always unmapped */ + case 3: + /* ERL */ if (eu) { + /* If EU is set, always unmapped */ return 0; } /* fall through */ @@ -210,7 +214,7 @@ static int get_segctl_physical_address(CPUMIPSState *en= v, hwaddr *physical, pa & ~(hwaddr)segmask); } =20 -static int get_physical_address (CPUMIPSState *env, hwaddr *physical, +static int get_physical_address(CPUMIPSState *env, hwaddr *physical, int *prot, target_ulong real_address, int rw, int access_type, int mmu_idx) { @@ -265,7 +269,8 @@ static int get_physical_address (CPUMIPSState *env, hwa= ddr *physical, } else if (address < 0x4000000000000000ULL) { /* xuseg */ if (UX && address <=3D (0x3FFFFFFFFFFFFFFFULL & env->SEGMask)) { - ret =3D env->tlb->map_address(env, physical, prot, real_addres= s, rw, access_type); + ret =3D env->tlb->map_address(env, physical, prot, real_addres= s, rw, + access_type); } else { ret =3D TLBRET_BADADDR; } @@ -273,7 +278,8 @@ static int get_physical_address (CPUMIPSState *env, hwa= ddr *physical, /* xsseg */ if ((supervisor_mode || kernel_mode) && SX && address <=3D (0x7FFFFFFFFFFFFFFFULL & env->SEGMask)) { - ret =3D env->tlb->map_address(env, physical, prot, real_addres= s, rw, access_type); + ret =3D env->tlb->map_address(env, physical, prot, real_addres= s, rw, + access_type); } else { ret =3D TLBRET_BADADDR; } @@ -313,7 +319,8 @@ static int get_physical_address (CPUMIPSState *env, hwa= ddr *physical, /* xkseg */ if (kernel_mode && KX && address <=3D (0xFFFFFFFF7FFFFFFFULL & env->SEGMask)) { - ret =3D env->tlb->map_address(env, physical, prot, real_addres= s, rw, access_type); + ret =3D env->tlb->map_address(env, physical, prot, real_addres= s, rw, + access_type); } else { ret =3D TLBRET_BADADDR; } @@ -669,7 +676,7 @@ static int walk_directory(CPUMIPSState *env, uint64_t *= vaddr, } =20 static bool page_table_walk_refill(CPUMIPSState *env, vaddr address, int r= w, - int mmu_idx) + int mmu_idx) { int gdw =3D (env->CP0_PWSize >> CP0PS_GDW) & 0x3F; int udw =3D (env->CP0_PWSize >> CP0PS_UDW) & 0x3F; @@ -951,7 +958,8 @@ bool mips_cpu_tlb_fill(CPUState *cs, vaddr address, int= size, } =20 #ifndef CONFIG_USER_ONLY -hwaddr cpu_mips_translate_address(CPUMIPSState *env, target_ulong address,= int rw) +hwaddr cpu_mips_translate_address(CPUMIPSState *env, target_ulong address, + int rw) { hwaddr physical; int prot; @@ -1011,7 +1019,7 @@ static const char * const excp_names[EXCP_LAST + 1] = =3D { }; #endif =20 -target_ulong exception_resume_pc (CPUMIPSState *env) +target_ulong exception_resume_pc(CPUMIPSState *env) { target_ulong bad_pc; target_ulong isa_mode; @@ -1019,8 +1027,10 @@ target_ulong exception_resume_pc (CPUMIPSState *env) isa_mode =3D !!(env->hflags & MIPS_HFLAG_M16); bad_pc =3D env->active_tc.PC | isa_mode; if (env->hflags & MIPS_HFLAG_BMASK) { - /* If the exception was raised from a delay slot, come back to - the jump. */ + /* + * If the exception was raised from a delay slot, come back to + * the jump. + */ bad_pc -=3D (env->hflags & MIPS_HFLAG_B16 ? 2 : 4); } =20 @@ -1102,10 +1112,12 @@ void mips_cpu_do_interrupt(CPUState *cs) switch (cs->exception_index) { case EXCP_DSS: env->CP0_Debug |=3D 1 << CP0DB_DSS; - /* Debug single step cannot be raised inside a delay slot and - resume will always occur on the next instruction - (but we assume the pc has always been updated during - code translation). */ + /* + * Debug single step cannot be raised inside a delay slot and + * resume will always occur on the next instruction + * (but we assume the pc has always been updated during + * code translation). + */ env->CP0_DEPC =3D env->active_tc.PC | !!(env->hflags & MIPS_HFLAG_= M16); goto enter_debug_mode; case EXCP_DINT: @@ -1117,7 +1129,8 @@ void mips_cpu_do_interrupt(CPUState *cs) case EXCP_DBp: env->CP0_Debug |=3D 1 << CP0DB_DBp; /* Setup DExcCode - SDBBP instruction */ - env->CP0_Debug =3D (env->CP0_Debug & ~(0x1fULL << CP0DB_DEC)) | 9 = << CP0DB_DEC; + env->CP0_Debug =3D (env->CP0_Debug & ~(0x1fULL << CP0DB_DEC)) | + (9 << CP0DB_DEC); goto set_DEPC; case EXCP_DDBS: env->CP0_Debug |=3D 1 << CP0DB_DDBS; @@ -1138,8 +1151,9 @@ void mips_cpu_do_interrupt(CPUState *cs) env->hflags |=3D MIPS_HFLAG_DM | MIPS_HFLAG_CP0; env->hflags &=3D ~(MIPS_HFLAG_KSU); /* EJTAG probe trap enable is not implemented... */ - if (!(env->CP0_Status & (1 << CP0St_EXL))) + if (!(env->CP0_Status & (1 << CP0St_EXL))) { env->CP0_Cause &=3D ~(1U << CP0Ca_BD); + } env->active_tc.PC =3D env->exception_base + 0x480; set_hflags_for_handler(env); break; @@ -1165,8 +1179,9 @@ void mips_cpu_do_interrupt(CPUState *cs) } env->hflags |=3D MIPS_HFLAG_CP0; env->hflags &=3D ~(MIPS_HFLAG_KSU); - if (!(env->CP0_Status & (1 << CP0St_EXL))) + if (!(env->CP0_Status & (1 << CP0St_EXL))) { env->CP0_Cause &=3D ~(1U << CP0Ca_BD); + } env->active_tc.PC =3D env->exception_base; set_hflags_for_handler(env); break; @@ -1182,12 +1197,16 @@ void mips_cpu_do_interrupt(CPUState *cs) uint32_t pending =3D (env->CP0_Cause & CP0Ca_IP_mask) >> C= P0Ca_IP; =20 if (env->CP0_Config3 & (1 << CP0C3_VEIC)) { - /* For VEIC mode, the external interrupt controller fe= eds - * the vector through the CP0Cause IP lines. */ + /* + * For VEIC mode, the external interrupt controller fe= eds + * the vector through the CP0Cause IP lines. + */ vector =3D pending; } else { - /* Vectored Interrupts - * Mask with Status.IM7-IM0 to get enabled interrupts.= */ + /* + * Vectored Interrupts + * Mask with Status.IM7-IM0 to get enabled interrupts. + */ pending &=3D (env->CP0_Status >> CP0St_IM) & 0xff; /* Find the highest-priority interrupt. */ while (pending >>=3D 1) { @@ -1360,7 +1379,8 @@ void mips_cpu_do_interrupt(CPUState *cs) =20 env->active_tc.PC +=3D offset; set_hflags_for_handler(env); - env->CP0_Cause =3D (env->CP0_Cause & ~(0x1f << CP0Ca_EC)) | (cause= << CP0Ca_EC); + env->CP0_Cause =3D (env->CP0_Cause & ~(0x1f << CP0Ca_EC)) | + (cause << CP0Ca_EC); break; default: abort(); @@ -1396,7 +1416,7 @@ bool mips_cpu_exec_interrupt(CPUState *cs, int interr= upt_request) } =20 #if !defined(CONFIG_USER_ONLY) -void r4k_invalidate_tlb (CPUMIPSState *env, int idx, int use_extra) +void r4k_invalidate_tlb(CPUMIPSState *env, int idx, int use_extra) { CPUState *cs =3D env_cpu(env); r4k_tlb_t *tlb; @@ -1421,9 +1441,11 @@ void r4k_invalidate_tlb (CPUMIPSState *env, int idx,= int use_extra) } =20 if (use_extra && env->tlb->tlb_in_use < MIPS_TLB_MAX) { - /* For tlbwr, we can shadow the discarded entry into - a new (fake) TLB entry, as long as the guest can not - tell that it's there. */ + /* + * For tlbwr, we can shadow the discarded entry into + * a new (fake) TLB entry, as long as the guest can not + * tell that it's there. + */ env->tlb->mmu.r4k.tlb[env->tlb->tlb_in_use] =3D *tlb; env->tlb->tlb_in_use++; return; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218702; cv=none; d=zoho.com; s=zohoarc; b=DeRN5yLbNfhYmWfjPvsOUBcl/l1sfxcRk9cn20NmTPkiJquMkR+GnOLc3VMlTr97PYMv+GD/UNaaM2BmoodzMJIY2VRvU8Ng6D1Y05jdznlfHWbxBgCJl/2t7/h+070azoge6f0pE7PqThbvR3zWlgd6ffwndQHAoLcM5SC3VH4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218702; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Wuz3morqglCXsyFdMwxPY3ZJDc+d13DhvHJg10Sj4l0=; b=MtDHLZLEDwU6J7OcfZeyGcaijbGqP+wuejCGcary/LLRcXOVVagXabNoiD/5K9zh+gKRvOHmK9XIwH45plR3rD23nO2tjTeOuBj2oQMjj6SMLh1mJyPzq4CXhhEW13WQlzoboZ5OqlxT5xN6GvrLUd5NVXPSfh4KpnwQZXIIpSs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218702173245.8888726899943; Mon, 19 Aug 2019 05:45:02 -0700 (PDT) Received: from localhost ([::1]:49430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzh1w-000536-6f for importer@patchew.org; Mon, 19 Aug 2019 08:45:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36413) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTs-0002Fa-AR for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002kj-GY for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:48 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58006 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTl-0002ao-Si for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id E32CC1A21B2; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 2173A1A20C5; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:50 +0200 Message-Id: <1566216496-17375-12-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 11/37] target/mips: Style improvements in translate.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- target/mips/translate.c | 608 ++++++++++++++++++++++++--------------------= ---- 1 file changed, 309 insertions(+), 299 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 3f9f113..fe4a05c 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -43,7 +43,7 @@ #define MIPS_DEBUG_DISAS 0 =20 /* MIPS major opcodes */ -#define MASK_OP_MAJOR(op) (op & (0x3F << 26)) +#define MASK_OP_MAJOR(op) (op & (0x3F << 26)) =20 enum { /* indirect opcode tables */ @@ -153,8 +153,8 @@ enum { }; =20 /* PC-relative address computation / loads */ -#define MASK_OPC_PCREL_TOP2BITS(op) (MASK_OP_MAJOR(op) | (op & (3 << 19))) -#define MASK_OPC_PCREL_TOP5BITS(op) (MASK_OP_MAJOR(op) | (op & (0x1f << 1= 6))) +#define MASK_OPC_PCREL_TOP2BITS(op) (MASK_OP_MAJOR(op) | (op & (3 << 19))) +#define MASK_OPC_PCREL_TOP5BITS(op) (MASK_OP_MAJOR(op) | (op & (0x1f << 16= ))) enum { /* Instructions determined by bits 19 and 20 */ OPC_ADDIUPC =3D OPC_PCREL | (0 << 19), @@ -170,7 +170,7 @@ enum { }; =20 /* MIPS special opcodes */ -#define MASK_SPECIAL(op) MASK_OP_MAJOR(op) | (op & 0x3F) +#define MASK_SPECIAL(op) (MASK_OP_MAJOR(op) | (op & 0x3F)) =20 enum { /* Shifts */ @@ -263,7 +263,7 @@ enum { * R6 Multiply and Divide instructions have the same opcode * and function field as legacy OPC_MULT[U]/OPC_DIV[U] */ -#define MASK_R6_MULDIV(op) (MASK_SPECIAL(op) | (op & (0x7ff))) +#define MASK_R6_MULDIV(op) (MASK_SPECIAL(op) | (op & (0x7ff))) =20 enum { R6_OPC_MUL =3D OPC_MULT | (2 << 6), @@ -295,7 +295,7 @@ enum { }; =20 /* Multiplication variants of the vr54xx. */ -#define MASK_MUL_VR54XX(op) MASK_SPECIAL(op) | (op & (0x1F << 6)) +#define MASK_MUL_VR54XX(op) (MASK_SPECIAL(op) | (op & (0x1F << 6))) =20 enum { OPC_VR54XX_MULS =3D (0x03 << 6) | OPC_MULT, @@ -315,7 +315,7 @@ enum { }; =20 /* REGIMM (rt field) opcodes */ -#define MASK_REGIMM(op) MASK_OP_MAJOR(op) | (op & (0x1F << 16)) +#define MASK_REGIMM(op) (MASK_OP_MAJOR(op) | (op & (0x1F << 16= ))) =20 enum { OPC_BLTZ =3D (0x00 << 16) | OPC_REGIMM, @@ -340,7 +340,7 @@ enum { }; =20 /* Special2 opcodes */ -#define MASK_SPECIAL2(op) MASK_OP_MAJOR(op) | (op & 0x3F) +#define MASK_SPECIAL2(op) (MASK_OP_MAJOR(op) | (op & 0x3F)) =20 enum { /* Multiply & xxx operations */ @@ -372,7 +372,7 @@ enum { }; =20 /* Special3 opcodes */ -#define MASK_SPECIAL3(op) MASK_OP_MAJOR(op) | (op & 0x3F) +#define MASK_SPECIAL3(op) (MASK_OP_MAJOR(op) | (op & 0x3F)) =20 enum { OPC_EXT =3D 0x00 | OPC_SPECIAL3, @@ -462,7 +462,7 @@ enum { }; =20 /* BSHFL opcodes */ -#define MASK_BSHFL(op) MASK_SPECIAL3(op) | (op & (0x1F << 6)) +#define MASK_BSHFL(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) =20 enum { OPC_WSBH =3D (0x02 << 6) | OPC_BSHFL, @@ -476,7 +476,7 @@ enum { }; =20 /* DBSHFL opcodes */ -#define MASK_DBSHFL(op) MASK_SPECIAL3(op) | (op & (0x1F << 6)) +#define MASK_DBSHFL(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) =20 enum { OPC_DSBH =3D (0x02 << 6) | OPC_DBSHFL, @@ -498,7 +498,7 @@ enum { OPC_BPOSGE64 =3D (0x1D << 16) | OPC_REGIMM, }; =20 -#define MASK_LX(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_LX(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) /* MIPS DSP Load */ enum { OPC_LBUX =3D (0x06 << 6) | OPC_LX_DSP, @@ -507,7 +507,7 @@ enum { OPC_LDX =3D (0x08 << 6) | OPC_LX_DSP, }; =20 -#define MASK_ADDU_QB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_ADDU_QB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Arithmetic Sub-class */ OPC_ADDQ_PH =3D (0x0A << 6) | OPC_ADDU_QB_DSP, @@ -538,7 +538,7 @@ enum { }; =20 #define OPC_ADDUH_QB_DSP OPC_MULT_G_2E -#define MASK_ADDUH_QB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_ADDUH_QB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Arithmetic Sub-class */ OPC_ADDUH_QB =3D (0x00 << 6) | OPC_ADDUH_QB_DSP, @@ -560,7 +560,7 @@ enum { OPC_MULQ_RS_W =3D (0x17 << 6) | OPC_ADDUH_QB_DSP, }; =20 -#define MASK_ABSQ_S_PH(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_ABSQ_S_PH(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Arithmetic Sub-class */ OPC_ABSQ_S_QB =3D (0x01 << 6) | OPC_ABSQ_S_PH_DSP, @@ -584,7 +584,7 @@ enum { OPC_REPLV_PH =3D (0x0B << 6) | OPC_ABSQ_S_PH_DSP, }; =20 -#define MASK_CMPU_EQ_QB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_CMPU_EQ_QB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Arithmetic Sub-class */ OPC_PRECR_QB_PH =3D (0x0D << 6) | OPC_CMPU_EQ_QB_DSP, @@ -612,7 +612,7 @@ enum { OPC_PACKRL_PH =3D (0x0E << 6) | OPC_CMPU_EQ_QB_DSP, }; =20 -#define MASK_SHLL_QB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_SHLL_QB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP GPR-Based Shift Sub-class */ OPC_SHLL_QB =3D (0x00 << 6) | OPC_SHLL_QB_DSP, @@ -639,7 +639,7 @@ enum { OPC_SHRAV_R_W =3D (0x17 << 6) | OPC_SHLL_QB_DSP, }; =20 -#define MASK_DPA_W_PH(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_DPA_W_PH(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Multiply Sub-class insns */ OPC_DPAU_H_QBL =3D (0x03 << 6) | OPC_DPA_W_PH_DSP, @@ -666,13 +666,13 @@ enum { OPC_MULSA_W_PH =3D (0x02 << 6) | OPC_DPA_W_PH_DSP, }; =20 -#define MASK_INSV(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_INSV(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* DSP Bit/Manipulation Sub-class */ OPC_INSV =3D (0x00 << 6) | OPC_INSV_DSP, }; =20 -#define MASK_APPEND(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_APPEND(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Append Sub-class */ OPC_APPEND =3D (0x00 << 6) | OPC_APPEND_DSP, @@ -680,7 +680,7 @@ enum { OPC_BALIGN =3D (0x10 << 6) | OPC_APPEND_DSP, }; =20 -#define MASK_EXTR_W(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_EXTR_W(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Accumulator and DSPControl Access Sub-class */ OPC_EXTR_W =3D (0x00 << 6) | OPC_EXTR_W_DSP, @@ -702,7 +702,7 @@ enum { OPC_RDDSP =3D (0x12 << 6) | OPC_EXTR_W_DSP, }; =20 -#define MASK_ABSQ_S_QH(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_ABSQ_S_QH(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Arithmetic Sub-class */ OPC_PRECEQ_L_PWL =3D (0x14 << 6) | OPC_ABSQ_S_QH_DSP, @@ -731,7 +731,7 @@ enum { OPC_REPLV_QH =3D (0x0B << 6) | OPC_ABSQ_S_QH_DSP, }; =20 -#define MASK_ADDU_OB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_ADDU_OB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Multiply Sub-class insns */ OPC_MULEQ_S_PW_QHL =3D (0x1C << 6) | OPC_ADDU_OB_DSP, @@ -763,7 +763,7 @@ enum { OPC_ADDUH_R_OB =3D (0x1A << 6) | OPC_ADDU_OB_DSP, }; =20 -#define MASK_CMPU_EQ_OB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_CMPU_EQ_OB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* DSP Compare-Pick Sub-class */ OPC_CMP_EQ_PW =3D (0x10 << 6) | OPC_CMPU_EQ_OB_DSP, @@ -796,7 +796,7 @@ enum { OPC_PRECRQU_S_OB_QH =3D (0x0F << 6) | OPC_CMPU_EQ_OB_DSP, }; =20 -#define MASK_DAPPEND(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_DAPPEND(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* DSP Append Sub-class */ OPC_DAPPEND =3D (0x00 << 6) | OPC_DAPPEND_DSP, @@ -805,7 +805,7 @@ enum { OPC_DBALIGN =3D (0x10 << 6) | OPC_DAPPEND_DSP, }; =20 -#define MASK_DEXTR_W(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_DEXTR_W(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Accumulator and DSPControl Access Sub-class */ OPC_DMTHLIP =3D (0x1F << 6) | OPC_DEXTR_W_DSP, @@ -831,13 +831,13 @@ enum { OPC_DSHILOV =3D (0x1B << 6) | OPC_DEXTR_W_DSP, }; =20 -#define MASK_DINSV(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_DINSV(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* DSP Bit/Manipulation Sub-class */ OPC_DINSV =3D (0x00 << 6) | OPC_DINSV_DSP, }; =20 -#define MASK_DPAQ_W_QH(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_DPAQ_W_QH(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP Multiply Sub-class insns */ OPC_DMADD =3D (0x19 << 6) | OPC_DPAQ_W_QH_DSP, @@ -868,7 +868,7 @@ enum { OPC_MULSAQ_S_W_QH =3D (0x06 << 6) | OPC_DPAQ_W_QH_DSP, }; =20 -#define MASK_SHLL_OB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6))) +#define MASK_SHLL_OB(op) (MASK_SPECIAL3(op) | (op & (0x1F << 6)= )) enum { /* MIPS DSP GPR-Based Shift Sub-class */ OPC_SHLL_PW =3D (0x10 << 6) | OPC_SHLL_OB_DSP, @@ -900,7 +900,7 @@ enum { }; =20 /* Coprocessor 0 (rs field) */ -#define MASK_CP0(op) MASK_OP_MAJOR(op) | (op & (0x1F << 21)) +#define MASK_CP0(op) (MASK_OP_MAJOR(op) | (op & (0x1F << 21= ))) =20 enum { OPC_MFC0 =3D (0x00 << 21) | OPC_CP0, @@ -933,7 +933,7 @@ enum { }; =20 /* MFMC0 opcodes */ -#define MASK_MFMC0(op) MASK_CP0(op) | (op & 0xFFFF) +#define MASK_MFMC0(op) (MASK_CP0(op) | (op & 0xFFFF)) =20 enum { OPC_DMT =3D 0x01 | (0 << 5) | (0x0F << 6) | (0x01 << 11) | OPC_MF= MC0, @@ -947,7 +947,7 @@ enum { }; =20 /* Coprocessor 0 (with rs =3D=3D C0) */ -#define MASK_C0(op) MASK_CP0(op) | (op & 0x3F) +#define MASK_C0(op) (MASK_CP0(op) | (op & 0x3F)) =20 enum { OPC_TLBR =3D 0x01 | OPC_C0, @@ -963,7 +963,7 @@ enum { }; =20 /* Coprocessor 1 (rs field) */ -#define MASK_CP1(op) MASK_OP_MAJOR(op) | (op & (0x1F << 21)) +#define MASK_CP1(op) (MASK_OP_MAJOR(op) | (op & (0x1F << 21= ))) =20 /* Values for the fmt field in FP instructions */ enum { @@ -1011,8 +1011,8 @@ enum { OPC_BNZ_D =3D (0x1F << 21) | OPC_CP1, }; =20 -#define MASK_CP1_FUNC(op) MASK_CP1(op) | (op & 0x3F) -#define MASK_BC1(op) MASK_CP1(op) | (op & (0x3 << 16)) +#define MASK_CP1_FUNC(op) (MASK_CP1(op) | (op & 0x3F)) +#define MASK_BC1(op) (MASK_CP1(op) | (op & (0x3 << 16))) =20 enum { OPC_BC1F =3D (0x00 << 16) | OPC_BC1, @@ -1031,7 +1031,7 @@ enum { OPC_BC1TANY4 =3D (0x01 << 16) | OPC_BC1ANY4, }; =20 -#define MASK_CP2(op) MASK_OP_MAJOR(op) | (op & (0x1F << 21)) +#define MASK_CP2(op) (MASK_OP_MAJOR(op) | (op & (0x1F << 21= ))) =20 enum { OPC_MFC2 =3D (0x00 << 21) | OPC_CP2, @@ -1047,35 +1047,35 @@ enum { OPC_BC2NEZ =3D (0x0D << 21) | OPC_CP2, }; =20 -#define MASK_LMI(op) (MASK_OP_MAJOR(op) | (op & (0x1F << 21)) | (op & 0x1= F)) +#define MASK_LMI(op) (MASK_OP_MAJOR(op) | (op & (0x1F << 21)) | (op & 0= x1F)) =20 enum { - OPC_PADDSH =3D (24 << 21) | (0x00) | OPC_CP2, - OPC_PADDUSH =3D (25 << 21) | (0x00) | OPC_CP2, - OPC_PADDH =3D (26 << 21) | (0x00) | OPC_CP2, - OPC_PADDW =3D (27 << 21) | (0x00) | OPC_CP2, - OPC_PADDSB =3D (28 << 21) | (0x00) | OPC_CP2, - OPC_PADDUSB =3D (29 << 21) | (0x00) | OPC_CP2, - OPC_PADDB =3D (30 << 21) | (0x00) | OPC_CP2, - OPC_PADDD =3D (31 << 21) | (0x00) | OPC_CP2, - - OPC_PSUBSH =3D (24 << 21) | (0x01) | OPC_CP2, - OPC_PSUBUSH =3D (25 << 21) | (0x01) | OPC_CP2, - OPC_PSUBH =3D (26 << 21) | (0x01) | OPC_CP2, - OPC_PSUBW =3D (27 << 21) | (0x01) | OPC_CP2, - OPC_PSUBSB =3D (28 << 21) | (0x01) | OPC_CP2, - OPC_PSUBUSB =3D (29 << 21) | (0x01) | OPC_CP2, - OPC_PSUBB =3D (30 << 21) | (0x01) | OPC_CP2, - OPC_PSUBD =3D (31 << 21) | (0x01) | OPC_CP2, - - OPC_PSHUFH =3D (24 << 21) | (0x02) | OPC_CP2, - OPC_PACKSSWH =3D (25 << 21) | (0x02) | OPC_CP2, - OPC_PACKSSHB =3D (26 << 21) | (0x02) | OPC_CP2, - OPC_PACKUSHB =3D (27 << 21) | (0x02) | OPC_CP2, - OPC_XOR_CP2 =3D (28 << 21) | (0x02) | OPC_CP2, - OPC_NOR_CP2 =3D (29 << 21) | (0x02) | OPC_CP2, - OPC_AND_CP2 =3D (30 << 21) | (0x02) | OPC_CP2, - OPC_PANDN =3D (31 << 21) | (0x02) | OPC_CP2, + OPC_PADDSH =3D (24 << 21) | (0x00) | OPC_CP2, + OPC_PADDUSH =3D (25 << 21) | (0x00) | OPC_CP2, + OPC_PADDH =3D (26 << 21) | (0x00) | OPC_CP2, + OPC_PADDW =3D (27 << 21) | (0x00) | OPC_CP2, + OPC_PADDSB =3D (28 << 21) | (0x00) | OPC_CP2, + OPC_PADDUSB =3D (29 << 21) | (0x00) | OPC_CP2, + OPC_PADDB =3D (30 << 21) | (0x00) | OPC_CP2, + OPC_PADDD =3D (31 << 21) | (0x00) | OPC_CP2, + + OPC_PSUBSH =3D (24 << 21) | (0x01) | OPC_CP2, + OPC_PSUBUSH =3D (25 << 21) | (0x01) | OPC_CP2, + OPC_PSUBH =3D (26 << 21) | (0x01) | OPC_CP2, + OPC_PSUBW =3D (27 << 21) | (0x01) | OPC_CP2, + OPC_PSUBSB =3D (28 << 21) | (0x01) | OPC_CP2, + OPC_PSUBUSB =3D (29 << 21) | (0x01) | OPC_CP2, + OPC_PSUBB =3D (30 << 21) | (0x01) | OPC_CP2, + OPC_PSUBD =3D (31 << 21) | (0x01) | OPC_CP2, + + OPC_PSHUFH =3D (24 << 21) | (0x02) | OPC_CP2, + OPC_PACKSSWH =3D (25 << 21) | (0x02) | OPC_CP2, + OPC_PACKSSHB =3D (26 << 21) | (0x02) | OPC_CP2, + OPC_PACKUSHB =3D (27 << 21) | (0x02) | OPC_CP2, + OPC_XOR_CP2 =3D (28 << 21) | (0x02) | OPC_CP2, + OPC_NOR_CP2 =3D (29 << 21) | (0x02) | OPC_CP2, + OPC_AND_CP2 =3D (30 << 21) | (0x02) | OPC_CP2, + OPC_PANDN =3D (31 << 21) | (0x02) | OPC_CP2, =20 OPC_PUNPCKLHW =3D (24 << 21) | (0x03) | OPC_CP2, OPC_PUNPCKHHW =3D (25 << 21) | (0x03) | OPC_CP2, @@ -1144,33 +1144,33 @@ enum { }; =20 =20 -#define MASK_CP3(op) MASK_OP_MAJOR(op) | (op & 0x3F) +#define MASK_CP3(op) (MASK_OP_MAJOR(op) | (op & 0x3F)) =20 enum { - OPC_LWXC1 =3D 0x00 | OPC_CP3, - OPC_LDXC1 =3D 0x01 | OPC_CP3, - OPC_LUXC1 =3D 0x05 | OPC_CP3, - OPC_SWXC1 =3D 0x08 | OPC_CP3, - OPC_SDXC1 =3D 0x09 | OPC_CP3, - OPC_SUXC1 =3D 0x0D | OPC_CP3, - OPC_PREFX =3D 0x0F | OPC_CP3, - OPC_ALNV_PS =3D 0x1E | OPC_CP3, - OPC_MADD_S =3D 0x20 | OPC_CP3, - OPC_MADD_D =3D 0x21 | OPC_CP3, - OPC_MADD_PS =3D 0x26 | OPC_CP3, - OPC_MSUB_S =3D 0x28 | OPC_CP3, - OPC_MSUB_D =3D 0x29 | OPC_CP3, - OPC_MSUB_PS =3D 0x2E | OPC_CP3, - OPC_NMADD_S =3D 0x30 | OPC_CP3, - OPC_NMADD_D =3D 0x31 | OPC_CP3, - OPC_NMADD_PS=3D 0x36 | OPC_CP3, - OPC_NMSUB_S =3D 0x38 | OPC_CP3, - OPC_NMSUB_D =3D 0x39 | OPC_CP3, - OPC_NMSUB_PS=3D 0x3E | OPC_CP3, + OPC_LWXC1 =3D 0x00 | OPC_CP3, + OPC_LDXC1 =3D 0x01 | OPC_CP3, + OPC_LUXC1 =3D 0x05 | OPC_CP3, + OPC_SWXC1 =3D 0x08 | OPC_CP3, + OPC_SDXC1 =3D 0x09 | OPC_CP3, + OPC_SUXC1 =3D 0x0D | OPC_CP3, + OPC_PREFX =3D 0x0F | OPC_CP3, + OPC_ALNV_PS =3D 0x1E | OPC_CP3, + OPC_MADD_S =3D 0x20 | OPC_CP3, + OPC_MADD_D =3D 0x21 | OPC_CP3, + OPC_MADD_PS =3D 0x26 | OPC_CP3, + OPC_MSUB_S =3D 0x28 | OPC_CP3, + OPC_MSUB_D =3D 0x29 | OPC_CP3, + OPC_MSUB_PS =3D 0x2E | OPC_CP3, + OPC_NMADD_S =3D 0x30 | OPC_CP3, + OPC_NMADD_D =3D 0x31 | OPC_CP3, + OPC_NMADD_PS =3D 0x36 | OPC_CP3, + OPC_NMSUB_S =3D 0x38 | OPC_CP3, + OPC_NMSUB_D =3D 0x39 | OPC_CP3, + OPC_NMSUB_PS =3D 0x3E | OPC_CP3, }; =20 /* MSA Opcodes */ -#define MASK_MSA_MINOR(op) (MASK_OP_MAJOR(op) | (op & 0x3F)) +#define MASK_MSA_MINOR(op) (MASK_OP_MAJOR(op) | (op & 0x3F)) enum { OPC_MSA_I8_00 =3D 0x00 | OPC_MSA, OPC_MSA_I8_01 =3D 0x01 | OPC_MSA, @@ -1195,14 +1195,14 @@ enum { OPC_MSA_VEC =3D 0x1E | OPC_MSA, =20 /* MI10 instruction */ - OPC_LD_B =3D (0x20) | OPC_MSA, - OPC_LD_H =3D (0x21) | OPC_MSA, - OPC_LD_W =3D (0x22) | OPC_MSA, - OPC_LD_D =3D (0x23) | OPC_MSA, - OPC_ST_B =3D (0x24) | OPC_MSA, - OPC_ST_H =3D (0x25) | OPC_MSA, - OPC_ST_W =3D (0x26) | OPC_MSA, - OPC_ST_D =3D (0x27) | OPC_MSA, + OPC_LD_B =3D (0x20) | OPC_MSA, + OPC_LD_H =3D (0x21) | OPC_MSA, + OPC_LD_W =3D (0x22) | OPC_MSA, + OPC_LD_D =3D (0x23) | OPC_MSA, + OPC_ST_B =3D (0x24) | OPC_MSA, + OPC_ST_H =3D (0x25) | OPC_MSA, + OPC_ST_W =3D (0x26) | OPC_MSA, + OPC_ST_D =3D (0x27) | OPC_MSA, }; =20 enum { @@ -1221,34 +1221,34 @@ enum { OPC_LDI_df =3D (0x6 << 23) | OPC_MSA_I5_07, =20 /* I8 instruction */ - OPC_ANDI_B =3D (0x0 << 24) | OPC_MSA_I8_00, - OPC_BMNZI_B =3D (0x0 << 24) | OPC_MSA_I8_01, - OPC_SHF_B =3D (0x0 << 24) | OPC_MSA_I8_02, - OPC_ORI_B =3D (0x1 << 24) | OPC_MSA_I8_00, - OPC_BMZI_B =3D (0x1 << 24) | OPC_MSA_I8_01, - OPC_SHF_H =3D (0x1 << 24) | OPC_MSA_I8_02, - OPC_NORI_B =3D (0x2 << 24) | OPC_MSA_I8_00, - OPC_BSELI_B =3D (0x2 << 24) | OPC_MSA_I8_01, - OPC_SHF_W =3D (0x2 << 24) | OPC_MSA_I8_02, - OPC_XORI_B =3D (0x3 << 24) | OPC_MSA_I8_00, + OPC_ANDI_B =3D (0x0 << 24) | OPC_MSA_I8_00, + OPC_BMNZI_B =3D (0x0 << 24) | OPC_MSA_I8_01, + OPC_SHF_B =3D (0x0 << 24) | OPC_MSA_I8_02, + OPC_ORI_B =3D (0x1 << 24) | OPC_MSA_I8_00, + OPC_BMZI_B =3D (0x1 << 24) | OPC_MSA_I8_01, + OPC_SHF_H =3D (0x1 << 24) | OPC_MSA_I8_02, + OPC_NORI_B =3D (0x2 << 24) | OPC_MSA_I8_00, + OPC_BSELI_B =3D (0x2 << 24) | OPC_MSA_I8_01, + OPC_SHF_W =3D (0x2 << 24) | OPC_MSA_I8_02, + OPC_XORI_B =3D (0x3 << 24) | OPC_MSA_I8_00, =20 /* VEC/2R/2RF instruction */ - OPC_AND_V =3D (0x00 << 21) | OPC_MSA_VEC, - OPC_OR_V =3D (0x01 << 21) | OPC_MSA_VEC, - OPC_NOR_V =3D (0x02 << 21) | OPC_MSA_VEC, - OPC_XOR_V =3D (0x03 << 21) | OPC_MSA_VEC, - OPC_BMNZ_V =3D (0x04 << 21) | OPC_MSA_VEC, - OPC_BMZ_V =3D (0x05 << 21) | OPC_MSA_VEC, - OPC_BSEL_V =3D (0x06 << 21) | OPC_MSA_VEC, + OPC_AND_V =3D (0x00 << 21) | OPC_MSA_VEC, + OPC_OR_V =3D (0x01 << 21) | OPC_MSA_VEC, + OPC_NOR_V =3D (0x02 << 21) | OPC_MSA_VEC, + OPC_XOR_V =3D (0x03 << 21) | OPC_MSA_VEC, + OPC_BMNZ_V =3D (0x04 << 21) | OPC_MSA_VEC, + OPC_BMZ_V =3D (0x05 << 21) | OPC_MSA_VEC, + OPC_BSEL_V =3D (0x06 << 21) | OPC_MSA_VEC, =20 OPC_MSA_2R =3D (0x18 << 21) | OPC_MSA_VEC, OPC_MSA_2RF =3D (0x19 << 21) | OPC_MSA_VEC, =20 /* 2R instruction df(bits 17..16) =3D _b, _h, _w, _d */ - OPC_FILL_df =3D (0x00 << 18) | OPC_MSA_2R, - OPC_PCNT_df =3D (0x01 << 18) | OPC_MSA_2R, - OPC_NLOC_df =3D (0x02 << 18) | OPC_MSA_2R, - OPC_NLZC_df =3D (0x03 << 18) | OPC_MSA_2R, + OPC_FILL_df =3D (0x00 << 18) | OPC_MSA_2R, + OPC_PCNT_df =3D (0x01 << 18) | OPC_MSA_2R, + OPC_NLOC_df =3D (0x02 << 18) | OPC_MSA_2R, + OPC_NLZC_df =3D (0x03 << 18) | OPC_MSA_2R, =20 /* 2RF instruction df(bit 16) =3D _w, _d */ OPC_FCLASS_df =3D (0x00 << 17) | OPC_MSA_2RF, @@ -2478,43 +2478,43 @@ static TCGv mxu_CR; TCGv_i32 helper_tmp =3D tcg_const_i32(arg); \ gen_helper_##name(cpu_env, helper_tmp); \ tcg_temp_free_i32(helper_tmp); \ - } while(0) + } while (0) =20 #define gen_helper_0e1i(name, arg1, arg2) do { \ TCGv_i32 helper_tmp =3D tcg_const_i32(arg2); \ gen_helper_##name(cpu_env, arg1, helper_tmp); \ tcg_temp_free_i32(helper_tmp); \ - } while(0) + } while (0) =20 #define gen_helper_1e0i(name, ret, arg1) do { \ TCGv_i32 helper_tmp =3D tcg_const_i32(arg1); \ gen_helper_##name(ret, cpu_env, helper_tmp); \ tcg_temp_free_i32(helper_tmp); \ - } while(0) + } while (0) =20 #define gen_helper_1e1i(name, ret, arg1, arg2) do { \ TCGv_i32 helper_tmp =3D tcg_const_i32(arg2); \ gen_helper_##name(ret, cpu_env, arg1, helper_tmp); \ tcg_temp_free_i32(helper_tmp); \ - } while(0) + } while (0) =20 #define gen_helper_0e2i(name, arg1, arg2, arg3) do { \ TCGv_i32 helper_tmp =3D tcg_const_i32(arg3); \ gen_helper_##name(cpu_env, arg1, arg2, helper_tmp); \ tcg_temp_free_i32(helper_tmp); \ - } while(0) + } while (0) =20 #define gen_helper_1e2i(name, ret, arg1, arg2, arg3) do { \ TCGv_i32 helper_tmp =3D tcg_const_i32(arg3); \ gen_helper_##name(ret, cpu_env, arg1, arg2, helper_tmp); \ tcg_temp_free_i32(helper_tmp); \ - } while(0) + } while (0) =20 #define gen_helper_0e3i(name, arg1, arg2, arg3, arg4) do { \ TCGv_i32 helper_tmp =3D tcg_const_i32(arg4); \ gen_helper_##name(cpu_env, arg1, arg2, arg3, helper_tmp); \ tcg_temp_free_i32(helper_tmp); \ - } while(0) + } while (0) =20 typedef struct DisasContext { DisasContextBase base; @@ -2666,7 +2666,7 @@ static inline void gen_load_srsgpr(int from, int to) tcg_temp_free(t0); } =20 -static inline void gen_store_srsgpr (int from, int to) +static inline void gen_store_srsgpr(int from, int to) { if (to !=3D 0) { TCGv t0 =3D tcg_temp_new(); @@ -3364,28 +3364,28 @@ FOP_CONDNS(s, FMT_S, 32, gen_store_fpr32(ctx, fp0, = fd)) =20 /* load/store instructions. */ #ifdef CONFIG_USER_ONLY -#define OP_LD_ATOMIC(insn,fname) = \ +#define OP_LD_ATOMIC(insn, fname) = \ static inline void op_ld_##insn(TCGv ret, TCGv arg1, int mem_idx, = \ DisasContext *ctx) = \ { = \ TCGv t0 =3D tcg_temp_new(); = \ tcg_gen_mov_tl(t0, arg1); = \ tcg_gen_qemu_##fname(ret, arg1, ctx->mem_idx); = \ - tcg_gen_st_tl(t0, cpu_env, offsetof(CPUMIPSState, lladdr)); = \ - tcg_gen_st_tl(ret, cpu_env, offsetof(CPUMIPSState, llval)); = \ + tcg_gen_st_tl(t0, cpu_env, offsetof(CPUMIPSState, lladdr)); = \ + tcg_gen_st_tl(ret, cpu_env, offsetof(CPUMIPSState, llval)); = \ tcg_temp_free(t0); = \ } #else -#define OP_LD_ATOMIC(insn,fname) = \ +#define OP_LD_ATOMIC(insn, fname) = \ static inline void op_ld_##insn(TCGv ret, TCGv arg1, int mem_idx, = \ DisasContext *ctx) = \ { = \ gen_helper_1e1i(insn, ret, arg1, mem_idx); = \ } #endif -OP_LD_ATOMIC(ll,ld32s); +OP_LD_ATOMIC(ll, ld32s); #if defined(TARGET_MIPS64) -OP_LD_ATOMIC(lld,ld64); +OP_LD_ATOMIC(lld, ld64); #endif #undef OP_LD_ATOMIC =20 @@ -9794,7 +9794,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) case 7: CP0_CHECK(ctx->kscrexist & (1 << sel)); tcg_gen_st_tl(arg, cpu_env, - offsetof(CPUMIPSState, CP0_KScratch[sel-2])); + offsetof(CPUMIPSState, CP0_KScratch[sel - 2])); register_name =3D "KScratch"; break; default: @@ -9960,84 +9960,86 @@ static void gen_mftr(CPUMIPSState *env, DisasContex= t *ctx, int rt, int rd, default: gen_mfc0(ctx, t0, rt, sel); } - } else switch (sel) { - /* GPR registers. */ - case 0: - gen_helper_1e0i(mftgpr, t0, rt); - break; - /* Auxiliary CPU registers */ - case 1: - switch (rt) { + } else { + switch (sel) { + /* GPR registers. */ case 0: - gen_helper_1e0i(mftlo, t0, 0); + gen_helper_1e0i(mftgpr, t0, rt); break; + /* Auxiliary CPU registers */ case 1: - gen_helper_1e0i(mfthi, t0, 0); + switch (rt) { + case 0: + gen_helper_1e0i(mftlo, t0, 0); + break; + case 1: + gen_helper_1e0i(mfthi, t0, 0); + break; + case 2: + gen_helper_1e0i(mftacx, t0, 0); + break; + case 4: + gen_helper_1e0i(mftlo, t0, 1); + break; + case 5: + gen_helper_1e0i(mfthi, t0, 1); + break; + case 6: + gen_helper_1e0i(mftacx, t0, 1); + break; + case 8: + gen_helper_1e0i(mftlo, t0, 2); + break; + case 9: + gen_helper_1e0i(mfthi, t0, 2); + break; + case 10: + gen_helper_1e0i(mftacx, t0, 2); + break; + case 12: + gen_helper_1e0i(mftlo, t0, 3); + break; + case 13: + gen_helper_1e0i(mfthi, t0, 3); + break; + case 14: + gen_helper_1e0i(mftacx, t0, 3); + break; + case 16: + gen_helper_mftdsp(t0, cpu_env); + break; + default: + goto die; + } break; + /* Floating point (COP1). */ case 2: - gen_helper_1e0i(mftacx, t0, 0); + /* XXX: For now we support only a single FPU context. */ + if (h =3D=3D 0) { + TCGv_i32 fp0 =3D tcg_temp_new_i32(); + + gen_load_fpr32(ctx, fp0, rt); + tcg_gen_ext_i32_tl(t0, fp0); + tcg_temp_free_i32(fp0); + } else { + TCGv_i32 fp0 =3D tcg_temp_new_i32(); + + gen_load_fpr32h(ctx, fp0, rt); + tcg_gen_ext_i32_tl(t0, fp0); + tcg_temp_free_i32(fp0); + } break; - case 4: - gen_helper_1e0i(mftlo, t0, 1); + case 3: + /* XXX: For now we support only a single FPU context. */ + gen_helper_1e0i(cfc1, t0, rt); break; + /* COP2: Not implemented. */ + case 4: case 5: - gen_helper_1e0i(mfthi, t0, 1); - break; - case 6: - gen_helper_1e0i(mftacx, t0, 1); - break; - case 8: - gen_helper_1e0i(mftlo, t0, 2); - break; - case 9: - gen_helper_1e0i(mfthi, t0, 2); - break; - case 10: - gen_helper_1e0i(mftacx, t0, 2); - break; - case 12: - gen_helper_1e0i(mftlo, t0, 3); - break; - case 13: - gen_helper_1e0i(mfthi, t0, 3); - break; - case 14: - gen_helper_1e0i(mftacx, t0, 3); - break; - case 16: - gen_helper_mftdsp(t0, cpu_env); - break; + /* fall through */ default: goto die; } - break; - /* Floating point (COP1). */ - case 2: - /* XXX: For now we support only a single FPU context. */ - if (h =3D=3D 0) { - TCGv_i32 fp0 =3D tcg_temp_new_i32(); - - gen_load_fpr32(ctx, fp0, rt); - tcg_gen_ext_i32_tl(t0, fp0); - tcg_temp_free_i32(fp0); - } else { - TCGv_i32 fp0 =3D tcg_temp_new_i32(); - - gen_load_fpr32h(ctx, fp0, rt); - tcg_gen_ext_i32_tl(t0, fp0); - tcg_temp_free_i32(fp0); - } - break; - case 3: - /* XXX: For now we support only a single FPU context. */ - gen_helper_1e0i(cfc1, t0, rt); - break; - /* COP2: Not implemented. */ - case 4: - case 5: - /* fall through */ - default: - goto die; } trace_mips_translate_tr("mftr", rt, u, sel, h); gen_store_gpr(t0, rd); @@ -10162,91 +10164,93 @@ static void gen_mttr(CPUMIPSState *env, DisasCont= ext *ctx, int rd, int rt, default: gen_mtc0(ctx, t0, rd, sel); } - } else switch (sel) { - /* GPR registers. */ - case 0: - gen_helper_0e1i(mttgpr, t0, rd); - break; - /* Auxiliary CPU registers */ - case 1: - switch (rd) { + } else { + switch (sel) { + /* GPR registers. */ case 0: - gen_helper_0e1i(mttlo, t0, 0); + gen_helper_0e1i(mttgpr, t0, rd); break; + /* Auxiliary CPU registers */ case 1: - gen_helper_0e1i(mtthi, t0, 0); + switch (rd) { + case 0: + gen_helper_0e1i(mttlo, t0, 0); + break; + case 1: + gen_helper_0e1i(mtthi, t0, 0); + break; + case 2: + gen_helper_0e1i(mttacx, t0, 0); + break; + case 4: + gen_helper_0e1i(mttlo, t0, 1); + break; + case 5: + gen_helper_0e1i(mtthi, t0, 1); + break; + case 6: + gen_helper_0e1i(mttacx, t0, 1); + break; + case 8: + gen_helper_0e1i(mttlo, t0, 2); + break; + case 9: + gen_helper_0e1i(mtthi, t0, 2); + break; + case 10: + gen_helper_0e1i(mttacx, t0, 2); + break; + case 12: + gen_helper_0e1i(mttlo, t0, 3); + break; + case 13: + gen_helper_0e1i(mtthi, t0, 3); + break; + case 14: + gen_helper_0e1i(mttacx, t0, 3); + break; + case 16: + gen_helper_mttdsp(cpu_env, t0); + break; + default: + goto die; + } break; + /* Floating point (COP1). */ case 2: - gen_helper_0e1i(mttacx, t0, 0); + /* XXX: For now we support only a single FPU context. */ + if (h =3D=3D 0) { + TCGv_i32 fp0 =3D tcg_temp_new_i32(); + + tcg_gen_trunc_tl_i32(fp0, t0); + gen_store_fpr32(ctx, fp0, rd); + tcg_temp_free_i32(fp0); + } else { + TCGv_i32 fp0 =3D tcg_temp_new_i32(); + + tcg_gen_trunc_tl_i32(fp0, t0); + gen_store_fpr32h(ctx, fp0, rd); + tcg_temp_free_i32(fp0); + } break; - case 4: - gen_helper_0e1i(mttlo, t0, 1); + case 3: + /* XXX: For now we support only a single FPU context. */ + { + TCGv_i32 fs_tmp =3D tcg_const_i32(rd); + + gen_helper_0e2i(ctc1, t0, fs_tmp, rt); + tcg_temp_free_i32(fs_tmp); + } + /* Stop translation as we may have changed hflags */ + ctx->base.is_jmp =3D DISAS_STOP; break; + /* COP2: Not implemented. */ + case 4: case 5: - gen_helper_0e1i(mtthi, t0, 1); - break; - case 6: - gen_helper_0e1i(mttacx, t0, 1); - break; - case 8: - gen_helper_0e1i(mttlo, t0, 2); - break; - case 9: - gen_helper_0e1i(mtthi, t0, 2); - break; - case 10: - gen_helper_0e1i(mttacx, t0, 2); - break; - case 12: - gen_helper_0e1i(mttlo, t0, 3); - break; - case 13: - gen_helper_0e1i(mtthi, t0, 3); - break; - case 14: - gen_helper_0e1i(mttacx, t0, 3); - break; - case 16: - gen_helper_mttdsp(cpu_env, t0); - break; + /* fall through */ default: goto die; } - break; - /* Floating point (COP1). */ - case 2: - /* XXX: For now we support only a single FPU context. */ - if (h =3D=3D 0) { - TCGv_i32 fp0 =3D tcg_temp_new_i32(); - - tcg_gen_trunc_tl_i32(fp0, t0); - gen_store_fpr32(ctx, fp0, rd); - tcg_temp_free_i32(fp0); - } else { - TCGv_i32 fp0 =3D tcg_temp_new_i32(); - - tcg_gen_trunc_tl_i32(fp0, t0); - gen_store_fpr32h(ctx, fp0, rd); - tcg_temp_free_i32(fp0); - } - break; - case 3: - /* XXX: For now we support only a single FPU context. */ - { - TCGv_i32 fs_tmp =3D tcg_const_i32(rd); - - gen_helper_0e2i(ctc1, t0, fs_tmp, rt); - tcg_temp_free_i32(fs_tmp); - } - /* Stop translation as we may have changed hflags */ - ctx->base.is_jmp =3D DISAS_STOP; - break; - /* COP2: Not implemented. */ - case 4: - case 5: - /* fall through */ - default: - goto die; } trace_mips_translate_tr("mttr", rd, u, sel, h); tcg_temp_free(t0); @@ -10492,7 +10496,7 @@ static void gen_compute_branch1(DisasContext *ctx, = uint32_t op, { TCGv_i32 t1 =3D tcg_temp_new_i32(); tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); - tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc+1)); + tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc + 1)); tcg_gen_nand_i32(t0, t0, t1); tcg_temp_free_i32(t1); tcg_gen_andi_i32(t0, t0, 1); @@ -10503,7 +10507,7 @@ static void gen_compute_branch1(DisasContext *ctx, = uint32_t op, { TCGv_i32 t1 =3D tcg_temp_new_i32(); tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); - tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc+1)); + tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc + 1)); tcg_gen_or_i32(t0, t0, t1); tcg_temp_free_i32(t1); tcg_gen_andi_i32(t0, t0, 1); @@ -10514,11 +10518,11 @@ static void gen_compute_branch1(DisasContext *ctx= , uint32_t op, { TCGv_i32 t1 =3D tcg_temp_new_i32(); tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); - tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc+1)); + tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc + 1)); tcg_gen_and_i32(t0, t0, t1); - tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc+2)); + tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc + 2)); tcg_gen_and_i32(t0, t0, t1); - tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc+3)); + tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc + 3)); tcg_gen_nand_i32(t0, t0, t1); tcg_temp_free_i32(t1); tcg_gen_andi_i32(t0, t0, 1); @@ -10529,11 +10533,11 @@ static void gen_compute_branch1(DisasContext *ctx= , uint32_t op, { TCGv_i32 t1 =3D tcg_temp_new_i32(); tcg_gen_shri_i32(t0, fpu_fcr31, get_fp_bit(cc)); - tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc+1)); + tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc + 1)); tcg_gen_or_i32(t0, t0, t1); - tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc+2)); + tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc + 2)); tcg_gen_or_i32(t0, t0, t1); - tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc+3)); + tcg_gen_shri_i32(t1, fpu_fcr31, get_fp_bit(cc + 3)); tcg_gen_or_i32(t0, t0, t1); tcg_temp_free_i32(t1); tcg_gen_andi_i32(t0, t0, 1); @@ -10997,7 +11001,7 @@ static inline void gen_movcf_ps(DisasContext *ctx, = int fs, int fd, gen_store_fpr32(ctx, t0, fd); gen_set_label(l1); =20 - tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc+1)); + tcg_gen_andi_i32(t0, fpu_fcr31, 1 << get_fp_bit(cc + 1)); tcg_gen_brcondi_i32(cond, t0, 0, l2); gen_load_fpr32h(ctx, t0, fs); gen_store_fpr32h(ctx, t0, fd); @@ -11611,9 +11615,9 @@ static void gen_farith(DisasContext *ctx, enum fopc= ode op1, case OPC_CMP_NGT_S: check_insn_opc_removed(ctx, ISA_MIPS32R6); if (ctx->opcode & (1 << 6)) { - gen_cmpabs_s(ctx, func-48, ft, fs, cc); + gen_cmpabs_s(ctx, func - 48, ft, fs, cc); } else { - gen_cmp_s(ctx, func-48, ft, fs, cc); + gen_cmp_s(ctx, func - 48, ft, fs, cc); } break; case OPC_ADD_D: @@ -12093,9 +12097,9 @@ static void gen_farith(DisasContext *ctx, enum fopc= ode op1, case OPC_CMP_NGT_D: check_insn_opc_removed(ctx, ISA_MIPS32R6); if (ctx->opcode & (1 << 6)) { - gen_cmpabs_d(ctx, func-48, ft, fs, cc); + gen_cmpabs_d(ctx, func - 48, ft, fs, cc); } else { - gen_cmp_d(ctx, func-48, ft, fs, cc); + gen_cmp_d(ctx, func - 48, ft, fs, cc); } break; case OPC_CVT_S_D: @@ -12495,9 +12499,9 @@ static void gen_farith(DisasContext *ctx, enum fopc= ode op1, case OPC_CMP_LE_PS: case OPC_CMP_NGT_PS: if (ctx->opcode & (1 << 6)) { - gen_cmpabs_ps(ctx, func-48, ft, fs, cc); + gen_cmpabs_ps(ctx, func - 48, ft, fs, cc); } else { - gen_cmp_ps(ctx, func-48, ft, fs, cc); + gen_cmp_ps(ctx, func - 48, ft, fs, cc); } break; default: @@ -14310,7 +14314,7 @@ static int decode_mips16_opc(CPUMIPSState *env, Dis= asContext *ctx) case RR_RY_CNVT_SEH: tcg_gen_ext16s_tl(cpu_gpr[rx], cpu_gpr[rx]); break; -#if defined (TARGET_MIPS64) +#if defined(TARGET_MIPS64) case RR_RY_CNVT_ZEW: check_insn(ctx, ISA_MIPS64); check_mips_64(ctx); @@ -15034,11 +15038,11 @@ static int mmreg2(int r) =20 /* Signed immediate */ #define SIMM(op, start, width) \ - ((int32_t)(((op >> start) & ((~0U) >> (32-width))) \ - << (32-width)) \ - >> (32-width)) + ((int32_t)(((op >> start) & ((~0U) >> (32 - width))) \ + << (32 - width)) \ + >> (32 - width)) /* Zero-extended immediate */ -#define ZIMM(op, start, width) ((op >> start) & ((~0U) >> (32-width))) +#define ZIMM(op, start, width) ((op >> start) & ((~0U) >> (32 - width))) =20 static void gen_addiur1sp(DisasContext *ctx) { @@ -15732,7 +15736,10 @@ static void gen_pool32axf(CPUMIPSState *env, Disas= Context *ctx, int rt, int rs) save_cpu_state(ctx, 1); gen_helper_di(t0, cpu_env); gen_store_gpr(t0, rs); - /* Stop translation as we may have switched the execution = mode */ + /* + * Stop translation as we may have switched the execution + * mode. + */ ctx->base.is_jmp =3D DISAS_STOP; tcg_temp_free(t0); } @@ -15854,9 +15861,9 @@ static void gen_pool32fxf(DisasContext *ctx, int rt= , int rs) int extension =3D (ctx->opcode >> 6) & 0x3ff; uint32_t mips32_op; =20 -#define FLOAT_1BIT_FMT(opc, fmt) (fmt << 8) | opc -#define FLOAT_2BIT_FMT(opc, fmt) (fmt << 7) | opc -#define COND_FLOAT_MOV(opc, cond) (cond << 7) | opc +#define FLOAT_1BIT_FMT(opc, fmt) ((fmt << 8) | opc) +#define FLOAT_2BIT_FMT(opc, fmt) ((fmt << 7) | opc) +#define COND_FLOAT_MOV(opc, cond) ((cond << 7) | opc) =20 switch (extension) { case FLOAT_1BIT_FMT(CFC1, 0): @@ -30253,7 +30260,7 @@ void gen_intermediate_code(CPUState *cs, Translatio= nBlock *tb, int max_insns) translator_loop(&mips_tr_ops, &ctx.base, cs, tb, max_insns); } =20 -static void fpu_dump_state(CPUMIPSState *env, FILE *f, int flags) +static void fpu_dump_state(CPUMIPSState *env, FILE * f, int flags) { int i; int is_fpu64 =3D !!(env->hflags & MIPS_HFLAG_F64); @@ -30278,7 +30285,7 @@ static void fpu_dump_state(CPUMIPSState *env, FILE = *f, int flags) (double)tmp.fs[FP_ENDIAN_IDX], \ (double)tmp.fs[!FP_ENDIAN_IDX]); \ } \ - } while(0) + } while (0) =20 =20 qemu_fprintf(f, @@ -30315,7 +30322,8 @@ void mips_cpu_dump_state(CPUState *cs, FILE *f, int= flags) } } =20 - qemu_fprintf(f, "CP0 Status 0x%08x Cause 0x%08x EPC 0x" TARGET_F= MT_lx "\n", + qemu_fprintf(f, "CP0 Status 0x%08x Cause 0x%08x EPC 0x" + TARGET_FMT_lx "\n", env->CP0_Status, env->CP0_Cause, env->CP0_EPC); qemu_fprintf(f, " Config0 0x%08x Config1 0x%08x LLAddr 0x%016" PRIx64 "\n", @@ -30336,7 +30344,8 @@ void mips_tcg_init(void) cpu_gpr[0] =3D NULL; for (i =3D 1; i < 32; i++) cpu_gpr[i] =3D tcg_global_mem_new(cpu_env, - offsetof(CPUMIPSState, active_tc.g= pr[i]), + offsetof(CPUMIPSState, + active_tc.gpr[i]), regnames[i]); =20 for (i =3D 0; i < 32; i++) { @@ -30364,7 +30373,8 @@ void mips_tcg_init(void) regnames_LO[i]); } cpu_dspctrl =3D tcg_global_mem_new(cpu_env, - offsetof(CPUMIPSState, active_tc.DSPC= ontrol), + offsetof(CPUMIPSState, + active_tc.DSPControl), "DSPControl"); bcond =3D tcg_global_mem_new(cpu_env, offsetof(CPUMIPSState, bcond), "bcond"); --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566216694; cv=none; d=zoho.com; s=zohoarc; b=b6pLCkMKQ4ZpJuvkeGZ2hBxLiL+7BLNT+fUf4bNgbuKfVJatBWYaiiNr3tfLJQIgQEwIAAvK0cOnHnnn8mlwB7oCWsfBoMnIEEmIUlIAZCtqomwkn99OrpPCpV4Y26bUG90Gk52q+u01Jwvs7Eckpz20OBmmSTRjoEFin18n4QU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566216694; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=rWi9YpJCMYrU6Gvoady+L6N0Gg1z1jVVaxDtApDdtVw=; b=mLC11mYILc0gwjmOmevd93pgIx6uxjMs1Zt32/YW0tqtZIVqtmtCbRiZzlt+saqhvqh563BTbC+43IHK5CIgzGZSf4DLo707FectNZmfm4/2wdAUv/UhF5K8WK5mgNobyjIET037Dig6wv4sVXfPYVmQoGxdCgDu2jGtsGS+SwY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566216694175715.3807712576341; Mon, 19 Aug 2019 05:11:34 -0700 (PDT) Received: from localhost ([::1]:48936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgVY-0003k3-ET for importer@patchew.org; Mon, 19 Aug 2019 08:11:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36134) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTc-0001t4-Vs for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTa-0002aY-Si for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:32 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57762 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTa-0002ZR-Je for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 7804D1A2117; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 460831A2070; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:51 +0200 Message-Id: <1566216496-17375-13-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 12/37] target/mips: Style improvements in cps.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- hw/mips/cps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/mips/cps.c b/hw/mips/cps.c index c84bc64..8fe2f47 100644 --- a/hw/mips/cps.c +++ b/hw/mips/cps.c @@ -37,8 +37,10 @@ static void mips_cps_init(Object *obj) SysBusDevice *sbd =3D SYS_BUS_DEVICE(obj); MIPSCPSState *s =3D MIPS_CPS(obj); =20 - /* Cover entire address space as there do not seem to be any - * constraints for the base address of CPC and GIC. */ + /* + * Cover entire address space as there do not seem to be any + * constraints for the base address of CPC and GIC. + */ memory_region_init(&s->container, obj, "mips-cps-container", UINT64_MA= X); sysbus_init_mmio(sbd, &s->container); } --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217118; cv=none; d=zoho.com; s=zohoarc; b=V17GnX616Ms+bRKRXyB/GmewN865pdC1TV08LpyiP9OejTBdzOLY2iAqeDfIqL7x2hxCVr0jAPqe5PJBUb50MG5epW+FJQtxkkueJ/M6fQ2j1zgXFPI37XFEeOfnw9Su1dGnuYiPeQF9EA/zpgMYiakjSQSzcxRax7Tw5pu1xAA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217118; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=bv+bW+7ffFcxJLW02X2att1zrIrA5u5CWvi7uX7ewsg=; b=Nq76lbPll/S8h7spfSGHjWxNKC8E7sgTgds8kEMVX0wcCwD1UDOvvgglMKXnX36n2DrkafAKblchFr1S0+IKI3JVUTX5QPZ/+13EH6a6Kwmz/MhsUvLCpM0G9fREJrdK+gcX/RO6uEW2y4W2ZY0bf/v/hb4d8oV+mMPIm8HDK4M= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156621711828025.748470683421033; Mon, 19 Aug 2019 05:18:38 -0700 (PDT) Received: from localhost ([::1]:49096 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgcO-0003QS-CN for importer@patchew.org; Mon, 19 Aug 2019 08:18:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36158) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTd-0001tF-Go for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTb-0002b6-2O for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:33 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57766 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTa-0002ZU-IS for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id BA24E1A2142; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 4E88C1A20A0; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:52 +0200 Message-Id: <1566216496-17375-14-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 13/37] target/mips: Style improvements in mips_fulong2e.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- hw/mips/mips_fulong2e.c | 96 +++++++++++++++++++++++++++++----------------= ---- 1 file changed, 58 insertions(+), 38 deletions(-) diff --git a/hw/mips/mips_fulong2e.c b/hw/mips/mips_fulong2e.c index 5dbaa3b..0c3d947 100644 --- a/hw/mips/mips_fulong2e.c +++ b/hw/mips/mips_fulong2e.c @@ -48,13 +48,13 @@ =20 #define DEBUG_FULONG2E_INIT =20 -#define ENVP_ADDR 0x80002000l -#define ENVP_NB_ENTRIES 16 -#define ENVP_ENTRY_SIZE 256 +#define ENVP_ADDR 0x80002000l +#define ENVP_NB_ENTRIES 16 +#define ENVP_ENTRY_SIZE 256 =20 /* fulong 2e has a 512k flash: Winbond W39L040AP70Z */ -#define BIOS_SIZE (512 * KiB) -#define MAX_IDE_BUS 2 +#define BIOS_SIZE (512 * KiB) +#define MAX_IDE_BUS 2 =20 /* * PMON is not part of qemu and released with BSD license, anyone @@ -83,14 +83,15 @@ static struct _loaderparams { const char *initrd_filename; } loaderparams; =20 -static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t* prom_buf, int index, +static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t *prom_buf, int index, const char *string, ...) { va_list ap; int32_t table_addr; =20 - if (index >=3D ENVP_NB_ENTRIES) + if (index >=3D ENVP_NB_ENTRIES) { return; + } =20 if (string =3D=3D NULL) { prom_buf[index] =3D 0; @@ -105,7 +106,7 @@ static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t* prom_= buf, int index, va_end(ap); } =20 -static int64_t load_kernel (CPUMIPSState *env) +static int64_t load_kernel(CPUMIPSState *env) { int64_t kernel_entry, kernel_low, kernel_high, initrd_size; int index =3D 0; @@ -130,16 +131,18 @@ static int64_t load_kernel (CPUMIPSState *env) initrd_size =3D 0; initrd_offset =3D 0; if (loaderparams.initrd_filename) { - initrd_size =3D get_image_size (loaderparams.initrd_filename); + initrd_size =3D get_image_size(loaderparams.initrd_filename); if (initrd_size > 0) { - initrd_offset =3D (kernel_high + ~INITRD_PAGE_MASK) & INITRD_P= AGE_MASK; + initrd_offset =3D (kernel_high + ~INITRD_PAGE_MASK) & + INITRD_PAGE_MASK; if (initrd_offset + initrd_size > ram_size) { error_report("memory too small for initial ram disk '%s'", loaderparams.initrd_filename); exit(1); } initrd_size =3D load_image_targphys(loaderparams.initrd_filena= me, - initrd_offset, ram_size - initrd_offs= et); + initrd_offset, + ram_size - initrd_offset); } if (initrd_size =3D=3D (target_ulong) -1) { error_report("could not load initial ram disk '%s'", @@ -154,9 +157,10 @@ static int64_t load_kernel (CPUMIPSState *env) =20 prom_set(prom_buf, index++, "%s", loaderparams.kernel_filename); if (initrd_size > 0) { - prom_set(prom_buf, index++, "rd_start=3D0x%" PRIx64 " rd_size=3D%"= PRId64 " %s", - cpu_mips_phys_to_kseg0(NULL, initrd_offset), initrd_size, - loaderparams.kernel_cmdline); + prom_set(prom_buf, index++, + "rd_start=3D0x%" PRIx64 " rd_size=3D%" PRId64 " %s", + cpu_mips_phys_to_kseg0(NULL, initrd_offset), + initrd_size, loaderparams.kernel_cmdline); } else { prom_set(prom_buf, index++, "%s", loaderparams.kernel_cmdline); } @@ -175,34 +179,48 @@ static int64_t load_kernel (CPUMIPSState *env) return kernel_entry; } =20 -static void write_bootloader (CPUMIPSState *env, uint8_t *base, int64_t ke= rnel_addr) +static void write_bootloader(CPUMIPSState *env, uint8_t *base, + int64_t kernel_addr) { uint32_t *p; =20 /* Small bootloader */ - p =3D (uint32_t *) base; + p =3D (uint32_t *)base; =20 - stl_p(p++, 0x0bf00010); /* j 0x1f= c00040 */ - stl_p(p++, 0x00000000); /* nop */ + /* j 0x1fc00040 */ + stl_p(p++, 0x0bf00010); + /* nop */ + stl_p(p++, 0x00000000); =20 /* Second part of the bootloader */ - p =3D (uint32_t *) (base + 0x040); - - stl_p(p++, 0x3c040000); /* lui a0= , 0 */ - stl_p(p++, 0x34840002); /* ori a0= , a0, 2 */ - stl_p(p++, 0x3c050000 | ((ENVP_ADDR >> 16) & 0xffff)); /* lui a1= , high(ENVP_ADDR) */ - stl_p(p++, 0x34a50000 | (ENVP_ADDR & 0xffff)); /* ori a1= , a0, low(ENVP_ADDR) */ - stl_p(p++, 0x3c060000 | (((ENVP_ADDR + 8) >> 16) & 0xffff)); /* lui a2= , high(ENVP_ADDR + 8) */ - stl_p(p++, 0x34c60000 | ((ENVP_ADDR + 8) & 0xffff)); /* ori a2= , a2, low(ENVP_ADDR + 8) */ - stl_p(p++, 0x3c070000 | (loaderparams.ram_size >> 16)); /* lui a3= , high(env->ram_size) */ - stl_p(p++, 0x34e70000 | (loaderparams.ram_size & 0xffff)); /* ori a3= , a3, low(env->ram_size) */ - stl_p(p++, 0x3c1f0000 | ((kernel_addr >> 16) & 0xffff)); /* lui ra= , high(kernel_addr) */; - stl_p(p++, 0x37ff0000 | (kernel_addr & 0xffff)); /* ori ra= , ra, low(kernel_addr) */ - stl_p(p++, 0x03e00008); /* jr ra = */ - stl_p(p++, 0x00000000); /* nop */ + p =3D (uint32_t *)(base + 0x040); + + /* lui a0, 0 */ + stl_p(p++, 0x3c040000); + /* ori a0, a0, 2 */ + stl_p(p++, 0x34840002); + /* lui a1, high(ENVP_ADDR) */ + stl_p(p++, 0x3c050000 | ((ENVP_ADDR >> 16) & 0xffff)); + /* ori a1, a0, low(ENVP_ADDR) */ + stl_p(p++, 0x34a50000 | (ENVP_ADDR & 0xffff)); + /* lui a2, high(ENVP_ADDR + 8) */ + stl_p(p++, 0x3c060000 | (((ENVP_ADDR + 8) >> 16) & 0xffff)); + /* ori a2, a2, low(ENVP_ADDR + 8) */ + stl_p(p++, 0x34c60000 | ((ENVP_ADDR + 8) & 0xffff)); + /* lui a3, high(env->ram_size) */ + stl_p(p++, 0x3c070000 | (loaderparams.ram_size >> 16)); + /* ori a3, a3, low(env->ram_size) */ + stl_p(p++, 0x34e70000 | (loaderparams.ram_size & 0xffff)); + /* lui ra, high(kernel_addr) */ + stl_p(p++, 0x3c1f0000 | ((kernel_addr >> 16) & 0xffff)); + /* ori ra, ra, low(kernel_addr) */ + stl_p(p++, 0x37ff0000 | (kernel_addr & 0xffff)); + /* jr ra */ + stl_p(p++, 0x03e00008); + /* nop */ + stl_p(p++, 0x00000000); } =20 - static void main_cpu_reset(void *opaque) { MIPSCPU *cpu =3D opaque; @@ -252,11 +270,11 @@ static void vt82c686b_southbridge_init(PCIBus *pci_bu= s, int slot, qemu_irq intc, } =20 /* Network support */ -static void network_init (PCIBus *pci_bus) +static void network_init(PCIBus *pci_bus) { int i; =20 - for(i =3D 0; i < nb_nics; i++) { + for (i =3D 0; i < nb_nics; i++) { NICInfo *nd =3D &nd_table[i]; const char *default_devaddr =3D NULL; =20 @@ -308,15 +326,17 @@ static void mips_fulong2e_init(MachineState *machine) memory_region_add_subregion(address_space_mem, 0, ram); memory_region_add_subregion(address_space_mem, 0x1fc00000LL, bios); =20 - /* We do not support flash operation, just loading pmon.bin as raw BIO= S. - * Please use -L to set the BIOS path and -bios to set bios name. */ + /* + * We do not support flash operation, just loading pmon.bin as raw BIO= S. + * Please use -L to set the BIOS path and -bios to set bios name. + */ =20 if (kernel_filename) { loaderparams.ram_size =3D ram_size; loaderparams.kernel_filename =3D kernel_filename; loaderparams.kernel_cmdline =3D kernel_cmdline; loaderparams.initrd_filename =3D initrd_filename; - kernel_entry =3D load_kernel (env); + kernel_entry =3D load_kernel(env); write_bootloader(env, memory_region_get_ram_ptr(bios), kernel_entr= y); } else { if (bios_name =3D=3D NULL) { --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217373; cv=none; d=zoho.com; s=zohoarc; b=KeJSQn1dQhlB5Mjnj63w0fUaBZTzScJn4bcNQ1zMaVp5GI056IFG8EmJxfbSAa9wJX9rvIyz2MIbvsRDyUe2LD+hdGWIlBiRF1b9kWoTaj5jSWhLXe1k/9NaYxUbBYkb8YXDHWC+zY1xaLDCgq2teBu+hjG4MTYkQpKrgmyhdM8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217373; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=zm92on7r5Wv3ccbc8BkmVMBqAGbB8rloPi0udxcqbwA=; b=Ih8pu0ualfVHW6i6TwnRnP7uTkEGxaMUtFa69kJi6cfIo5wS9zQLstbQzMFsE+4zVHYLIha+Khcw4CQ1zKiIQesUFhaY+TSM7J2n6qYiKCUxhlaFtQJa3swm4LVT58llbyzEtmB17fH7X6dAr+IvAtyzBYAfEaP2y1lpSaH/CAY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217373541801.6075050188485; Mon, 19 Aug 2019 05:22:53 -0700 (PDT) Received: from localhost ([::1]:49134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzggS-0008KM-Sk for importer@patchew.org; Mon, 19 Aug 2019 08:22:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36226) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTl-00025V-UM for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTk-0002iX-RQ for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:41 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57761 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTk-0002ZQ-K5 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:40 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id A578C1A20B2; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 6182F1A2128; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:53 +0200 Message-Id: <1566216496-17375-15-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 14/37] target/mips: Style improvements in mips_int.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- hw/mips/mips_int.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/mips/mips_int.c b/hw/mips/mips_int.c index f899f6c..4c731ab 100644 --- a/hw/mips/mips_int.c +++ b/hw/mips/mips_int.c @@ -35,8 +35,9 @@ static void cpu_mips_irq_request(void *opaque, int irq, i= nt level) CPUState *cs =3D CPU(cpu); bool locked =3D false; =20 - if (irq < 0 || irq > 7) + if (irq < 0 || irq > 7) { return; + } =20 /* Make sure locking works even if BQL is already held by the caller */ if (!qemu_mutex_iothread_locked()) { --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218249; cv=none; d=zoho.com; s=zohoarc; b=AkGgO+ExfS73VilBMcHoVwdnhH38FoTt7/XKbwrJ9iCzSpzJmoyr1cb6Px//cCw/Eaf8I5kDnP0B7vQ5Ntp3dopGz845CWSByHhkhx5sL0OiUkby1VtnLXFbf9GrrQRLjmJ312LHhhO2EX51g/u3zAT0QBy1t/Cl9LlBrHYDAbA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218249; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=+zGs6fqX0CsMrKWdcYl8bPKK1WNwHES0cLeg6nkLrts=; b=UpQXhpYnJJ/nQwy6FutJxO6HtHmQ2eBsA89AuTexkJbc+E2lJ3acaJK8BQAQZPlfluM3qMdsU16MC4lHL5UkGc8B+GIzEOjA1m8b/wlNBtvv3IYBOrI3F/zT8Z7FqDdgCe/P/Q7dBqm3jBRIFYkckdxrM336YiUY/bwZa7f7yGg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218249872585.844944197947; Mon, 19 Aug 2019 05:37:29 -0700 (PDT) Received: from localhost ([::1]:49332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzguY-0005tr-UI for importer@patchew.org; Mon, 19 Aug 2019 08:37:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36391) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTq-0002Cw-L4 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002kd-Ez for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58020 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTl-0002bI-SX for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 299641A21D4; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 693501A2072; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:54 +0200 Message-Id: <1566216496-17375-16-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 15/37] target/mips: Style improvements in mips_malta.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- hw/mips/mips_malta.c | 216 ++++++++++++++++++++++++++++++-----------------= ---- 1 file changed, 128 insertions(+), 88 deletions(-) diff --git a/hw/mips/mips_malta.c b/hw/mips/mips_malta.c index 20e019b..0b5ee37 100644 --- a/hw/mips/mips_malta.c +++ b/hw/mips/mips_malta.c @@ -58,18 +58,18 @@ #include "hw/semihosting/semihost.h" #include "hw/mips/cps.h" =20 -#define ENVP_ADDR 0x80002000l -#define ENVP_NB_ENTRIES 16 -#define ENVP_ENTRY_SIZE 256 +#define ENVP_ADDR 0x80002000l +#define ENVP_NB_ENTRIES 16 +#define ENVP_ENTRY_SIZE 256 =20 /* Hardware addresses */ -#define FLASH_ADDRESS 0x1e000000ULL -#define FPGA_ADDRESS 0x1f000000ULL -#define RESET_ADDRESS 0x1fc00000ULL +#define FLASH_ADDRESS 0x1e000000ULL +#define FPGA_ADDRESS 0x1f000000ULL +#define RESET_ADDRESS 0x1fc00000ULL =20 -#define FLASH_SIZE 0x400000 +#define FLASH_SIZE 0x400000 =20 -#define MAX_IDE_BUS 2 +#define MAX_IDE_BUS 2 =20 typedef struct { MemoryRegion iomem; @@ -115,10 +115,11 @@ static void malta_fpga_update_display(void *opaque) MaltaFPGAState *s =3D opaque; =20 for (i =3D 7 ; i >=3D 0 ; i--) { - if (s->leds & (1 << i)) + if (s->leds & (1 << i)) { leds_text[i] =3D '#'; - else + } else { leds_text[i] =3D ' '; + } } leds_text[8] =3D '\0'; =20 @@ -138,8 +139,6 @@ static void malta_fpga_update_display(void *opaque) * Typical device names include Microchip 24C02SC or SGS Thomson ST24C02. */ =20 -//~ #define DEBUG - #if defined(DEBUG) # define logout(fmt, ...) fprintf(stderr, "MALTA\t%-24s" fmt, __func__, #= # __VA_ARGS__) #else @@ -154,7 +153,7 @@ struct _eeprom24c0x_t { uint8_t scl; uint8_t sda; uint8_t data; - //~ uint16_t size; + /* uint16_t size; */ uint8_t contents[256]; }; =20 @@ -162,22 +161,38 @@ typedef struct _eeprom24c0x_t eeprom24c0x_t; =20 static eeprom24c0x_t spd_eeprom =3D { .contents =3D { - /* 00000000: */ 0x80,0x08,0xFF,0x0D,0x0A,0xFF,0x40,0x00, - /* 00000008: */ 0x01,0x75,0x54,0x00,0x82,0x08,0x00,0x01, - /* 00000010: */ 0x8F,0x04,0x02,0x01,0x01,0x00,0x00,0x00, - /* 00000018: */ 0x00,0x00,0x00,0x14,0x0F,0x14,0x2D,0xFF, - /* 00000020: */ 0x15,0x08,0x15,0x08,0x00,0x00,0x00,0x00, - /* 00000028: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000030: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000038: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x12,0xD0, - /* 00000040: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000048: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000050: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000058: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000060: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000068: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000070: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, - /* 00000078: */ 0x00,0x00,0x00,0x00,0x00,0x00,0x64,0xF4, + /* 00000000: */ + 0x80, 0x08, 0xFF, 0x0D, 0x0A, 0xFF, 0x40, 0x00, + /* 00000008: */ + 0x01, 0x75, 0x54, 0x00, 0x82, 0x08, 0x00, 0x01, + /* 00000010: */ + 0x8F, 0x04, 0x02, 0x01, 0x01, 0x00, 0x00, 0x00, + /* 00000018: */ + 0x00, 0x00, 0x00, 0x14, 0x0F, 0x14, 0x2D, 0xFF, + /* 00000020: */ + 0x15, 0x08, 0x15, 0x08, 0x00, 0x00, 0x00, 0x00, + /* 00000028: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000030: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000038: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x12, 0xD0, + /* 00000040: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000048: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000050: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000058: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000060: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000068: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000070: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + /* 00000078: */ + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0xF4, }, }; =20 @@ -347,7 +362,8 @@ static uint64_t malta_fpga_read(void *opaque, hwaddr ad= dr, =20 /* SWITCH Register */ case 0x00200: - val =3D 0x00000000; /* All switches closed */ + /* ori a3, a3, low(ram_low_size) */ + val =3D 0x00000000; break; =20 /* STATUS Register */ @@ -386,10 +402,11 @@ static uint64_t malta_fpga_read(void *opaque, hwaddr = addr, /* GPINP Register */ case 0x00a08: /* IN =3D OUT until a real I2C control is implemented */ - if (s->i2csel) + if (s->i2csel) { val =3D s->i2cout; - else + } else { val =3D 0x00; + } break; =20 /* I2CINP Register */ @@ -414,8 +431,8 @@ static uint64_t malta_fpga_read(void *opaque, hwaddr ad= dr, =20 default: #if 0 - printf ("malta_fpga_read: Bad register offset 0x" TARGET_FMT_lx "\= n", - addr); + printf("malta_fpga_read: Bad register offset 0x" TARGET_FMT_lx "\n= ", + addr); #endif break; } @@ -467,8 +484,9 @@ static void malta_fpga_write(void *opaque, hwaddr addr, =20 /* SOFTRES Register */ case 0x00500: - if (val =3D=3D 0x42) + if (val =3D=3D 0x42) { qemu_system_reset_request(SHUTDOWN_CAUSE_GUEST_RESET); + } break; =20 /* BRKRES Register */ @@ -501,8 +519,8 @@ static void malta_fpga_write(void *opaque, hwaddr addr, =20 default: #if 0 - printf ("malta_fpga_write: Bad register offset 0x" TARGET_FMT_lx "= \n", - addr); + printf("malta_fpga_write: Bad register offset 0x" TARGET_FMT_lx "\= n", + addr); #endif break; } @@ -561,7 +579,7 @@ static MaltaFPGAState *malta_fpga_init(MemoryRegion *ad= dress_space, memory_region_init_alias(&s->iomem_lo, NULL, "malta-fpga", &s->iomem, 0, 0x900); memory_region_init_alias(&s->iomem_hi, NULL, "malta-fpga", - &s->iomem, 0xa00, 0x10000-0xa00); + &s->iomem, 0xa00, 0x10000 - 0xa00); =20 memory_region_add_subregion(address_space, base, &s->iomem_lo); memory_region_add_subregion(address_space, base + 0xa00, &s->iomem_hi); @@ -585,7 +603,7 @@ static void network_init(PCIBus *pci_bus) { int i; =20 - for(i =3D 0; i < nb_nics; i++) { + for (i =3D 0; i < nb_nics; i++) { NICInfo *nd =3D &nd_table[i]; const char *default_devaddr =3D NULL; =20 @@ -799,27 +817,28 @@ static void write_bootloader_nanomips(uint8_t *base, = int64_t run_addr, /* jalrc t8 */ } =20 -/* ROM and pseudo bootloader - - The following code implements a very very simple bootloader. It first - loads the registers a0 to a3 to the values expected by the OS, and - then jump at the kernel address. - - The bootloader should pass the locations of the kernel arguments and - environment variables tables. Those tables contain the 32-bit address - of NULL terminated strings. The environment variables table should be - terminated by a NULL address. - - For a simpler implementation, the number of kernel arguments is fixed - to two (the name of the kernel and the command line), and the two - tables are actually the same one. - - The registers a0 to a3 should contain the following values: - a0 - number of kernel arguments - a1 - 32-bit address of the kernel arguments table - a2 - 32-bit address of the environment variables table - a3 - RAM size in bytes -*/ +/* + * ROM and pseudo bootloader + * + * The following code implements a very very simple bootloader. It first + * loads the registers a0 to a3 to the values expected by the OS, and + * then jump at the kernel address. + * + * The bootloader should pass the locations of the kernel arguments and + * environment variables tables. Those tables contain the 32-bit address + * of NULL terminated strings. The environment variables table should be + * terminated by a NULL address. + * + * For a simpler implementation, the number of kernel arguments is fixed + * to two (the name of the kernel and the command line), and the two + * tables are actually the same one. + * + * The registers a0 to a3 should contain the following values: + * a0 - number of kernel arguments + * a1 - 32-bit address of the kernel arguments table + * a2 - 32-bit address of the environment variables table + * a3 - RAM size in bytes + */ static void write_bootloader(uint8_t *base, int64_t run_addr, int64_t kernel_entry) { @@ -857,14 +876,23 @@ static void write_bootloader(uint8_t *base, int64_t r= un_addr, } else { stl_p(p++, 0x24040002); /* addiu a0, zero,= 2 */ } - stl_p(p++, 0x3c1d0000 | (((ENVP_ADDR - 64) >> 16) & 0xffff)); /* lui s= p, high(ENVP_ADDR) */ - stl_p(p++, 0x37bd0000 | ((ENVP_ADDR - 64) & 0xffff)); /* ori sp= , sp, low(ENVP_ADDR) */ - stl_p(p++, 0x3c050000 | ((ENVP_ADDR >> 16) & 0xffff)); /* lui a1= , high(ENVP_ADDR) */ - stl_p(p++, 0x34a50000 | (ENVP_ADDR & 0xffff)); /* ori a1= , a1, low(ENVP_ADDR) */ - stl_p(p++, 0x3c060000 | (((ENVP_ADDR + 8) >> 16) & 0xffff)); /* lui a2= , high(ENVP_ADDR + 8) */ - stl_p(p++, 0x34c60000 | ((ENVP_ADDR + 8) & 0xffff)); /* ori a2= , a2, low(ENVP_ADDR + 8) */ - stl_p(p++, 0x3c070000 | (loaderparams.ram_low_size >> 16)); /* lui= a3, high(ram_low_size) */ - stl_p(p++, 0x34e70000 | (loaderparams.ram_low_size & 0xffff)); /* ori= a3, a3, low(ram_low_size) */ + + /* lui sp, high(ENVP_ADDR) */ + stl_p(p++, 0x3c1d0000 | (((ENVP_ADDR - 64) >> 16) & 0xffff)); + /* ori sp, sp, low(ENVP_ADDR) */ + stl_p(p++, 0x37bd0000 | ((ENVP_ADDR - 64) & 0xffff)); + /* lui a1, high(ENVP_ADDR) */ + stl_p(p++, 0x3c050000 | ((ENVP_ADDR >> 16) & 0xffff)); + /* ori a1, a1, low(ENVP_ADDR) */ + stl_p(p++, 0x34a50000 | (ENVP_ADDR & 0xffff)); + /* lui a2, high(ENVP_ADDR + 8) */ + stl_p(p++, 0x3c060000 | (((ENVP_ADDR + 8) >> 16) & 0xffff)); + /* ori a2, a2, low(ENVP_ADDR + 8) */ + stl_p(p++, 0x34c60000 | ((ENVP_ADDR + 8) & 0xffff)); + /* lui a3, high(ram_low_size) */ + stl_p(p++, 0x3c070000 | (loaderparams.ram_low_size >> 16)); + /* ori a3, a3, low(ram_low_size) */ + stl_p(p++, 0x34e70000 | (loaderparams.ram_low_size & 0xffff)); =20 /* Load BAR registers as done by YAMON */ stl_p(p++, 0x3c09b400); /* lui t1= , 0xb400 */ @@ -968,14 +996,15 @@ static void write_bootloader(uint8_t *base, int64_t r= un_addr, =20 } =20 -static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t* prom_buf, int index, +static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t *prom_buf, int index, const char *string, ...) { va_list ap; int32_t table_addr; =20 - if (index >=3D ENVP_NB_ENTRIES) + if (index >=3D ENVP_NB_ENTRIES) { return; + } =20 if (string =3D=3D NULL) { prom_buf[index] =3D 0; @@ -991,7 +1020,7 @@ static void GCC_FMT_ATTR(3, 4) prom_set(uint32_t* prom= _buf, int index, } =20 /* Kernel */ -static int64_t load_kernel (void) +static int64_t load_kernel(void) { int64_t kernel_entry, kernel_high, initrd_size; long kernel_size; @@ -1039,11 +1068,13 @@ static int64_t load_kernel (void) initrd_size =3D 0; initrd_offset =3D 0; if (loaderparams.initrd_filename) { - initrd_size =3D get_image_size (loaderparams.initrd_filename); + initrd_size =3D get_image_size(loaderparams.initrd_filename); if (initrd_size > 0) { - /* The kernel allocates the bootmap memory in the low memory a= fter - the initrd. It takes at most 128kiB for 2GB RAM and 4kiB - pages. */ + /* + * The kernel allocates the bootmap memory in the low memory a= fter + * the initrd. It takes at most 128kiB for 2GB RAM and 4kiB + * pages. + */ initrd_offset =3D (loaderparams.ram_low_size - initrd_size - (128 * KiB) - ~INITRD_PAGE_MASK) & INITRD_PAGE_MASK; @@ -1069,9 +1100,10 @@ static int64_t load_kernel (void) =20 prom_set(prom_buf, prom_index++, "%s", loaderparams.kernel_filename); if (initrd_size > 0) { - prom_set(prom_buf, prom_index++, "rd_start=3D0x%" PRIx64 " rd_size= =3D%" PRId64 " %s", - xlate_to_kseg0(NULL, initrd_offset), initrd_size, - loaderparams.kernel_cmdline); + prom_set(prom_buf, prom_index++, + "rd_start=3D0x%" PRIx64 " rd_size=3D%" PRId64 " %s", + xlate_to_kseg0(NULL, initrd_offset), + initrd_size, loaderparams.kernel_cmdline); } else { prom_set(prom_buf, prom_index++, "%s", loaderparams.kernel_cmdline= ); } @@ -1111,9 +1143,11 @@ static void main_cpu_reset(void *opaque) =20 cpu_reset(CPU(cpu)); =20 - /* The bootloader does not need to be rewritten as it is located in a - read only location. The kernel location and the arguments table - location does not change. */ + /* + * The bootloader does not need to be rewritten as it is located in a + * read only location. The kernel location and the arguments table + * location does not change. + */ if (loaderparams.kernel_filename) { env->CP0_Status &=3D ~(1 << CP0St_ERL); } @@ -1211,9 +1245,11 @@ void mips_malta_init(MachineState *machine) DeviceState *dev =3D qdev_create(NULL, TYPE_MIPS_MALTA); MaltaState *s =3D MIPS_MALTA(dev); =20 - /* The whole address space decoded by the GT-64120A doesn't generate - exception when accessing invalid memory. Create an empty slot to - emulate this feature. */ + /* + * The whole address space decoded by the GT-64120A doesn't generate + * exception when accessing invalid memory. Create an empty slot to + * emulate this feature.\ + */ empty_slot_init(0, 0x20000000); =20 qdev_init_nofail(dev); @@ -1329,8 +1365,10 @@ void mips_malta_init(MachineState *machine) exit(1); } } - /* In little endian mode the 32bit words in the bios are swapped, - a neat trick which allows bi-endian firmware. */ + /* + * In little endian mode the 32bit words in the bios are swapped, + * a neat trick which allows bi-endian firmware. + */ #ifndef TARGET_WORDS_BIGENDIAN { uint32_t *end, *addr; @@ -1384,8 +1422,10 @@ void mips_malta_init(MachineState *machine) =20 piix4_devfn =3D piix4_init(pci_bus, &isa_bus, 80); =20 - /* Interrupt controller */ - /* The 8259 is attached to the MIPS CPU INT0 pin, ie interrupt 2 */ + /* + * Interrupt controller + * The 8259 is attached to the MIPS CPU INT0 pin, ie interrupt 2 + */ s->i8259 =3D i8259_init(isa_bus, i8259_irq); =20 isa_bus_irqs(isa_bus, s->i8259); --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566216877; cv=none; d=zoho.com; s=zohoarc; b=PVroclFj0yp5bgywYCwQeX7lW4S0cEFoGs1+OK0kBWu70aJ/OowYReHgecQHFwn7OZBghwZOECG7rEu1vSycrKyJUOiUAr/iTRb4voFB3MeUNOOQrU9vy13aTSVl++vTg5321+CR+nALhCx4+A/ywoDP5p0r+CJrFGLi0UC8zvM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566216877; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=eydVIeZI/JpV3DMD15EQ2w/9xHGbrKfs06wNdZc0BEw=; b=UHZXRkD14brzSx56o0dCHw+KmSxOKtSSNS4tnN3dzIt0Akqq615I2KdKhCEGmkvF/7Oik6ZtBHKMbL/0/1Gcp6bgf6fX0HlBageoiC0fg/GyeyThWxuCI9YChlqBtNSDGblPz6eDIIHBKkwpWdnmqIM1Qvl2OWuaapvTPfcZRpg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566216877297343.9434139046416; Mon, 19 Aug 2019 05:14:37 -0700 (PDT) Received: from localhost ([::1]:48976 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgYQ-0007eE-Gy for importer@patchew.org; Mon, 19 Aug 2019 08:14:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36127) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTc-0001t2-On for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTa-0002aQ-Re for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:32 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57770 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTa-0002ZW-JM for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id DBB4D1A203D; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 776AB1A208C; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:55 +0200 Message-Id: <1566216496-17375-17-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 16/37] target/mips: Style improvements in mips_mipssim.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Fixes mostly errors and warnings reported by 'checkpatch.pl -f'. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- hw/mips/mips_mipssim.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/hw/mips/mips_mipssim.c b/hw/mips/mips_mipssim.c index 824abda..b3155e17 100644 --- a/hw/mips/mips_mipssim.c +++ b/hw/mips/mips_mipssim.c @@ -3,7 +3,7 @@ * * Emulates a very simple machine model similar to the one used by the * proprietary MIPS emulator. - *=20 + * * Copyright (c) 2007 Thiemo Seufer * * Permission is hereby granted, free of charge, to any person obtaining a= copy @@ -75,8 +75,9 @@ static int64_t load_kernel(void) (uint64_t *)&kernel_high, big_endian, EM_MIPS, 1, 0); if (kernel_size >=3D 0) { - if ((entry & ~0x7fffffffULL) =3D=3D 0x80000000) + if ((entry & ~0x7fffffffULL) =3D=3D 0x80000000) { entry =3D (int32_t)entry; + } } else { error_report("could not load kernel '%s': %s", loaderparams.kernel_filename, @@ -88,9 +89,10 @@ static int64_t load_kernel(void) initrd_size =3D 0; initrd_offset =3D 0; if (loaderparams.initrd_filename) { - initrd_size =3D get_image_size (loaderparams.initrd_filename); + initrd_size =3D get_image_size(loaderparams.initrd_filename); if (initrd_size > 0) { - initrd_offset =3D (kernel_high + ~INITRD_PAGE_MASK) & INITRD_P= AGE_MASK; + initrd_offset =3D (kernel_high + ~INITRD_PAGE_MASK) & + INITRD_PAGE_MASK; if (initrd_offset + initrd_size > loaderparams.ram_size) { error_report("memory too small for initial ram disk '%s'", loaderparams.initrd_filename); @@ -174,8 +176,9 @@ mips_mipssim_init(MachineState *machine) /* Map the BIOS / boot exception handler. */ memory_region_add_subregion(address_space_mem, 0x1fc00000LL, bios); /* Load a BIOS / boot exception handler image. */ - if (bios_name =3D=3D NULL) + if (bios_name =3D=3D NULL) { bios_name =3D BIOS_FILENAME; + } filename =3D qemu_find_file(QEMU_FILE_TYPE_BIOS, bios_name); if (filename) { bios_size =3D load_image_targphys(filename, 0x1fc00000LL, BIOS_SIZ= E); @@ -211,8 +214,10 @@ mips_mipssim_init(MachineState *machine) get_system_io(), 0, 0x00010000); memory_region_add_subregion(get_system_memory(), 0x1fd00000, isa); =20 - /* A single 16450 sits at offset 0x3f8. It is attached to - MIPS CPU INT2, which is interrupt 4. */ + /* + * A single 16450 sits at offset 0x3f8. It is attached to + * MIPS CPU INT2, which is interrupt 4. + */ if (serial_hd(0)) serial_init(0x3f8, env->irq[4], 115200, serial_hd(0), get_system_io()); --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218092; cv=none; d=zoho.com; s=zohoarc; b=WxEv317ejbk3jyMVgdKIAIHlG8opZTxdFg305vrOwpNGSaSYhR07kHt5izIPCTByAVg11LPzdG1V4sOWiqoK/EIyGmnjLYEZYuxa1olGwJlhxwlz6cXQ7EezlIhYQ2f4KQhafnlkBKgr1NxENZUwvCKcZzJlqAUNAH3ZQ/jcgdo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218092; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=sKkqB+Q4o9tk01AA77UwegqsmkSLo7WOmNU1AaY5qVQ=; b=U08bKsbK+lPIm8RP1JqIiG6DoZ7+dTgfdzbYaNTqgqG3aiisrCrlG49v7GP91UkFTF0FusbP5/9cOs4K5p7m4ZdqnB7tn4W0EGGIeq+MKF827fvErYJ7GeYQZhv80K7yY760YURX+tJ4Y2O3DIKaipXosuLOU3KT8PPEyrXc6PE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218092419367.36773287931476; Mon, 19 Aug 2019 05:34:52 -0700 (PDT) Received: from localhost ([::1]:49274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgs6-0001YJ-Ib for importer@patchew.org; Mon, 19 Aug 2019 08:34:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36294) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTo-00029F-AX for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002kC-Cl for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:44 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:57999 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTl-0002ak-UN for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 0196C1A21BB; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 80B971A2136; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:56 +0200 Message-Id: <1566216496-17375-18-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 17/37] target/mips: Clean up handling of CP0 register 0 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 0. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 3 +++ target/mips/translate.c | 40 ++++++++++++++++++++-------------------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index eda8350..e2f6844 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -279,6 +279,9 @@ typedef struct mips_def_t mips_def_t; =20 /* CP0 Register 00 */ #define CP0_REG00__INDEX 0 +#define CP0_REG00__MVPCONTROL 1 +#define CP0_REG00__MVPCONF0 2 +#define CP0_REG00__MVPCONF1 3 #define CP0_REG00__VPCONTROL 4 /* CP0 Register 01 */ /* CP0 Register 02 */ diff --git a/target/mips/translate.c b/target/mips/translate.c index fe4a05c..06a1646 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -6853,26 +6853,26 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) switch (reg) { case CP0_REGISTER_00: switch (sel) { - case 0: + case CP0_REG00__INDEX: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Index)); register_name =3D "Index"; break; - case 1: + case CP0_REG00__MVPCONTROL: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_mvpcontrol(arg, cpu_env); register_name =3D "MVPControl"; break; - case 2: + case CP0_REG00__MVPCONF0: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_mvpconf0(arg, cpu_env); register_name =3D "MVPConf0"; break; - case 3: + case CP0_REG00__MVPCONF1: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_mvpconf1(arg, cpu_env); register_name =3D "MVPConf1"; break; - case 4: + case CP0_REG00__VPCONTROL: CP0_CHECK(ctx->vp); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPControl)); register_name =3D "VPControl"; @@ -7621,26 +7621,26 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) switch (reg) { case CP0_REGISTER_00: switch (sel) { - case 0: + case CP0_REG00__INDEX: gen_helper_mtc0_index(cpu_env, arg); register_name =3D "Index"; break; - case 1: + case CP0_REG00__MVPCONTROL: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_mvpcontrol(cpu_env, arg); register_name =3D "MVPControl"; break; - case 2: + case CP0_REG00__MVPCONF0: CP0_CHECK(ctx->insn_flags & ASE_MT); /* ignored */ register_name =3D "MVPConf0"; break; - case 3: + case CP0_REG00__MVPCONF1: CP0_CHECK(ctx->insn_flags & ASE_MT); /* ignored */ register_name =3D "MVPConf1"; break; - case 4: + case CP0_REG00__VPCONTROL: CP0_CHECK(ctx->vp); /* ignored */ register_name =3D "VPControl"; @@ -8373,26 +8373,26 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) switch (reg) { case CP0_REGISTER_00: switch (sel) { - case 0: + case CP0_REG00__INDEX: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Index)); register_name =3D "Index"; break; - case 1: + case CP0_REG00__MVPCONTROL: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_mvpcontrol(arg, cpu_env); register_name =3D "MVPControl"; break; - case 2: + case CP0_REG00__MVPCONF0: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_mvpconf0(arg, cpu_env); register_name =3D "MVPConf0"; break; - case 3: + case CP0_REG00__MVPCONF1: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_mvpconf1(arg, cpu_env); register_name =3D "MVPConf1"; break; - case 4: + case CP0_REG00__VPCONTROL: CP0_CHECK(ctx->vp); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPControl)); register_name =3D "VPControl"; @@ -9095,26 +9095,26 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) switch (reg) { case CP0_REGISTER_00: switch (sel) { - case 0: + case CP0_REG00__INDEX: gen_helper_mtc0_index(cpu_env, arg); register_name =3D "Index"; break; - case 1: + case CP0_REG00__MVPCONTROL: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_mvpcontrol(cpu_env, arg); register_name =3D "MVPControl"; break; - case 2: + case CP0_REG00__MVPCONF0: CP0_CHECK(ctx->insn_flags & ASE_MT); /* ignored */ register_name =3D "MVPConf0"; break; - case 3: + case CP0_REG00__MVPCONF1: CP0_CHECK(ctx->insn_flags & ASE_MT); /* ignored */ register_name =3D "MVPConf1"; break; - case 4: + case CP0_REG00__VPCONTROL: CP0_CHECK(ctx->vp); /* ignored */ register_name =3D "VPControl"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217736; cv=none; d=zoho.com; s=zohoarc; b=bVed2SeBdVWAVDupI4pKbI6/Ms7ulkCuDd33q1dmyyMsDa9xtyB5rlAleYsd1U4T3LuxzgWOdP3wJDWhcxTc6gUY+q6Ein2F5/jfFfvxAgDEmltFdk6JhDPpcwwVbJ1HfWJoYxeU9cAw7PIZfbKsKSNXhZ0OSmWtjcxorFxBJ8c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217736; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=AvMl3Rg+T596SkKaTiVQYdB78O7BT5bsBV8qQ7urTU4=; b=LjxJg4X8yFtpdjTwWWwzY1hO/d5zZYF4LiLiMJj7o2KatnLJXwvsiBWzCNj3IrObT0Ki0tjEOQ5Y4uxyr5+7iz64hzDxAy9vZPLquwurtBLqAOFU56WIbXv5NSCMyISipTIPt5raGLeDqpVSa1G1W9A/s9HXwoyEtXQm508/hDM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217736042723.7096327175531; Mon, 19 Aug 2019 05:28:56 -0700 (PDT) Received: from localhost ([::1]:49226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgmL-0005iq-1F for importer@patchew.org; Mon, 19 Aug 2019 08:28:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36291) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTo-000292-6G for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002jq-7m for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:44 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58004 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTl-0002ar-S8 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 170F81A20E4; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 8879D1A2145; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:57 +0200 Message-Id: <1566216496-17375-19-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 18/37] target/mips: Clean up handling of CP0 register 1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 1. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 8 +++++++ target/mips/translate.c | 64 ++++++++++++++++++++++++---------------------= ---- 2 files changed, 40 insertions(+), 32 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index e2f6844..597afa8 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -284,6 +284,14 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG00__MVPCONF1 3 #define CP0_REG00__VPCONTROL 4 /* CP0 Register 01 */ +#define CP0_REG01__RANDOM 0 +#define CP0_REG01__VPECONTROL 1 +#define CP0_REG01__VPECONF0 2 +#define CP0_REG01__VPECONF1 3 +#define CP0_REG01__YQMASK 4 +#define CP0_REG01__VPESCHEDULE 5 +#define CP0_REG01__VPESCHEFBACK 6 +#define CP0_REG01__VPEOPT 7 /* CP0 Register 02 */ #define CP0_REG02__ENTRYLO0 0 /* CP0 Register 03 */ diff --git a/target/mips/translate.c b/target/mips/translate.c index 06a1646..e350545 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -6883,42 +6883,42 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_01: switch (sel) { - case 0: + case CP0_REG01__RANDOM: CP0_CHECK(!(ctx->insn_flags & ISA_MIPS32R6)); gen_helper_mfc0_random(arg, cpu_env); register_name =3D "Random"; break; - case 1: + case CP0_REG01__VPECONTROL: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPEControl)); register_name =3D "VPEControl"; break; - case 2: + case CP0_REG01__VPECONF0: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPEConf0)); register_name =3D "VPEConf0"; break; - case 3: + case CP0_REG01__VPECONF1: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPEConf1)); register_name =3D "VPEConf1"; break; - case 4: + case CP0_REG01__YQMASK: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load64(arg, offsetof(CPUMIPSState, CP0_YQMask)); register_name =3D "YQMask"; break; - case 5: + case CP0_REG01__VPESCHEDULE: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load64(arg, offsetof(CPUMIPSState, CP0_VPESchedule)); register_name =3D "VPESchedule"; break; - case 6: + case CP0_REG01__VPESCHEFBACK: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load64(arg, offsetof(CPUMIPSState, CP0_VPEScheFBack)); register_name =3D "VPEScheFBack"; break; - case 7: + case CP0_REG01__VPEOPT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPEOpt)); register_name =3D "VPEOpt"; @@ -7651,43 +7651,43 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_01: switch (sel) { - case 0: + case CP0_REG01__RANDOM: /* ignored */ register_name =3D "Random"; break; - case 1: + case CP0_REG01__VPECONTROL: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_vpecontrol(cpu_env, arg); register_name =3D "VPEControl"; break; - case 2: + case CP0_REG01__VPECONF0: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_vpeconf0(cpu_env, arg); register_name =3D "VPEConf0"; break; - case 3: + case CP0_REG01__VPECONF1: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_vpeconf1(cpu_env, arg); register_name =3D "VPEConf1"; break; - case 4: + case CP0_REG01__YQMASK: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_yqmask(cpu_env, arg); register_name =3D "YQMask"; break; - case 5: + case CP0_REG01__VPESCHEDULE: CP0_CHECK(ctx->insn_flags & ASE_MT); tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPESchedule)); register_name =3D "VPESchedule"; break; - case 6: + case CP0_REG01__VPESCHEFBACK: CP0_CHECK(ctx->insn_flags & ASE_MT); tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPEScheFBack)); register_name =3D "VPEScheFBack"; break; - case 7: + case CP0_REG01__VPEOPT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_vpeopt(cpu_env, arg); register_name =3D "VPEOpt"; @@ -8403,42 +8403,42 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_01: switch (sel) { - case 0: + case CP0_REG01__RANDOM: CP0_CHECK(!(ctx->insn_flags & ISA_MIPS32R6)); gen_helper_mfc0_random(arg, cpu_env); register_name =3D "Random"; break; - case 1: + case CP0_REG01__VPECONTROL: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPEControl)); register_name =3D "VPEControl"; break; - case 2: + case CP0_REG01__VPECONF0: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPEConf0)); register_name =3D "VPEConf0"; break; - case 3: + case CP0_REG01__VPECONF1: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPEConf1)); register_name =3D "VPEConf1"; break; - case 4: + case CP0_REG01__YQMASK: CP0_CHECK(ctx->insn_flags & ASE_MT); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_YQMask)= ); register_name =3D "YQMask"; break; - case 5: + case CP0_REG01__VPESCHEDULE: CP0_CHECK(ctx->insn_flags & ASE_MT); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPESche= dule)); register_name =3D "VPESchedule"; break; - case 6: + case CP0_REG01__VPESCHEFBACK: CP0_CHECK(ctx->insn_flags & ASE_MT); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPESche= FBack)); register_name =3D "VPEScheFBack"; break; - case 7: + case CP0_REG01__VPEOPT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_VPEOpt)); register_name =3D "VPEOpt"; @@ -9125,41 +9125,41 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_01: switch (sel) { - case 0: + case CP0_REG01__RANDOM: /* ignored */ register_name =3D "Random"; break; - case 1: + case CP0_REG01__VPECONTROL: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_vpecontrol(cpu_env, arg); register_name =3D "VPEControl"; break; - case 2: + case CP0_REG01__VPECONF0: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_vpeconf0(cpu_env, arg); register_name =3D "VPEConf0"; break; - case 3: + case CP0_REG01__VPECONF1: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_vpeconf1(cpu_env, arg); register_name =3D "VPEConf1"; break; - case 4: + case CP0_REG01__YQMASK: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_yqmask(cpu_env, arg); register_name =3D "YQMask"; break; - case 5: + case CP0_REG01__VPESCHEDULE: CP0_CHECK(ctx->insn_flags & ASE_MT); tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPESche= dule)); register_name =3D "VPESchedule"; break; - case 6: + case CP0_REG01__VPESCHEFBACK: CP0_CHECK(ctx->insn_flags & ASE_MT); tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_VPESche= FBack)); register_name =3D "VPEScheFBack"; break; - case 7: + case CP0_REG01__VPEOPT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_vpeopt(cpu_env, arg); register_name =3D "VPEOpt"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218149; cv=none; d=zoho.com; s=zohoarc; b=CDPmQtHzNfYTtIP6Lob25qCMymekDnSvBe9lGf9pDHoHhH8UJlSfQpnE+N3+rO2RtFm+zJ9dJrzcUoLr0xhoExiJLBchX1CBrnESl406kcgg41Znx0YJWmRrpbmiHsDDECcmNnDbU92VeSLUSOoLr+/UBop7s/rG0TH6wiVrg/g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218149; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=FjPAs5JOGpr5cAKfHC6pbhuDgw/oNDy0GaBvJXzwW0Q=; b=b1+dES/99fu5fT6eWjkOSWvw2xYwIv3CmwF79wpJzX2dESz0P2oD4mbc6Fcn5NWbpdcseTRuDM3E1Plia7VS/Tz41IiiTardkznGXK+Z4xBsM2oyknnCVLjlUS0xWD6xIxLFtMtmEUB+J1FbUZCdboL8TjZMupOLCGxlZh/1Dw8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218149822783.571478942452; Mon, 19 Aug 2019 05:35:49 -0700 (PDT) Received: from localhost ([::1]:49278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgt2-000387-EE for importer@patchew.org; Mon, 19 Aug 2019 08:35:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36285) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTo-00028u-Aa for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002jl-7O for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:44 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58005 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTl-0002ap-Ri for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 22A251A20C5; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 96DEA1A2150; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:58 +0200 Message-Id: <1566216496-17375-20-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 19/37] target/mips: Clean up handling of CP0 register 2 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 2. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 7 ++++++ target/mips/translate.c | 64 ++++++++++++++++++++++++---------------------= ---- 2 files changed, 39 insertions(+), 32 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 597afa8..eebdc9f 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -294,6 +294,13 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG01__VPEOPT 7 /* CP0 Register 02 */ #define CP0_REG02__ENTRYLO0 0 +#define CP0_REG02__TCSTATUS 1 +#define CP0_REG02__TCBIND 2 +#define CP0_REG02__TCRESTART 3 +#define CP0_REG02__TCHALT 4 +#define CP0_REG02__TCCONTEXT 5 +#define CP0_REG02__TCSCHEDULE 6 +#define CP0_REG02__TCSCHEFBACK 7 /* CP0 Register 03 */ #define CP0_REG03__ENTRYLO1 0 #define CP0_REG03__GLOBALNUM 1 diff --git a/target/mips/translate.c b/target/mips/translate.c index e350545..6e65312 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -6929,7 +6929,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_02: switch (sel) { - case 0: + case CP0_REG02__ENTRYLO0: { TCGv_i64 tmp =3D tcg_temp_new_i64(); tcg_gen_ld_i64(tmp, cpu_env, @@ -6946,37 +6946,37 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) } register_name =3D "EntryLo0"; break; - case 1: + case CP0_REG02__TCSTATUS: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tcstatus(arg, cpu_env); register_name =3D "TCStatus"; break; - case 2: + case CP0_REG02__TCBIND: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tcbind(arg, cpu_env); register_name =3D "TCBind"; break; - case 3: + case CP0_REG02__TCRESTART: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tcrestart(arg, cpu_env); register_name =3D "TCRestart"; break; - case 4: + case CP0_REG02__TCHALT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tchalt(arg, cpu_env); register_name =3D "TCHalt"; break; - case 5: + case CP0_REG02__TCCONTEXT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tccontext(arg, cpu_env); register_name =3D "TCContext"; break; - case 6: + case CP0_REG02__TCSCHEDULE: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tcschedule(arg, cpu_env); register_name =3D "TCSchedule"; break; - case 7: + case CP0_REG02__TCSCHEFBACK: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tcschefback(arg, cpu_env); register_name =3D "TCScheFBack"; @@ -7698,41 +7698,41 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_02: switch (sel) { - case 0: + case CP0_REG02__ENTRYLO0: gen_helper_mtc0_entrylo0(cpu_env, arg); register_name =3D "EntryLo0"; break; - case 1: + case CP0_REG02__TCSTATUS: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcstatus(cpu_env, arg); register_name =3D "TCStatus"; break; - case 2: + case CP0_REG02__TCBIND: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcbind(cpu_env, arg); register_name =3D "TCBind"; break; - case 3: + case CP0_REG02__TCRESTART: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcrestart(cpu_env, arg); register_name =3D "TCRestart"; break; - case 4: + case CP0_REG02__TCHALT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tchalt(cpu_env, arg); register_name =3D "TCHalt"; break; - case 5: + case CP0_REG02__TCCONTEXT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tccontext(cpu_env, arg); register_name =3D "TCContext"; break; - case 6: + case CP0_REG02__TCSCHEDULE: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcschedule(cpu_env, arg); register_name =3D "TCSchedule"; break; - case 7: + case CP0_REG02__TCSCHEFBACK: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcschefback(cpu_env, arg); register_name =3D "TCScheFBack"; @@ -8449,41 +8449,41 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_02: switch (sel) { - case 0: + case CP0_REG02__ENTRYLO0: tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_EntryLo= 0)); register_name =3D "EntryLo0"; break; - case 1: + case CP0_REG02__TCSTATUS: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tcstatus(arg, cpu_env); register_name =3D "TCStatus"; break; - case 2: + case CP0_REG02__TCBIND: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mfc0_tcbind(arg, cpu_env); register_name =3D "TCBind"; break; - case 3: + case CP0_REG02__TCRESTART: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_dmfc0_tcrestart(arg, cpu_env); register_name =3D "TCRestart"; break; - case 4: + case CP0_REG02__TCHALT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_dmfc0_tchalt(arg, cpu_env); register_name =3D "TCHalt"; break; - case 5: + case CP0_REG02__TCCONTEXT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_dmfc0_tccontext(arg, cpu_env); register_name =3D "TCContext"; break; - case 6: + case CP0_REG02__TCSCHEDULE: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_dmfc0_tcschedule(arg, cpu_env); register_name =3D "TCSchedule"; break; - case 7: + case CP0_REG02__TCSCHEFBACK: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_dmfc0_tcschefback(arg, cpu_env); register_name =3D "TCScheFBack"; @@ -9170,41 +9170,41 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_02: switch (sel) { - case 0: + case CP0_REG02__ENTRYLO0: gen_helper_dmtc0_entrylo0(cpu_env, arg); register_name =3D "EntryLo0"; break; - case 1: + case CP0_REG02__TCSTATUS: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcstatus(cpu_env, arg); register_name =3D "TCStatus"; break; - case 2: + case CP0_REG02__TCBIND: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcbind(cpu_env, arg); register_name =3D "TCBind"; break; - case 3: + case CP0_REG02__TCRESTART: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcrestart(cpu_env, arg); register_name =3D "TCRestart"; break; - case 4: + case CP0_REG02__TCHALT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tchalt(cpu_env, arg); register_name =3D "TCHalt"; break; - case 5: + case CP0_REG02__TCCONTEXT: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tccontext(cpu_env, arg); register_name =3D "TCContext"; break; - case 6: + case CP0_REG02__TCSCHEDULE: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcschedule(cpu_env, arg); register_name =3D "TCSchedule"; break; - case 7: + case CP0_REG02__TCSCHEFBACK: CP0_CHECK(ctx->insn_flags & ASE_MT); gen_helper_mtc0_tcschefback(cpu_env, arg); register_name =3D "TCScheFBack"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217322; cv=none; d=zoho.com; s=zohoarc; b=kZNkpXeJAiQmS6pGibYHCqy9o0Mmeag/zZ7g9ps0upwWz75hDuy+hh+G5d+PhfM9eNV4CXz+to3SUlEJJMPJ5GQj6+7T5PiEpT4/EejiT7d/osIKzY2AEkx9BDV7VvMlI30cb5YMdSGuxYY7l5KPrdfr8mvTdC64m1aKMCHNwc0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217322; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=TU/drGwAfZKHCP0yPWQTvrQKNB2DKtYTwmfBInRCzVU=; b=IiQ9wjdx2I4ZURUh+cV8z1PWIkKX/RuyGuyAoxWrrOxuDIzbgKsGUDh+m2ngdlDU58RkPAzjiSM08wAmeChL5Knhk5Rw3Mo3/Xe073IPPbVDgBhdttXUF7OB/xkLu6dmUikzFk4efuRGTIClXilJwIiP/LsTsoiHSRMSsXloCf0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217322503919.3061294625093; Mon, 19 Aug 2019 05:22:02 -0700 (PDT) Received: from localhost ([::1]:49132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgfg-0007Ba-Os for importer@patchew.org; Mon, 19 Aug 2019 08:22:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36305) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTo-00029b-Ia for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002kF-D2 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:44 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58025 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTl-0002bJ-VJ for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 4B8AB1A2221; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id A45231A2070; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:07:59 +0200 Message-Id: <1566216496-17375-21-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 20/37] target/mips: Clean up handling of CP0 register 5 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 5. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 6 +++++ target/mips/translate.c | 64 ++++++++++++++++++++++++---------------------= ---- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index eebdc9f..2ab388b 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -312,6 +312,12 @@ typedef struct mips_def_t mips_def_t; /* CP0 Register 05 */ #define CP0_REG05__PAGEMASK 0 #define CP0_REG05__PAGEGRAIN 1 +#define CP0_REG05__SEGCTL0 2 +#define CP0_REG05__SEGCTL1 3 +#define CP0_REG05__SEGCTL2 4 +#define CP0_REG05__PWBASE 5 +#define CP0_REG05__PWFIELD 6 +#define CP0_REG05__PWSIZE 7 /* CP0 Register 06 */ #define CP0_REG06__WIRED 0 /* CP0 Register 07 */ diff --git a/target/mips/translate.c b/target/mips/translate.c index 6e65312..9d1e315 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7042,44 +7042,44 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_05: switch (sel) { - case 0: + case CP0_REG05__PAGEMASK: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PageMask)); register_name =3D "PageMask"; break; - case 1: + case CP0_REG05__PAGEGRAIN: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PageGrain)); register_name =3D "PageGrain"; break; - case 2: + case CP0_REG05__SEGCTL0: CP0_CHECK(ctx->sc); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_SegCtl0= )); tcg_gen_ext32s_tl(arg, arg); register_name =3D "SegCtl0"; break; - case 3: + case CP0_REG05__SEGCTL1: CP0_CHECK(ctx->sc); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_SegCtl1= )); tcg_gen_ext32s_tl(arg, arg); register_name =3D "SegCtl1"; break; - case 4: + case CP0_REG05__SEGCTL2: CP0_CHECK(ctx->sc); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_SegCtl2= )); tcg_gen_ext32s_tl(arg, arg); register_name =3D "SegCtl2"; break; - case 5: + case CP0_REG05__PWBASE: check_pw(ctx); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PWBase)); register_name =3D "PWBase"; break; - case 6: + case CP0_REG05__PWFIELD: check_pw(ctx); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PWField)); register_name =3D "PWField"; break; - case 7: + case CP0_REG05__PWSIZE: check_pw(ctx); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PWSize)); register_name =3D "PWSize"; @@ -7783,42 +7783,42 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_05: switch (sel) { - case 0: + case CP0_REG05__PAGEMASK: gen_helper_mtc0_pagemask(cpu_env, arg); register_name =3D "PageMask"; break; - case 1: + case CP0_REG05__PAGEGRAIN: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_pagegrain(cpu_env, arg); register_name =3D "PageGrain"; ctx->base.is_jmp =3D DISAS_STOP; break; - case 2: + case CP0_REG05__SEGCTL0: CP0_CHECK(ctx->sc); gen_helper_mtc0_segctl0(cpu_env, arg); register_name =3D "SegCtl0"; break; - case 3: + case CP0_REG05__SEGCTL1: CP0_CHECK(ctx->sc); gen_helper_mtc0_segctl1(cpu_env, arg); register_name =3D "SegCtl1"; break; - case 4: + case CP0_REG05__SEGCTL2: CP0_CHECK(ctx->sc); gen_helper_mtc0_segctl2(cpu_env, arg); register_name =3D "SegCtl2"; break; - case 5: + case CP0_REG05__PWBASE: check_pw(ctx); gen_mtc0_store32(arg, offsetof(CPUMIPSState, CP0_PWBase)); register_name =3D "PWBase"; break; - case 6: + case CP0_REG05__PWFIELD: check_pw(ctx); gen_helper_mtc0_pwfield(cpu_env, arg); register_name =3D "PWField"; break; - case 7: + case CP0_REG05__PWSIZE: check_pw(ctx); gen_helper_mtc0_pwsize(cpu_env, arg); register_name =3D "PWSize"; @@ -8534,41 +8534,41 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_05: switch (sel) { - case 0: + case CP0_REG05__PAGEMASK: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PageMask)); register_name =3D "PageMask"; break; - case 1: + case CP0_REG05__PAGEGRAIN: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PageGrain)); register_name =3D "PageGrain"; break; - case 2: + case CP0_REG05__SEGCTL0: CP0_CHECK(ctx->sc); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_SegCtl0= )); register_name =3D "SegCtl0"; break; - case 3: + case CP0_REG05__SEGCTL1: CP0_CHECK(ctx->sc); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_SegCtl1= )); register_name =3D "SegCtl1"; break; - case 4: + case CP0_REG05__SEGCTL2: CP0_CHECK(ctx->sc); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_SegCtl2= )); register_name =3D "SegCtl2"; break; - case 5: + case CP0_REG05__PWBASE: check_pw(ctx); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_PWBase)= ); register_name =3D "PWBase"; break; - case 6: + case CP0_REG05__PWFIELD: check_pw(ctx); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_PWField= )); register_name =3D "PWField"; break; - case 7: + case CP0_REG05__PWSIZE: check_pw(ctx); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_PWSize)= ); register_name =3D "PWSize"; @@ -9255,41 +9255,41 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_05: switch (sel) { - case 0: + case CP0_REG05__PAGEMASK: gen_helper_mtc0_pagemask(cpu_env, arg); register_name =3D "PageMask"; break; - case 1: + case CP0_REG05__PAGEGRAIN: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_pagegrain(cpu_env, arg); register_name =3D "PageGrain"; break; - case 2: + case CP0_REG05__SEGCTL0: CP0_CHECK(ctx->sc); gen_helper_mtc0_segctl0(cpu_env, arg); register_name =3D "SegCtl0"; break; - case 3: + case CP0_REG05__SEGCTL1: CP0_CHECK(ctx->sc); gen_helper_mtc0_segctl1(cpu_env, arg); register_name =3D "SegCtl1"; break; - case 4: + case CP0_REG05__SEGCTL2: CP0_CHECK(ctx->sc); gen_helper_mtc0_segctl2(cpu_env, arg); register_name =3D "SegCtl2"; break; - case 5: + case CP0_REG05__PWBASE: check_pw(ctx); tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_PWBase)= ); register_name =3D "PWBase"; break; - case 6: + case CP0_REG05__PWFIELD: check_pw(ctx); gen_helper_mtc0_pwfield(cpu_env, arg); register_name =3D "PWField"; break; - case 7: + case CP0_REG05__PWSIZE: check_pw(ctx); gen_helper_mtc0_pwsize(cpu_env, arg); register_name =3D "PWSize"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217923; cv=none; d=zoho.com; s=zohoarc; b=KaOLT6qLWbDw3uY17u2YRzufSI1QkRavh06VYwp7jOQ+34y0ru/zLxa6AFGncihvKjLa2zXb8oUJrX3Lcpbg/5CIECKJDAC3ISNOYGF5sljvWKPq3ioYc7ve9E6VUK2pVyQfD6C3rqZDgSdAqzCMxySW98V5jqReoQsB12UfJjk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217923; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=reCka1T06sbG2tSGdGbUTu6zgEw+aIuJgJuIs+t0JNA=; b=IhMwy/UgWREbiMzvlrXWRW9t01fQdUWm4NwxnpJDOuWJnsLeM4Z+9LSw1eqDAD1vcY5sKw/BMGVHN1E9pTseVjXHv4ZnXN/cbUXd6uz4cR50pmA4p8xby1k+UTYySmeLMnlbrWsOG9ropG7aolxvv6BUq4Fx0EtxkhdDI03Qp84= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 15662179233878.371757678555241; Mon, 19 Aug 2019 05:32:03 -0700 (PDT) Received: from localhost ([::1]:49232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgpF-0007EL-KW for importer@patchew.org; Mon, 19 Aug 2019 08:31:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36300) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTo-00029M-H1 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002k0-9k for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:44 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58021 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTl-0002bH-TO for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 366D41A21FA; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id AFB681A20C6; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:00 +0200 Message-Id: <1566216496-17375-22-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 21/37] target/mips: Clean up handling of CP0 register 6 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 6. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 6 ++++++ target/mips/translate.c | 56 ++++++++++++++++++++++++---------------------= ---- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 2ab388b..c865b51 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -320,6 +320,12 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG05__PWSIZE 7 /* CP0 Register 06 */ #define CP0_REG06__WIRED 0 +#define CP0_REG06__SRSCONF0 1 +#define CP0_REG06__SRSCONF1 2 +#define CP0_REG06__SRSCONF2 3 +#define CP0_REG06__SRSCONF3 4 +#define CP0_REG06__SRSCONF4 5 +#define CP0_REG06__PWCTL 6 /* CP0 Register 07 */ #define CP0_REG07__HWRENA 0 /* CP0 Register 08 */ diff --git a/target/mips/translate.c b/target/mips/translate.c index 9d1e315..cdcc1cc 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7090,36 +7090,36 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_06: switch (sel) { - case 0: + case CP0_REG06__WIRED: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Wired)); register_name =3D "Wired"; break; - case 1: + case CP0_REG06__SRSCONF0: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf0)); register_name =3D "SRSConf0"; break; - case 2: + case CP0_REG06__SRSCONF1: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf1)); register_name =3D "SRSConf1"; break; - case 3: + case CP0_REG06__SRSCONF2: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf2)); register_name =3D "SRSConf2"; break; - case 4: + case CP0_REG06__SRSCONF3: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf3)); register_name =3D "SRSConf3"; break; - case 5: + case CP0_REG06__SRSCONF4: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf4)); register_name =3D "SRSConf4"; break; - case 6: + case CP0_REG06__PWCTL: check_pw(ctx); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PWCtl)); register_name =3D "PWCtl"; @@ -7829,36 +7829,36 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_06: switch (sel) { - case 0: + case CP0_REG06__WIRED: gen_helper_mtc0_wired(cpu_env, arg); register_name =3D "Wired"; break; - case 1: + case CP0_REG06__SRSCONF0: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf0(cpu_env, arg); register_name =3D "SRSConf0"; break; - case 2: + case CP0_REG06__SRSCONF1: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf1(cpu_env, arg); register_name =3D "SRSConf1"; break; - case 3: + case CP0_REG06__SRSCONF2: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf2(cpu_env, arg); register_name =3D "SRSConf2"; break; - case 4: + case CP0_REG06__SRSCONF3: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf3(cpu_env, arg); register_name =3D "SRSConf3"; break; - case 5: + case CP0_REG06__SRSCONF4: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf4(cpu_env, arg); register_name =3D "SRSConf4"; break; - case 6: + case CP0_REG06__PWCTL: check_pw(ctx); gen_helper_mtc0_pwctl(cpu_env, arg); register_name =3D "PWCtl"; @@ -8579,36 +8579,36 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_06: switch (sel) { - case 0: + case CP0_REG06__WIRED: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Wired)); register_name =3D "Wired"; break; - case 1: + case CP0_REG06__SRSCONF0: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf0)); register_name =3D "SRSConf0"; break; - case 2: + case CP0_REG06__SRSCONF1: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf1)); register_name =3D "SRSConf1"; break; - case 3: + case CP0_REG06__SRSCONF2: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf2)); register_name =3D "SRSConf2"; break; - case 4: + case CP0_REG06__SRSCONF3: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf3)); register_name =3D "SRSConf3"; break; - case 5: + case CP0_REG06__SRSCONF4: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSConf4)); register_name =3D "SRSConf4"; break; - case 6: + case CP0_REG06__PWCTL: check_pw(ctx); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PWCtl)); register_name =3D "PWCtl"; @@ -9300,36 +9300,36 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_06: switch (sel) { - case 0: + case CP0_REG06__WIRED: gen_helper_mtc0_wired(cpu_env, arg); register_name =3D "Wired"; break; - case 1: + case CP0_REG06__SRSCONF0: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf0(cpu_env, arg); register_name =3D "SRSConf0"; break; - case 2: + case CP0_REG06__SRSCONF1: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf1(cpu_env, arg); register_name =3D "SRSConf1"; break; - case 3: + case CP0_REG06__SRSCONF2: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf2(cpu_env, arg); register_name =3D "SRSConf2"; break; - case 4: + case CP0_REG06__SRSCONF3: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf3(cpu_env, arg); register_name =3D "SRSConf3"; break; - case 5: + case CP0_REG06__SRSCONF4: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsconf4(cpu_env, arg); register_name =3D "SRSConf4"; break; - case 6: + case CP0_REG06__PWCTL: check_pw(ctx); gen_helper_mtc0_pwctl(cpu_env, arg); register_name =3D "PWCtl"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218255; cv=none; d=zoho.com; s=zohoarc; b=ZzU40xU8PzcgGVkIXKCraxiJV836ZTPzd9vQok/Q2mMno3S+ZrZTXZpY2ceJATIf5nToBjP44Brgi0tD2hzUleVL4YqYEhHEwpZg3RHPRgA62029ZfSqnMjMv2BFX/cRLYVuxGG0o2TIyfXUjnopjrhSyAuFF2hRkr4/uD/lPeg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218255; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=iGvBqwCXupXBuIEPNe81ZCmbh+BcitqAyxJAz5QOQgA=; b=Jyhn8BoQmzFQ60eelY65ZZ57KlYhMT8vA09Pp6neoxeOtjBlYkUqZi4B9xE8FUZsrS8VY7k6l96GLzlCILcBsRxb5Q8F5O2sbGHgxqkQ4Vbw3fJCpYQgktxMyilU32/g6wEFzIZNPyO3VWapCHd6dmJfWHiwVBJ94S0NMSApzbM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218255862685.0837159784847; Mon, 19 Aug 2019 05:37:35 -0700 (PDT) Received: from localhost ([::1]:49334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgue-00066O-4f for importer@patchew.org; Mon, 19 Aug 2019 08:37:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36318) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTo-0002A2-R7 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002l3-L5 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:44 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58054 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTm-0002bf-AO for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 6A7571A2150; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id B818D1A2159; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:01 +0200 Message-Id: <1566216496-17375-23-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 22/37] target/mips: Clean up handling of CP0 register 7 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 7. Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index cdcc1cc..abbb924 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7130,7 +7130,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_07: switch (sel) { - case 0: + case CP0_REG07__HWRENA: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_HWREna)); register_name =3D "HWREna"; @@ -7869,7 +7869,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_07: switch (sel) { - case 0: + case CP0_REG07__HWRENA: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_hwrena(cpu_env, arg); ctx->base.is_jmp =3D DISAS_STOP; @@ -8619,7 +8619,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_07: switch (sel) { - case 0: + case CP0_REG07__HWRENA: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_HWREna)); register_name =3D "HWREna"; @@ -9340,7 +9340,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_07: switch (sel) { - case 0: + case CP0_REG07__HWRENA: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_hwrena(cpu_env, arg); ctx->base.is_jmp =3D DISAS_STOP; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217748; cv=none; d=zoho.com; s=zohoarc; b=Wqy3SYbR5KWMymdODx5Vm0oUYPiJhZrcLHOlBG5aKVfc8EkXrQzTPQtorTqIGwGxWGK3AMU9PbSGMxYlXGZqplOp6482l3JsjERHJ02ovB4gY0gu3Ha41/u8a+5D5Qy4AsNH/BTkiCYoC0WtC+6c7sgwGqHHJdVJbpU+WTFVsK8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217748; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Xad4FDEQvcKbbkURmn1ZgXfJIv7ZibcEI9tdDTbpz9o=; b=mmX2pv1DAzgZvyYdhJyABI+oj3d2emGTB01gXtr6vht+HOJCg8nE1kGpFjtNBdfRzJaDrHeAkYlj3tpWTVBTeYJvPczN/mX8N7gBMuAe2sdgXD6nsEhhPXNz8YgYUx3cLd2qiFWF9lCOtbxT1pVLtxS0boLGHjdJ8DKv/V/SkO4= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217748611819.8687788892217; Mon, 19 Aug 2019 05:29:08 -0700 (PDT) Received: from localhost ([::1]:49228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgmY-0005rX-OJ for importer@patchew.org; Mon, 19 Aug 2019 08:29:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36284) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTo-00028n-2b for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002kN-Dc for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:43 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58028 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTl-0002bO-W0 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 5E77A1A2088; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id C02B61A2128; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:02 +0200 Message-Id: <1566216496-17375-24-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 23/37] target/mips: Clean up handling of CP0 register 8 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 8. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 1 + target/mips/translate.c | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index c865b51..c7fdf1d 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -332,6 +332,7 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG08__BADVADDR 0 #define CP0_REG08__BADINSTR 1 #define CP0_REG08__BADINSTRP 2 +#define CP0_REG08__BADINSTRX 3 /* CP0 Register 09 */ #define CP0_REG09__COUNT 0 #define CP0_REG09__SAARI 6 diff --git a/target/mips/translate.c b/target/mips/translate.c index abbb924..c046a10 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7141,22 +7141,22 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_08: switch (sel) { - case 0: + case CP0_REG08__BADVADDR: tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_BadVAdd= r)); tcg_gen_ext32s_tl(arg, arg); register_name =3D "BadVAddr"; break; - case 1: + case CP0_REG08__BADINSTR: CP0_CHECK(ctx->bi); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstr)); register_name =3D "BadInstr"; break; - case 2: + case CP0_REG08__BADINSTRP: CP0_CHECK(ctx->bp); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstrP)); register_name =3D "BadInstrP"; break; - case 3: + case CP0_REG08__BADINSTRX: CP0_CHECK(ctx->bi); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstrX)); tcg_gen_andi_tl(arg, arg, ~0xffff); @@ -7881,19 +7881,19 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_08: switch (sel) { - case 0: + case CP0_REG08__BADVADDR: /* ignored */ register_name =3D "BadVAddr"; break; - case 1: + case CP0_REG08__BADINSTR: /* ignored */ register_name =3D "BadInstr"; break; - case 2: + case CP0_REG08__BADINSTRP: /* ignored */ register_name =3D "BadInstrP"; break; - case 3: + case CP0_REG08__BADINSTRX: /* ignored */ register_name =3D "BadInstrX"; break; @@ -8630,21 +8630,21 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_08: switch (sel) { - case 0: + case CP0_REG08__BADVADDR: tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_BadVAdd= r)); register_name =3D "BadVAddr"; break; - case 1: + case CP0_REG08__BADINSTR: CP0_CHECK(ctx->bi); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstr)); register_name =3D "BadInstr"; break; - case 2: + case CP0_REG08__BADINSTRP: CP0_CHECK(ctx->bp); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstrP)); register_name =3D "BadInstrP"; break; - case 3: + case CP0_REG08__BADINSTRX: CP0_CHECK(ctx->bi); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_BadInstrX)); tcg_gen_andi_tl(arg, arg, ~0xffff); @@ -9352,19 +9352,19 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_08: switch (sel) { - case 0: + case CP0_REG08__BADVADDR: /* ignored */ register_name =3D "BadVAddr"; break; - case 1: + case CP0_REG08__BADINSTR: /* ignored */ register_name =3D "BadInstr"; break; - case 2: + case CP0_REG08__BADINSTRP: /* ignored */ register_name =3D "BadInstrP"; break; - case 3: + case CP0_REG08__BADINSTRX: /* ignored */ register_name =3D "BadInstrX"; break; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218085; cv=none; d=zoho.com; s=zohoarc; b=AFZTOkWVDvF6uz0wiyncGsszN2dFuWgwOroNrycXm4axFK9vWZVfE3t8m2FHCH08vKWbjxN+K3Yi5JKqARQAnyvJil+FxGLEzPg2Zn0rtxsafJdySlcnmVID8/Km2Qrwe5YpVScd0CI2IVyF+VwPjH4H88oeH6r2F8uIeELr1GA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218085; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=cwEqMBsuQdZh8nuiJa/JX8gYWItipzfT/TDA5gA7xFU=; b=imRgr4z9cIqXC0xIyjoDiMHCn0J2ylMvxJbhWuW++dTSsnDS36REMJ5lZNM7EbE3pT381Z3KRHyKcdEWtkCTUkOqWz06ShCXAVckOAue2m48Fatu3VezmTcLpcFb9SO+eRztvkFPkyRUqim1IO1gQpsqQCBhouNGDNaDUlGfJtY= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218085964117.24708116249076; Mon, 19 Aug 2019 05:34:45 -0700 (PDT) Received: from localhost ([::1]:49272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgs0-0001Pf-0b for importer@patchew.org; Mon, 19 Aug 2019 08:34:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36317) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTo-0002A1-UI for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002kp-HH for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:44 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58060 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTm-0002bm-5b for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 9ABA81A21B7; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id C73A81A218A; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:03 +0200 Message-Id: <1566216496-17375-25-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 24/37] target/mips: Clean up handling of CP0 register 10 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 10. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 1 + target/mips/translate.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index c7fdf1d..5e08b78 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -341,6 +341,7 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG10__ENTRYHI 0 #define CP0_REG10__GUESTCTL1 4 #define CP0_REG10__GUESTCTL2 5 +#define CP0_REG10__GUESTCTL3 6 /* CP0 Register 11 */ #define CP0_REG11__COMPARE 0 #define CP0_REG11__GUESTCTL0EXT 4 diff --git a/target/mips/translate.c b/target/mips/translate.c index c046a10..ac86655 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7202,7 +7202,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_10: switch (sel) { - case 0: + case CP0_REG10__ENTRYHI: tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_EntryHi= )); tcg_gen_ext32s_tl(arg, arg); register_name =3D "EntryHi"; @@ -7923,7 +7923,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_10: switch (sel) { - case 0: + case CP0_REG10__ENTRYHI: gen_helper_mtc0_entryhi(cpu_env, arg); register_name =3D "EntryHi"; break; @@ -8690,7 +8690,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_10: switch (sel) { - case 0: + case CP0_REG10__ENTRYHI: tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_EntryHi= )); register_name =3D "EntryHi"; break; @@ -9396,7 +9396,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_10: switch (sel) { - case 0: + case CP0_REG10__ENTRYHI: gen_helper_mtc0_entryhi(cpu_env, arg); register_name =3D "EntryHi"; break; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217480; cv=none; d=zoho.com; s=zohoarc; b=bF2JUigOpTWX69zGiHWxBNVOQ9Dn4ioyGoGy+AiU32zG72udLQcq5epE6SLsImNzkuMrQPH5PdGghYVWyTYab5berKrjdiHaVUkpiBVhPHQOYn+3EiPNBFWLANgq1aNzyC61gA4ApTBNoPpkVYvXA8xaDfqqVNzHZdny2919f4M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217480; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=asLlCOhLB7br//Ag8oKzCQEa/3mglEmTBJjWxegjsFs=; b=I5XbwAKqBJnUQZLa+jbzxRFOnK6e4Q4v+bR5Dg4EHBNZDBCgfKtU41kHrBpbBNfaG0QydLXZXLdoNf11aGB4B1Wc52yet8wqRnAnDZcd3M1lAILI68cugzWLWF0WNyWcNwAdljUDqE4yqRL1dsxB1gbPaMJBmYmh14nEMVDX6As= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217480642238.3247892929421; Mon, 19 Aug 2019 05:24:40 -0700 (PDT) Received: from localhost ([::1]:49192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgiE-0002A6-2H for importer@patchew.org; Mon, 19 Aug 2019 08:24:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36274) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTn-00028M-V3 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002kS-DQ for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:43 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58049 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTm-0002be-2Z for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 85B3D1A2070; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id CEAA21A217B; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:04 +0200 Message-Id: <1566216496-17375-26-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 25/37] target/mips: Clean up handling of CP0 register 11 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 11. Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index ac86655..07251a4 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7213,7 +7213,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_11: switch (sel) { - case 0: + case CP0_REG11__COMPARE: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Compare)); register_name =3D "Compare"; break; @@ -7933,7 +7933,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_11: switch (sel) { - case 0: + case CP0_REG11__COMPARE: gen_helper_mtc0_compare(cpu_env, arg); register_name =3D "Compare"; break; @@ -8700,7 +8700,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_11: switch (sel) { - case 0: + case CP0_REG11__COMPARE: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Compare)); register_name =3D "Compare"; break; @@ -9406,7 +9406,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_11: switch (sel) { - case 0: + case CP0_REG11__COMPARE: gen_helper_mtc0_compare(cpu_env, arg); register_name =3D "Compare"; break; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217749; cv=none; d=zoho.com; s=zohoarc; b=BCDg5VEPGox2Rzr7X117xzoadS98ewvqC4mWCGmNAWJR2kH1Qn8ylJ+jjM4++h+FRR1nTvAj6Bk6y65xiiLgO/LHtcXJAiUS/n2OvprodMnGwDrUKyagiYcHPP9vdnXM556BdUUVgfG4WS0pjTKfsJ8esq308yTby8p8VTxJbOY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217749; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=CEMXPzbU6qPyJd+pUeWsuYkZ37uM6hkcX4BQn85GJ+k=; b=EufHIfFBonPd/LuktBuLuruxQb4fBHIsILi7oB1SU8aUY99Y/kQeXr5+Zgoh6bL7iU1F8jFgPDGhbClrH8Y6Z9QL7Lmi/4VYih8iMLhOnJ1fJw/y8up/SzXNJ36NCi2RxH56fXPCSd1qiLr2n2ej9PgpI/mYcT08cHATpaCvvVs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156621774936898.99217795979314; Mon, 19 Aug 2019 05:29:09 -0700 (PDT) Received: from localhost ([::1]:49230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgmZ-0005xV-T0 for importer@patchew.org; Mon, 19 Aug 2019 08:29:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36380) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTq-0002CR-Gg for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002lb-Oc for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58059 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTm-0002bl-8t for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id CA9B71A2128; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id D6A211A21A3; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:05 +0200 Message-Id: <1566216496-17375-27-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 26/37] target/mips: Clean up handling of CP0 register 12 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 12. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 3 +++ target/mips/translate.c | 32 ++++++++++++++++---------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 5e08b78..d61b8c0 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -349,6 +349,9 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG12__STATUS 0 #define CP0_REG12__INTCTL 1 #define CP0_REG12__SRSCTL 2 +#define CP0_REG12__SRSMAP 3 +#define CP0_REG12__VIEW_IPL 4 +#define CP0_REG12__SRSMAP2 5 #define CP0_REG12__GUESTCTL0 6 #define CP0_REG12__GTOFFSET 7 /* CP0 Register 13 */ diff --git a/target/mips/translate.c b/target/mips/translate.c index 07251a4..863bd39 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7224,21 +7224,21 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_12: switch (sel) { - case 0: + case CP0_REG12__STATUS: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Status)); register_name =3D "Status"; break; - case 1: + case CP0_REG12__INTCTL: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_IntCtl)); register_name =3D "IntCtl"; break; - case 2: + case CP0_REG12__SRSCTL: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSCtl)); register_name =3D "SRSCtl"; break; - case 3: + case CP0_REG12__SRSMAP: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSMap)); register_name =3D "SRSMap"; @@ -7944,7 +7944,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_12: switch (sel) { - case 0: + case CP0_REG12__STATUS: save_cpu_state(ctx, 1); gen_helper_mtc0_status(cpu_env, arg); /* DISAS_STOP isn't good enough here, hflags may have changed.= */ @@ -7952,21 +7952,21 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) ctx->base.is_jmp =3D DISAS_EXIT; register_name =3D "Status"; break; - case 1: + case CP0_REG12__INTCTL: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_intctl(cpu_env, arg); /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; register_name =3D "IntCtl"; break; - case 2: + case CP0_REG12__SRSCTL: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsctl(cpu_env, arg); /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; register_name =3D "SRSCtl"; break; - case 3: + case CP0_REG12__SRSMAP: check_insn(ctx, ISA_MIPS32R2); gen_mtc0_store32(arg, offsetof(CPUMIPSState, CP0_SRSMap)); /* Stop translation as we may have switched the execution mode= */ @@ -8711,21 +8711,21 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_12: switch (sel) { - case 0: + case CP0_REG12__STATUS: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Status)); register_name =3D "Status"; break; - case 1: + case CP0_REG12__INTCTL: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_IntCtl)); register_name =3D "IntCtl"; break; - case 2: + case CP0_REG12__SRSCTL: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSCtl)); register_name =3D "SRSCtl"; break; - case 3: + case CP0_REG12__SRSMAP: check_insn(ctx, ISA_MIPS32R2); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_SRSMap)); register_name =3D "SRSMap"; @@ -9419,7 +9419,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_12: switch (sel) { - case 0: + case CP0_REG12__STATUS: save_cpu_state(ctx, 1); gen_helper_mtc0_status(cpu_env, arg); /* DISAS_STOP isn't good enough here, hflags may have changed.= */ @@ -9427,21 +9427,21 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) ctx->base.is_jmp =3D DISAS_EXIT; register_name =3D "Status"; break; - case 1: + case CP0_REG12__INTCTL: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_intctl(cpu_env, arg); /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; register_name =3D "IntCtl"; break; - case 2: + case CP0_REG12__SRSCTL: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_srsctl(cpu_env, arg); /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; register_name =3D "SRSCtl"; break; - case 3: + case CP0_REG12__SRSMAP: check_insn(ctx, ISA_MIPS32R2); gen_mtc0_store32(arg, offsetof(CPUMIPSState, CP0_SRSMap)); /* Stop translation as we may have switched the execution mode= */ --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217484; cv=none; d=zoho.com; s=zohoarc; b=TrQLFo5hF+Zhe6Qka9FVZQixFz46J5Wba2niYxomtFdCX/qAyZvdSRn8n/3OL3OKBihIvZOQdRhBzsNZcArK/E655SyEnPXODSWx7hxe2NaEhbupylFoCO9OuVwNd07/4zNTHsFUoKCtAABNAvaW2z8emaIb9LDjznq0pjmVDUk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217484; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=rN6zQZgitFv7PjXGWYu3dR9whwYdkpU3HRafiUHKpxE=; b=dFUSnEu7iGpJlmCyLnIAXa12odWgFbnGpgdkyqOGyuUTexZVvM2MZP3Ayi80DEfqAjGWLMAN81P/hHRkmoOwuorFzqXpXA/IBQTjN+p9sF9b9n78LNWBrZDG5UFnQ/bQKeym+EgHHHDkEyV860kvkspNu0BmQTtMdQEu70fvlgs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217484664667.7219255359565; Mon, 19 Aug 2019 05:24:44 -0700 (PDT) Received: from localhost ([::1]:49194 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgiJ-0002Gg-7R for importer@patchew.org; Mon, 19 Aug 2019 08:24:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36333) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTp-0002B0-E1 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002lR-OR for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:45 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58064 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTm-0002bp-9q for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id D7AA91A21F1; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id E03F31A21A4; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:06 +0200 Message-Id: <1566216496-17375-28-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 27/37] target/mips: Clean up handling of CP0 register 15 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 15. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 1 + target/mips/translate.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index d61b8c0..3a8c560 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -363,6 +363,7 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG15__EBASE 1 #define CP0_REG15__CDMMBASE 2 #define CP0_REG15__CMGCRBASE 3 +#define CP0_REG15__BEVVA 4 /* CP0 Register 16 */ #define CP0_REG16__CONFIG 0 #define CP0_REG16__CONFIG1 1 diff --git a/target/mips/translate.c b/target/mips/translate.c index 863bd39..9d3996d 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7270,17 +7270,17 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_15: switch (sel) { - case 0: + case CP0_REG15__PRID: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PRid)); register_name =3D "PRid"; break; - case 1: + case CP0_REG15__EBASE: check_insn(ctx, ISA_MIPS32R2); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_EBase)); tcg_gen_ext32s_tl(arg, arg); register_name =3D "EBase"; break; - case 3: + case CP0_REG15__CMGCRBASE: check_insn(ctx, ISA_MIPS32R2); CP0_CHECK(ctx->cmgcr); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_CMGCRBa= se)); @@ -8007,11 +8007,11 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_15: switch (sel) { - case 0: + case CP0_REG15__PRID: /* ignored */ register_name =3D "PRid"; break; - case 1: + case CP0_REG15__EBASE: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_ebase(cpu_env, arg); register_name =3D "EBase"; @@ -8756,16 +8756,16 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_15: switch (sel) { - case 0: + case CP0_REG15__PRID: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_PRid)); register_name =3D "PRid"; break; - case 1: + case CP0_REG15__EBASE: check_insn(ctx, ISA_MIPS32R2); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_EBase)); register_name =3D "EBase"; break; - case 3: + case CP0_REG15__CMGCRBASE: check_insn(ctx, ISA_MIPS32R2); CP0_CHECK(ctx->cmgcr); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_CMGCRBa= se)); @@ -9482,11 +9482,11 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_15: switch (sel) { - case 0: + case CP0_REG15__PRID: /* ignored */ register_name =3D "PRid"; break; - case 1: + case CP0_REG15__EBASE: check_insn(ctx, ISA_MIPS32R2); gen_helper_mtc0_ebase(cpu_env, arg); register_name =3D "EBase"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218519; cv=none; d=zoho.com; s=zohoarc; b=EsctwKzv/yzfq375GzVWLAvVpOzGF3xqDGolyqvMpx66vxcAn5ooUVLMYdyx8ch03f4buSrPXhZsr+AD1hTxrYlxe8JqA+ChSgiuc1Naq1BXP+SNJjYA0snurTp4ztkYE+ddAzGQmdY7lQgndouJUbqqH3AMDKa3R8bCZeXduQM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218519; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=nhRCxNb32knVRgiGWkktd7xbSC+659nakPPryj/Fm2w=; b=hyfNYVWghhoYItQpmcQY0YzVyQNzPQUosK5GOcrHMNEBivwLyLtGp8tuDJPJby54+Z65uScDtcLCPi7a6XRXSYECTSMmUbJq+s282unKUMs9XTEyR/6atdpZ1I4v/SIAClYontcWlTEtJkr0l9V6Hpo91KSbu3si+9Yc+zAi5jA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218519806209.67731920447238; Mon, 19 Aug 2019 05:41:59 -0700 (PDT) Received: from localhost ([::1]:49368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgz0-00010u-9N for importer@patchew.org; Mon, 19 Aug 2019 08:41:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36365) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTq-0002By-54 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002l8-LP for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:45 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58067 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTm-0002bs-6l for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id E463F1A2230; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id EBEEB1A20A0; Mon, 19 Aug 2019 14:08:24 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:07 +0200 Message-Id: <1566216496-17375-29-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 28/37] target/mips: Clean up handling of CP0 register 16 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 16. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 3 ++- target/mips/translate.c | 60 ++++++++++++++++++++++++---------------------= ---- 2 files changed, 32 insertions(+), 31 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 3a8c560..625d364 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -371,7 +371,8 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG16__CONFIG3 3 #define CP0_REG16__CONFIG4 4 #define CP0_REG16__CONFIG5 5 -#define CP0_REG00__CONFIG7 7 +#define CP0_REG16__CONFIG6 6 +#define CP0_REG16__CONFIG7 7 /* CP0 Register 17 */ #define CP0_REG17__LLADDR 0 #define CP0_REG17__MAAR 1 diff --git a/target/mips/translate.c b/target/mips/translate.c index 9d3996d..729b84d 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7293,36 +7293,36 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_16: switch (sel) { - case 0: + case CP0_REG16__CONFIG: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config0)); register_name =3D "Config"; break; - case 1: + case CP0_REG16__CONFIG1: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config1)); register_name =3D "Config1"; break; - case 2: + case CP0_REG16__CONFIG2: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config2)); register_name =3D "Config2"; break; - case 3: + case CP0_REG16__CONFIG3: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config3)); register_name =3D "Config3"; break; - case 4: + case CP0_REG16__CONFIG4: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config4)); register_name =3D "Config4"; break; - case 5: + case CP0_REG16__CONFIG5: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config5)); register_name =3D "Config5"; break; /* 6,7 are implementation dependent */ - case 6: + case CP0_REG16__CONFIG6: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config6)); register_name =3D "Config6"; break; - case 7: + case CP0_REG16__CONFIG7: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config7)); register_name =3D "Config7"; break; @@ -8022,45 +8022,45 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_16: switch (sel) { - case 0: + case CP0_REG16__CONFIG: gen_helper_mtc0_config0(cpu_env, arg); register_name =3D "Config"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; break; - case 1: + case CP0_REG16__CONFIG1: /* ignored, read only */ register_name =3D "Config1"; break; - case 2: + case CP0_REG16__CONFIG2: gen_helper_mtc0_config2(cpu_env, arg); register_name =3D "Config2"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; break; - case 3: + case CP0_REG16__CONFIG3: gen_helper_mtc0_config3(cpu_env, arg); register_name =3D "Config3"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; break; - case 4: + case CP0_REG16__CONFIG4: gen_helper_mtc0_config4(cpu_env, arg); register_name =3D "Config4"; ctx->base.is_jmp =3D DISAS_STOP; break; - case 5: + case CP0_REG16__CONFIG5: gen_helper_mtc0_config5(cpu_env, arg); register_name =3D "Config5"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; break; /* 6,7 are implementation dependent */ - case 6: + case CP0_REG16__CONFIG6: /* ignored */ register_name =3D "Config6"; break; - case 7: + case CP0_REG16__CONFIG7: /* ignored */ register_name =3D "Config7"; break; @@ -8777,36 +8777,36 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_16: switch (sel) { - case 0: + case CP0_REG16__CONFIG: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config0)); register_name =3D "Config"; break; - case 1: + case CP0_REG16__CONFIG1: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config1)); register_name =3D "Config1"; break; - case 2: + case CP0_REG16__CONFIG2: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config2)); register_name =3D "Config2"; break; - case 3: + case CP0_REG16__CONFIG3: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config3)); register_name =3D "Config3"; break; - case 4: + case CP0_REG16__CONFIG4: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config4)); register_name =3D "Config4"; break; - case 5: + case CP0_REG16__CONFIG5: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config5)); register_name =3D "Config5"; break; /* 6,7 are implementation dependent */ - case 6: + case CP0_REG16__CONFIG6: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config6)); register_name =3D "Config6"; break; - case 7: + case CP0_REG16__CONFIG7: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_Config7)); register_name =3D "Config7"; break; @@ -9497,33 +9497,33 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_16: switch (sel) { - case 0: + case CP0_REG16__CONFIG: gen_helper_mtc0_config0(cpu_env, arg); register_name =3D "Config"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; break; - case 1: + case CP0_REG16__CONFIG1: /* ignored, read only */ register_name =3D "Config1"; break; - case 2: + case CP0_REG16__CONFIG2: gen_helper_mtc0_config2(cpu_env, arg); register_name =3D "Config2"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; break; - case 3: + case CP0_REG16__CONFIG3: gen_helper_mtc0_config3(cpu_env, arg); register_name =3D "Config3"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; break; - case 4: + case CP0_REG16__CONFIG4: /* currently ignored */ register_name =3D "Config4"; break; - case 5: + case CP0_REG16__CONFIG5: gen_helper_mtc0_config5(cpu_env, arg); register_name =3D "Config5"; /* Stop translation as we may have switched the execution mode= */ --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566217128; cv=none; d=zoho.com; s=zohoarc; b=mKtlfwCwbPS3S5uv4LiyXWjOX4aJGo1ohPbAGgS+OpbgYetV8cPASmeLZqZdPKJFyL+N6EoWyd5tFKZ6syLYllolr9oUOsh6idLs6lfTM+xjBjp0R7DplKK5CQm6uoX7N9Hls3yoiN5AdSKmpwXLjugGUL0M3BxlDfxoZfILgi0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566217128; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=dhjrbTFvZJQbI4Fy0GdnuKKQrdBZtteTXW41Yf4bUq4=; b=h/l9MiW75t657ViIPzJSwIXTqSpkmsjCTB65d1kUT2xbQi5MAMumnKHrrFYN7ymTTnWLVLsDBxPXA0rmXT3jQe+yrPAu0FKpG1oZLt15qi8zHDfJx/g1n4ahWwAIsYEP/W8KO9UC2qKAV38BV1fjDFG1FHjSd24Ygpthton1SPs= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566217128309745.0269227621002; Mon, 19 Aug 2019 05:18:48 -0700 (PDT) Received: from localhost ([::1]:49098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgcY-0003XF-Sf for importer@patchew.org; Mon, 19 Aug 2019 08:18:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36332) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTp-0002Ay-Fq for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002lX-Oa for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:45 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58066 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTm-0002bq-8i for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id CD1961A21E3; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 0298C1A21CB; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:08 +0200 Message-Id: <1566216496-17375-30-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 29/37] target/mips: Clean up handling of CP0 register 17 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 17. Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 729b84d..ed6d567 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -6671,12 +6671,12 @@ static void gen_mfhc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_17: switch (sel) { - case 0: + case CP0_REG17__LLADDR: gen_mfhc0_load64(arg, offsetof(CPUMIPSState, CP0_LLAddr), ctx->CP0_LLAddr_shift); register_name =3D "LLAddr"; break; - case 1: + case CP0_REG17__MAAR: CP0_CHECK(ctx->mrp); gen_helper_mfhc0_maar(arg, cpu_env); register_name =3D "MAAR"; @@ -6772,7 +6772,7 @@ static void gen_mthc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_17: switch (sel) { - case 0: + case CP0_REG17__LLADDR: /* * LLAddr is read-only (the only exception is bit 0 if LLB is * supported); the CP0_LLAddr_rw_bitmask does not seem to be @@ -6781,7 +6781,7 @@ static void gen_mthc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) */ register_name =3D "LLAddr"; break; - case 1: + case CP0_REG17__MAAR: CP0_CHECK(ctx->mrp); gen_helper_mthc0_maar(cpu_env, arg); register_name =3D "MAAR"; @@ -7332,16 +7332,16 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_17: switch (sel) { - case 0: + case CP0_REG17__LLADDR: gen_helper_mfc0_lladdr(arg, cpu_env); register_name =3D "LLAddr"; break; - case 1: + case CP0_REG17__MAAR: CP0_CHECK(ctx->mrp); gen_helper_mfc0_maar(arg, cpu_env); register_name =3D "MAAR"; break; - case 2: + case CP0_REG17__MAARI: CP0_CHECK(ctx->mrp); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_MAARI)); register_name =3D "MAARI"; @@ -8071,16 +8071,16 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_17: switch (sel) { - case 0: + case CP0_REG17__LLADDR: gen_helper_mtc0_lladdr(cpu_env, arg); register_name =3D "LLAddr"; break; - case 1: + case CP0_REG17__MAAR: CP0_CHECK(ctx->mrp); gen_helper_mtc0_maar(cpu_env, arg); register_name =3D "MAAR"; break; - case 2: + case CP0_REG17__MAARI: CP0_CHECK(ctx->mrp); gen_helper_mtc0_maari(cpu_env, arg); register_name =3D "MAARI"; @@ -8816,16 +8816,16 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_17: switch (sel) { - case 0: + case CP0_REG17__LLADDR: gen_helper_dmfc0_lladdr(arg, cpu_env); register_name =3D "LLAddr"; break; - case 1: + case CP0_REG17__MAAR: CP0_CHECK(ctx->mrp); gen_helper_dmfc0_maar(arg, cpu_env); register_name =3D "MAAR"; break; - case 2: + case CP0_REG17__MAARI: CP0_CHECK(ctx->mrp); gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_MAARI)); register_name =3D "MAARI"; @@ -9537,16 +9537,16 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_17: switch (sel) { - case 0: + case CP0_REG17__LLADDR: gen_helper_mtc0_lladdr(cpu_env, arg); register_name =3D "LLAddr"; break; - case 1: + case CP0_REG17__MAAR: CP0_CHECK(ctx->mrp); gen_helper_mtc0_maar(cpu_env, arg); register_name =3D "MAAR"; break; - case 2: + case CP0_REG17__MAARI: CP0_CHECK(ctx->mrp); gen_helper_mtc0_maari(cpu_env, arg); register_name =3D "MAARI"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566216882; cv=none; d=zoho.com; s=zohoarc; b=WDd//e3E5WsRcj0ms05fWWND/6HSjwDOo5RTT3ao9EUUnTouFyZOs1ec5mFZXsCWxTFpCkitQ0+4ktCTx0fzeEwXsmQUV+RqpPLoJCr8k9ssSCTv8XSgozc4Q9L9XGIP/RBAW6HVCwNqXUl56HrJBPU4w4ZB2UBDAuOKQpDksXw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566216882; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=48T/zcsjG/WhEYEcp8WdBE30A8kNFBC/5IUciRdoMeM=; b=ic/ZHS+4xsSOVyM+stCMnBJr4eFzZGYs1FokXXnpXQRUwWTP7prtAkPd7Wa2tEXT9ZRpQuyvikrYrdzSBkXl62Kv4RvnSXJXTmzQ00qWoyIILp8XwR7s5FZ5RMpbqEANcCnb8iTAeXGQx0iP1dhBsX6APPRpfFB56o0DpOq9inE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566216882939812.9748766009329; Mon, 19 Aug 2019 05:14:42 -0700 (PDT) Received: from localhost ([::1]:48978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgYV-0007mW-82 for importer@patchew.org; Mon, 19 Aug 2019 08:14:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36323) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTp-0002AK-35 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTm-0002lD-M4 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:44 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:58074 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTm-0002bz-BG for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:42 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id E0B4A1A218A; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 0AFC61A21DB; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:09 +0200 Message-Id: <1566216496-17375-31-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 30/37] target/mips: Clean up handling of CP0 register 20 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 20. Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index ed6d567..0ef29b9 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7388,7 +7388,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_20: switch (sel) { - case 0: + case CP0_REG20__XCONTEXT: #if defined(TARGET_MIPS64) check_insn(ctx, ISA_MIPS3); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_XContex= t)); @@ -8127,7 +8127,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_20: switch (sel) { - case 0: + case CP0_REG20__XCONTEXT: #if defined(TARGET_MIPS64) check_insn(ctx, ISA_MIPS3); gen_helper_mtc0_xcontext(cpu_env, arg); @@ -8872,7 +8872,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_20: switch (sel) { - case 0: + case CP0_REG20__XCONTEXT: check_insn(ctx, ISA_MIPS3); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_XContex= t)); register_name =3D "XContext"; @@ -9593,7 +9593,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_20: switch (sel) { - case 0: + case CP0_REG20__XCONTEXT: check_insn(ctx, ISA_MIPS3); gen_helper_mtc0_xcontext(cpu_env, arg); register_name =3D "XContext"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218971; cv=none; d=zoho.com; s=zohoarc; b=E3AkZJAY+maEXUwBU/l1fL3yDfe10SK+M2dcX/JfJOOICLVd6oMVerwLcWTMee8Z2tqtC/JejM2lOZWBccYtpHHTINRaiO8u85cZlc9F7s+mjwI7T3Ic9rKV/o+b8RwjJGhLftyGXj6HU81KPGpIHpP5Du0rnxjxwv4OW4K7w3Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218971; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=B1gvPdxQ1pgQt4UapHAqnNvWJ4K6t4fk6MTdufb1KEg=; b=BW5m828lRTNkrvqAJ4SxdzBGAa7ncZ2ZrmGvFwchHdLiLsng6e94YbRXZ5bMjbsABfMvZnK0dkBVnopH43hCTHE/JlMXeMVDeiOGWyAJOj4rGjCJA4j1jC2QGD0dZHkYwPfaOs2ffCyGp1W7HcR5F1BN7aXz0V1NxX0t9BWpvpM= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218971430820.5444624377477; Mon, 19 Aug 2019 05:49:31 -0700 (PDT) Received: from localhost ([::1]:49524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzh6E-0000KG-QH for importer@patchew.org; Mon, 19 Aug 2019 08:49:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36479) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgU2-0002Nx-0x for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:10:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTw-0002s2-6w for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:54 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:59120 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTv-0002ir-QB for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:52 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 0B5CE1A21CB; Mon, 19 Aug 2019 14:08:26 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 141BE1A208C; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:10 +0200 Message-Id: <1566216496-17375-32-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 31/37] target/mips: Clean up handling of CP0 register 23 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 23. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 6 +++ target/mips/translate.c | 126 +++++++++++++++++++++++++++++++-------------= ---- 2 files changed, 89 insertions(+), 43 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 625d364..64dddd0 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -393,6 +393,12 @@ typedef struct mips_def_t mips_def_t; /* CP0 Register 22 */ /* CP0 Register 23 */ #define CP0_REG23__DEBUG 0 +#define CP0_REG23__TRACECONTROL 1 +#define CP0_REG23__TRACECONTROL2 2 +#define CP0_REG23__USERTRACEDATA1 3 +#define CP0_REG23__TRACEIBPC 4 +#define CP0_REG23__TRACEDBPC 5 +#define CP0_REG23__DEBUG2 6 /* CP0 Register 24 */ #define CP0_REG24__DEPC 0 /* CP0 Register 25 */ diff --git a/target/mips/translate.c b/target/mips/translate.c index 0ef29b9..7e243f8 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7418,25 +7418,34 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_23: switch (sel) { - case 0: + case CP0_REG23__DEBUG: gen_helper_mfc0_debug(arg, cpu_env); /* EJTAG support */ register_name =3D "Debug"; break; - case 1: -// gen_helper_mfc0_tracecontrol(arg); /* PDtrace support */ + case CP0_REG23__TRACECONTROL: + /* PDtrace support */ + /* gen_helper_mfc0_tracecontrol(arg); */ register_name =3D "TraceControl"; goto cp0_unimplemented; - case 2: -// gen_helper_mfc0_tracecontrol2(arg); /* PDtrace support */ + case CP0_REG23__TRACECONTROL2: + /* PDtrace support */ + /* gen_helper_mfc0_tracecontrol2(arg); */ register_name =3D "TraceControl2"; goto cp0_unimplemented; - case 3: -// gen_helper_mfc0_usertracedata(arg); /* PDtrace support */ - register_name =3D "UserTraceData"; + case CP0_REG23__USERTRACEDATA1: + /* PDtrace support */ + /* gen_helper_mfc0_usertracedata1(arg);*/ + register_name =3D "UserTraceData1"; goto cp0_unimplemented; - case 4: -// gen_helper_mfc0_tracebpc(arg); /* PDtrace support */ - register_name =3D "TraceBPC"; + case CP0_REG23__TRACEIBPC: + /* PDtrace support */ + /* gen_helper_mfc0_traceibpc(arg); */ + register_name =3D "TraceIBPC"; + goto cp0_unimplemented; + case CP0_REG23__TRACEDBPC: + /* PDtrace support */ + /* gen_helper_mfc0_tracedbpc(arg); */ + register_name =3D "TraceDBPC"; goto cp0_unimplemented; default: goto cp0_unimplemented; @@ -8156,38 +8165,49 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_23: switch (sel) { - case 0: + case CP0_REG23__DEBUG: gen_helper_mtc0_debug(cpu_env, arg); /* EJTAG support */ /* DISAS_STOP isn't good enough here, hflags may have changed.= */ gen_save_pc(ctx->base.pc_next + 4); ctx->base.is_jmp =3D DISAS_EXIT; register_name =3D "Debug"; break; - case 1: -// gen_helper_mtc0_tracecontrol(cpu_env, arg); /* PDtrace suppo= rt */ + case CP0_REG23__TRACECONTROL: + /* PDtrace support */ + /* gen_helper_mtc0_tracecontrol(cpu_env, arg); */ register_name =3D "TraceControl"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; goto cp0_unimplemented; - case 2: -// gen_helper_mtc0_tracecontrol2(cpu_env, arg); /* PDtrace supp= ort */ + case CP0_REG23__TRACECONTROL2: + /* PDtrace support */ + /* gen_helper_mtc0_tracecontrol2(cpu_env, arg); */ register_name =3D "TraceControl2"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; goto cp0_unimplemented; - case 3: + case CP0_REG23__USERTRACEDATA1: /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; -// gen_helper_mtc0_usertracedata(cpu_env, arg); /* PDtrace supp= ort */ + /* PDtrace support */ + /* gen_helper_mtc0_usertracedata1(cpu_env, arg);*/ register_name =3D "UserTraceData"; /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; goto cp0_unimplemented; - case 4: -// gen_helper_mtc0_tracebpc(cpu_env, arg); /* PDtrace support */ + case CP0_REG23__TRACEIBPC: + /* PDtrace support */ + /* gen_helper_mtc0_traceibpc(cpu_env, arg); */ /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; - register_name =3D "TraceBPC"; + register_name =3D "TraceIBPC"; + goto cp0_unimplemented; + case CP0_REG23__TRACEDBPC: + /* PDtrace support */ + /* gen_helper_mtc0_tracedbpc(cpu_env, arg); */ + /* Stop translation as we may have switched the execution mode= */ + ctx->base.is_jmp =3D DISAS_STOP; + register_name =3D "TraceDBPC"; goto cp0_unimplemented; default: goto cp0_unimplemented; @@ -8899,25 +8919,34 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_23: switch (sel) { - case 0: + case CP0_REG23__DEBUG: gen_helper_mfc0_debug(arg, cpu_env); /* EJTAG support */ register_name =3D "Debug"; break; - case 1: -// gen_helper_dmfc0_tracecontrol(arg, cpu_env); /* PDtrace supp= ort */ + case CP0_REG23__TRACECONTROL: + /* PDtrace support */ + /* gen_helper_dmfc0_tracecontrol(arg, cpu_env); */ register_name =3D "TraceControl"; goto cp0_unimplemented; - case 2: -// gen_helper_dmfc0_tracecontrol2(arg, cpu_env); /* PDtrace sup= port */ + case CP0_REG23__TRACECONTROL2: + /* PDtrace support */ + /* gen_helper_dmfc0_tracecontrol2(arg, cpu_env); */ register_name =3D "TraceControl2"; goto cp0_unimplemented; - case 3: -// gen_helper_dmfc0_usertracedata(arg, cpu_env); /* PDtrace sup= port */ - register_name =3D "UserTraceData"; + case CP0_REG23__USERTRACEDATA1: + /* PDtrace support */ + /* gen_helper_dmfc0_usertracedata1(arg, cpu_env);*/ + register_name =3D "UserTraceData1"; goto cp0_unimplemented; - case 4: -// gen_helper_dmfc0_tracebpc(arg, cpu_env); /* PDtrace support = */ - register_name =3D "TraceBPC"; + case CP0_REG23__TRACEIBPC: + /* PDtrace support */ + /* gen_helper_dmfc0_traceibpc(arg, cpu_env); */ + register_name =3D "TraceIBPC"; + goto cp0_unimplemented; + case CP0_REG23__TRACEDBPC: + /* PDtrace support */ + /* gen_helper_dmfc0_tracedbpc(arg, cpu_env); */ + register_name =3D "TraceDBPC"; goto cp0_unimplemented; default: goto cp0_unimplemented; @@ -9620,36 +9649,47 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_23: switch (sel) { - case 0: + case CP0_REG23__DEBUG: gen_helper_mtc0_debug(cpu_env, arg); /* EJTAG support */ /* DISAS_STOP isn't good enough here, hflags may have changed.= */ gen_save_pc(ctx->base.pc_next + 4); ctx->base.is_jmp =3D DISAS_EXIT; register_name =3D "Debug"; break; - case 1: -// gen_helper_mtc0_tracecontrol(cpu_env, arg); /* PDtrace suppo= rt */ + case CP0_REG23__TRACECONTROL: + /* PDtrace support */ + /* gen_helper_mtc0_tracecontrol(cpu_env, arg); */ /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; register_name =3D "TraceControl"; goto cp0_unimplemented; - case 2: -// gen_helper_mtc0_tracecontrol2(cpu_env, arg); /* PDtrace supp= ort */ + case CP0_REG23__TRACECONTROL2: + /* PDtrace support */ + /* gen_helper_mtc0_tracecontrol2(cpu_env, arg); */ /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; register_name =3D "TraceControl2"; goto cp0_unimplemented; - case 3: -// gen_helper_mtc0_usertracedata(cpu_env, arg); /* PDtrace supp= ort */ + case CP0_REG23__USERTRACEDATA1: + /* PDtrace support */ + /* gen_helper_mtc0_usertracedata1(cpu_env, arg);*/ /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; - register_name =3D "UserTraceData"; + register_name =3D "UserTraceData1"; goto cp0_unimplemented; - case 4: -// gen_helper_mtc0_tracebpc(cpu_env, arg); /* PDtrace support */ + case CP0_REG23__TRACEIBPC: + /* PDtrace support */ + /* gen_helper_mtc0_traceibpc(cpu_env, arg); */ + /* Stop translation as we may have switched the execution mode= */ + ctx->base.is_jmp =3D DISAS_STOP; + register_name =3D "TraceIBPC"; + goto cp0_unimplemented; + case CP0_REG23__TRACEDBPC: + /* PDtrace support */ + /* gen_helper_mtc0_tracedbpc(cpu_env, arg); */ /* Stop translation as we may have switched the execution mode= */ ctx->base.is_jmp =3D DISAS_STOP; - register_name =3D "TraceBPC"; + register_name =3D "TraceDBPC"; goto cp0_unimplemented; default: goto cp0_unimplemented; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218368; cv=none; d=zoho.com; s=zohoarc; b=olr7d3c4Z6f/o0cwXWKtXvNictbL9BLgyeUTKpYWtpiRkrrdzFe8OYKQBQkfMHpKcWIJYjfYL0cTWgnZUmhGUoI45m7QmYE606UUsM16BRL6s0QkFlOnAAde+t9g9LF5zUiU2H4RjYz+Yv4zuCIrhq++YLRJ6C2SVPVoc3kKi1g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218368; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=fytAyse1u/ujXoo6X5M82jciYHeNQzmkrfxOb18W30Q=; b=kAUjahA6jaYJpxGDHLnEHfDjzp6JmGyvuXZEcnBNzun03rwFUW3HV9pfKePTpD69yzn3Tcny9KvaOeTi03zhTQTwbx9PzQfaZx3ESozVj+U1NqomVpHCTrtamlIzn1lWBrjfMDUeig2Ksya2qkhsIVxE75r5DwUkLkyHCPvddA8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218368983803.8049100387642; Mon, 19 Aug 2019 05:39:28 -0700 (PDT) Received: from localhost ([::1]:49354 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgwZ-0008WE-IY for importer@patchew.org; Mon, 19 Aug 2019 08:39:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36461) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTx-0002Mu-Sr for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTw-0002rx-6p for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:53 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:59119 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTv-0002io-PE for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:52 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id F3EE41A21A3; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 24F121A2131; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:11 +0200 Message-Id: <1566216496-17375-33-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 32/37] target/mips: Clean up handling of CP0 register 24 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 24. Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 7e243f8..a3a9d34 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7453,7 +7453,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_24: switch (sel) { - case 0: + case CP0_REG24__DEPC: /* EJTAG support */ tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_DEPC)); tcg_gen_ext32s_tl(arg, arg); @@ -8215,7 +8215,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_24: switch (sel) { - case 0: + case CP0_REG24__DEPC: /* EJTAG support */ tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_DEPC)); register_name =3D "DEPC"; @@ -8954,7 +8954,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_24: switch (sel) { - case 0: + case CP0_REG24__DEPC: /* EJTAG support */ tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_DEPC)); register_name =3D "DEPC"; @@ -9697,7 +9697,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_24: switch (sel) { - case 0: + case CP0_REG24__DEPC: /* EJTAG support */ tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_DEPC)); register_name =3D "DEPC"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218093; cv=none; d=zoho.com; s=zohoarc; b=axp1ogK4TMef7kmq8sUugSKFb4v7fguTvIU4p5s7Kw4DdvO4j/r84aOgs4oDuqjTu/f45k0idKeTlft/Kv01v0k6craBMa9P6FkKvPlnN2d9WdQb96tPnafVVNtj0dmFYDn5VmcZd2QKhH7GdgCpn7uwrxzp47AviGOBz/BPzj4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218093; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=qvHv29fYatnAmGsnDNuhjx+P2Ao+iu2om5X/8B20ANs=; b=RNfrOIG2EDmjadPmDzdb8LHNisU0mwG8NKM4LdFC4vwFvxBMgzacaQxnHdy2CvKwyM9W5tp35QIBL9tyAyJgut4K15lOpOrJN9RD9rNrYBrChXWFm8DpkNXaCtHRmAK52TXRpgQhkV9ELtZdfDxcdWKGu1loX9p9KC2epF2K2/I= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156621809346416.16708095773754; Mon, 19 Aug 2019 05:34:53 -0700 (PDT) Received: from localhost ([::1]:49276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgs7-0001iF-4S for importer@patchew.org; Mon, 19 Aug 2019 08:34:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36467) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTy-0002Nr-Fc for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTw-0002sc-EE for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:53 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:59121 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTw-0002j0-2r for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:52 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 21A321A208C; Mon, 19 Aug 2019 14:08:26 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 2F79D1A2136; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:12 +0200 Message-Id: <1566216496-17375-34-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 33/37] target/mips: Clean up handling of CP0 register 26 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 26. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 2 +- target/mips/translate.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index 64dddd0..ef40552 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -411,7 +411,7 @@ typedef struct mips_def_t mips_def_t; #define CP0_REG25__PERFCTL3 6 #define CP0_REG25__PERFCNT3 7 /* CP0 Register 26 */ -#define CP0_REG00__ERRCTL 0 +#define CP0_REG26__ERRCTL 0 /* CP0 Register 27 */ #define CP0_REG27__CACHERR 0 /* CP0 Register 28 */ diff --git a/target/mips/translate.c b/target/mips/translate.c index a3a9d34..9025a50 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7503,7 +7503,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_26: switch (sel) { - case 0: + case CP0_REG26__ERRCTL: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_ErrCtl)); register_name =3D "ErrCtl"; break; @@ -8264,7 +8264,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_26: switch (sel) { - case 0: + case CP0_REG26__ERRCTL: gen_helper_mtc0_errctl(cpu_env, arg); ctx->base.is_jmp =3D DISAS_STOP; register_name =3D "ErrCtl"; @@ -9003,7 +9003,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_26: switch (sel) { - case 0: + case CP0_REG26__ERRCTL: gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_ErrCtl)); register_name =3D "ErrCtl"; break; @@ -9746,7 +9746,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_26: switch (sel) { - case 0: + case CP0_REG26__ERRCTL: gen_helper_mtc0_errctl(cpu_env, arg); ctx->base.is_jmp =3D DISAS_STOP; register_name =3D "ErrCtl"; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218893; cv=none; d=zoho.com; s=zohoarc; b=jaR4JMeecWfQ1YhuS7akqTaKs1ALF5BsW3ZW6XxrUUwCgOfC5VmxiCEKlJLrRT/J1mSzfpHV/FnLM3GP+tnGt7spyrofQxZVNXWF+HoEuZ2fW84GlfvPoE4+6sxm2wCucNO51BxFW4iVZD64f76DDDf1ZdlbyOMOCmVhFXvw3y4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218893; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=E+a38peA/Cr7u1KVEJ17MuwZlilaBTeOu9AAiRfJRgw=; b=U2cOH0sVU05PkUot9EP6TBMUzblGc6s8k4Bp/o6eDxzghp35O5fG/NtpVAe8DA4CjUh3wLsrtVSExS1dQigldApAvis3z+iPqMQ5CMuv9oam0tC5kEgek7Gg68MnsmmsZCgQQna6lHRO6mBD84Hi56KjZHSKHzQO2ykk/D/Ct/A= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 156621889395377.64171757435827; Mon, 19 Aug 2019 05:48:13 -0700 (PDT) Received: from localhost ([::1]:49484 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzh4x-0007QC-HC for importer@patchew.org; Mon, 19 Aug 2019 08:48:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36465) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgTy-0002Nq-FV for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgTw-0002sJ-CV for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:53 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:59122 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTw-0002j2-2j for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:52 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 0CFEF1A21FF; Mon, 19 Aug 2019 14:08:26 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 3BD151A2179; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:13 +0200 Message-Id: <1566216496-17375-35-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 34/37] target/mips: Clean up handling of CP0 register 30 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 30. Signed-off-by: Aleksandar Markovic --- target/mips/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 9025a50..a8bd08a 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7571,7 +7571,7 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_30: switch (sel) { - case 0: + case CP0_REG30__ERROREPC: tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_ErrorEP= C)); tcg_gen_ext32s_tl(arg, arg); register_name =3D "ErrorEPC"; @@ -8329,7 +8329,7 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int= reg, int sel) break; case CP0_REGISTER_30: switch (sel) { - case 0: + case CP0_REG30__ERROREPC: tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_ErrorEP= C)); register_name =3D "ErrorEPC"; break; @@ -9067,7 +9067,7 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_30: switch (sel) { - case 0: + case CP0_REG30__ERROREPC: tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_ErrorEP= C)); register_name =3D "ErrorEPC"; break; @@ -9811,7 +9811,7 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, in= t reg, int sel) break; case CP0_REGISTER_30: switch (sel) { - case 0: + case CP0_REG30__ERROREPC: tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_ErrorEP= C)); register_name =3D "ErrorEPC"; break; --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566219133; cv=none; d=zoho.com; s=zohoarc; b=HM7PjjzratYUFCenJzn+aEpgGIhnsjNia4qW20nyLCuoPAbTnsp531a5oU/yfS20vPVEZqCoNlxk23HXBwgd1Etfw4iVIF4IhRV6efTCLvnFTbUevQHoR1R7F8t9XO4G+2pNjyXNf2zc9YAPBZprH+tOWpZGl2wvtS8M222Auh4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566219133; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=Am2Vz45zu2MQ86fwU2mSpNQRRyyDAAuOX9LL3onKlsY=; b=JutmVoJUMvAU3gws/zkkO7QIc7RxDZb2g6JvtIL507NsNsvOtidaplu8QjV15MO+l4x9gyY0QtQSrmPapomsZ2TUEVPC33TBmocpYOzHMbblqRnqaBt4umZ+dac9AzOeAaAzGTlHvSfrSxejYK9DeBSIOSur6fL3zn6L1N9WyuA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566219133675364.3595663012385; Mon, 19 Aug 2019 05:52:13 -0700 (PDT) Received: from localhost ([::1]:49574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzh8u-0003lt-3B for importer@patchew.org; Mon, 19 Aug 2019 08:52:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36512) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgU5-0002OA-TQ for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:10:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgU4-0002xj-F0 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:10:01 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:59127 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTy-0002kc-0E for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:54 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 23D571A20A0; Mon, 19 Aug 2019 14:08:26 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 457081A2145; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:14 +0200 Message-Id: <1566216496-17375-36-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 35/37] target/mips: Clean up handling of CP0 register 31 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Clean up handling of CP0 register 31. Signed-off-by: Aleksandar Markovic --- target/mips/cpu.h | 2 +- target/mips/translate.c | 56 ++++++++++++++++++++++++---------------------= ---- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/target/mips/cpu.h b/target/mips/cpu.h index ef40552..46ffb84 100644 --- a/target/mips/cpu.h +++ b/target/mips/cpu.h @@ -592,7 +592,6 @@ struct CPUMIPSState { * CP0 Register 4 */ target_ulong CP0_Context; - target_ulong CP0_KScratch[MIPS_KSCRATCH_NUM]; int32_t CP0_MemoryMapID; /* * CP0 Register 5 @@ -1003,6 +1002,7 @@ struct CPUMIPSState { * CP0 Register 31 */ int32_t CP0_DESAVE; + target_ulong CP0_KScratch[MIPS_KSCRATCH_NUM]; =20 /* We waste some space so we can handle shadow registers like TCs. */ TCState tcs[MIPS_SHADOW_SET_MAX]; diff --git a/target/mips/translate.c b/target/mips/translate.c index a8bd08a..1aa5338 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -7582,17 +7582,17 @@ static void gen_mfc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_31: switch (sel) { - case 0: + case CP0_REG31__DESAVE: /* EJTAG support */ gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_DESAVE)); register_name =3D "DESAVE"; break; - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: + case CP0_REG31__KSCRATCH1: + case CP0_REG31__KSCRATCH2: + case CP0_REG31__KSCRATCH3: + case CP0_REG31__KSCRATCH4: + case CP0_REG31__KSCRATCH5: + case CP0_REG31__KSCRATCH6: CP0_CHECK(ctx->kscrexist & (1 << sel)); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_KScratch[sel-2])); @@ -8339,17 +8339,17 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, i= nt reg, int sel) break; case CP0_REGISTER_31: switch (sel) { - case 0: + case CP0_REG31__DESAVE: /* EJTAG support */ gen_mtc0_store32(arg, offsetof(CPUMIPSState, CP0_DESAVE)); register_name =3D "DESAVE"; break; - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: + case CP0_REG31__KSCRATCH1: + case CP0_REG31__KSCRATCH2: + case CP0_REG31__KSCRATCH3: + case CP0_REG31__KSCRATCH4: + case CP0_REG31__KSCRATCH5: + case CP0_REG31__KSCRATCH6: CP0_CHECK(ctx->kscrexist & (1 << sel)); tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_KScratch[sel-2])); @@ -9077,17 +9077,17 @@ static void gen_dmfc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_31: switch (sel) { - case 0: + case CP0_REG31__DESAVE: /* EJTAG support */ gen_mfc0_load32(arg, offsetof(CPUMIPSState, CP0_DESAVE)); register_name =3D "DESAVE"; break; - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: + case CP0_REG31__KSCRATCH1: + case CP0_REG31__KSCRATCH2: + case CP0_REG31__KSCRATCH3: + case CP0_REG31__KSCRATCH4: + case CP0_REG31__KSCRATCH5: + case CP0_REG31__KSCRATCH6: CP0_CHECK(ctx->kscrexist & (1 << sel)); tcg_gen_ld_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_KScratch[sel-2])); @@ -9821,17 +9821,17 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, = int reg, int sel) break; case CP0_REGISTER_31: switch (sel) { - case 0: + case CP0_REG31__DESAVE: /* EJTAG support */ gen_mtc0_store32(arg, offsetof(CPUMIPSState, CP0_DESAVE)); register_name =3D "DESAVE"; break; - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: + case CP0_REG31__KSCRATCH1: + case CP0_REG31__KSCRATCH2: + case CP0_REG31__KSCRATCH3: + case CP0_REG31__KSCRATCH4: + case CP0_REG31__KSCRATCH5: + case CP0_REG31__KSCRATCH6: CP0_CHECK(ctx->kscrexist & (1 << sel)); tcg_gen_st_tl(arg, cpu_env, offsetof(CPUMIPSState, CP0_KScratch[sel - 2])); --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218656; cv=none; d=zoho.com; s=zohoarc; b=IRkAXsHV+0rOJt30Bfih36RMgth5BKBCMbLW4u/QssPxmb37jlhXOYl7zLmCmBFtlFcp9v32W6LB5MYYIl1GLA8xZ9gryqCd6DplhkMLymvbWbVBQVCX9KE9tkMA7bYJCwPE+o2ZRx9aZKEbF79ie8nDQ03HRPYOfQi5Cdfa1FU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218656; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=U2f8o2i7GzxNxmHoH9rS13l5d8IbMqKsm+sLgLmjmHs=; b=ROIG6ZnIT5PUDJEAGhWEcI+Uf7AkqUTp00BJ4DtBFsWqofH2RVGUAYzoCLMx+T/MxsUlsFnBHQix0VVfYsciHMlR7W0ljvw/ooPvzST+gXuRKa+J0VCn1CvIoUsumxBdt0Bavw4G0HZ2lsosSDRIDkwBaZwayPFKU27ZBojF6cc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218656716338.6680920602714; Mon, 19 Aug 2019 05:44:16 -0700 (PDT) Received: from localhost ([::1]:49406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzh1A-0003i5-Ud for importer@patchew.org; Mon, 19 Aug 2019 08:44:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36496) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgU4-0002O0-Je for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:10:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgU3-0002x1-51 for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:10:00 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:59126 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTx-0002kb-Qa for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:54 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 272FC1A20C6; Mon, 19 Aug 2019 14:08:26 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 5113C1A222E; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:15 +0200 Message-Id: <1566216496-17375-37-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 36/37] target/mips: tests/tcg: Add optional printing of more detailed failure info X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic There is a need for printing input and output data for failure cases, for debugging purpose. This is achieved by this patch, and only if a preprocessor constant is manually set to 1. (Assumption is that the need for such printout is relatively rare.) Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- tests/tcg/mips/include/test_utils_128.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/tcg/mips/include/test_utils_128.h b/tests/tcg/mips/inclu= de/test_utils_128.h index 2fea610..0dd3868 100644 --- a/tests/tcg/mips/include/test_utils_128.h +++ b/tests/tcg/mips/include/test_utils_128.h @@ -27,7 +27,8 @@ #include #include =20 -#define PRINT_RESULTS 0 +#define PRINT_RESULTS 0 +#define PRINT_FAILURES 0 =20 =20 static inline int32_t check_results_128(const char *isa_ase_name, @@ -65,6 +66,26 @@ static inline int32_t check_results_128(const char *isa_= ase_name, (b128_result[2 * i + 1] =3D=3D b128_expect[2 * i + 1])) { pass_count++; } else { +#if PRINT_FAILURES + uint32_t ii; + uint64_t a, b; + + printf("\n"); + + printf("FAILURE for test case %d!\n", i); + + memcpy(&a, (b128_expect + 2 * i), 8); + memcpy(&b, (b128_expect + 2 * i + 1), 8); + printf("Expected result : { 0x%016llxULL, 0x%016llxULL, },\n", + a, b); + + memcpy(&a, (b128_result + 2 * i), 8); + memcpy(&b, (b128_result + 2 * i + 1), 8); + printf("Actual result : { 0x%016llxULL, 0x%016llxULL, },\n", + a, b); + + printf("\n"); +#endif fail_count++; } } --=20 2.7.4 From nobody Tue May 14 04:27:04 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1566218282; cv=none; d=zoho.com; s=zohoarc; b=Lg7ZhqRlIirwKDeZOTIhLG2hEwhcOkw9ste9Sth6l6qxPfwplFvBrbCChrlBE84HVUVBAZgqRULy15yFzjG9kj3ziRHWclFCO5HmWLjZf8h9wsoM1bCygAFJNJI0ZEe6YSb9AVxYNjpn5wZ+Phnyr7p8rtBNJtqd4RS3u5xBiGU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566218282; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=MRD5ZFGvgouctCdUWXL56y2QS7JPKxyaQoA7eJQFsZs=; b=brzzHJThpzhut3kcgX1jHYsv3XTkestgwl1tG1iAuXHfV5c9eSqkXBYU2BTqjeuC4uaQzHmNLScH96uFdbRQOUFg0TMKDYvX49Og9HFSzqrhJX4GTJSXCJwuFCWakYsKUAOL3FbRxJDbEhYSQowPLdhX9PI5ZPgfx4npFZHd0Q8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1566218282695219.93765827244204; Mon, 19 Aug 2019 05:38:02 -0700 (PDT) Received: from localhost ([::1]:49336 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgvA-0006mb-UP for importer@patchew.org; Mon, 19 Aug 2019 08:38:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36529) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hzgUE-0002cW-Tk for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:10:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hzgU4-0002y4-IS for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:10:10 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:59128 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hzgTy-0002kt-0n for qemu-devel@nongnu.org; Mon, 19 Aug 2019 08:09:58 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id A592F1A2107; Mon, 19 Aug 2019 14:08:26 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 5CFAF1A2072; Mon, 19 Aug 2019 14:08:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Mon, 19 Aug 2019 14:08:16 +0200 Message-Id: <1566216496-17375-38-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1566216496-17375-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH v8 37/37] target/mips: tests/tcg: Fix target configurations for MSA tests X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: arikalo@wavecomp.com, philmd@redhat.com, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic At this moment, the only MIPS CPUs that are emulated in QEMU and support MSA extension are R5600 (mips32r5), and I6400/I6500 (mips64r6). Therefore, mips32r5 and mips64r6 are the only ISAs that could support MSA in QEMU. This means mips32r6 currently do not make much sense, and mips32r5 support for MSA tests is needed, which is done by this patch. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo --- .../mips/user/ase/msa/test_msa_compile_32r5eb.sh | 917 +++++++++++++++++= ++++ .../mips/user/ase/msa/test_msa_compile_32r5el.sh | 917 +++++++++++++++++= ++++ .../mips/user/ase/msa/test_msa_compile_32r6eb.sh | 643 --------------- .../mips/user/ase/msa/test_msa_compile_32r6el.sh | 643 --------------- tests/tcg/mips/user/ase/msa/test_msa_run_32r5eb.sh | 371 +++++++++ tests/tcg/mips/user/ase/msa/test_msa_run_32r5el.sh | 371 +++++++++ tests/tcg/mips/user/ase/msa/test_msa_run_32r6eb.sh | 371 --------- tests/tcg/mips/user/ase/msa/test_msa_run_32r6el.sh | 371 --------- 8 files changed, 2576 insertions(+), 2028 deletions(-) create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_32r5eb.sh create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_32r5el.sh delete mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_32r6eb.sh delete mode 100755 tests/tcg/mips/user/ase/msa/test_msa_compile_32r6el.sh create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_32r5eb.sh create mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_32r5el.sh delete mode 100644 tests/tcg/mips/user/ase/msa/test_msa_run_32r6eb.sh delete mode 100755 tests/tcg/mips/user/ase/msa/test_msa_run_32r6el.sh diff --git a/tests/tcg/mips/user/ase/msa/test_msa_compile_32r5eb.sh b/tests= /tcg/mips/user/ase/msa/test_msa_compile_32r5eb.sh new file mode 100755 index 0000000..940cabe --- /dev/null +++ b/tests/tcg/mips/user/ase/msa/test_msa_compile_32r5eb.sh @@ -0,0 +1,917 @@ + +# +# Bit Count +# --------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nloc_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nloc_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nloc_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nloc_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nlzc_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nlzc_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nlzc_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nlzc_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pcnt_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pcnt_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pcnt_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pcnt_d_32r5eb + +# +# Bit move +# -------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsl_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsl_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsl_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsl_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsl_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsl_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsl_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsl_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsr_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsr_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsr_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsr_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsr_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsr_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsr_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsr_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_bmnz_v.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bmnz_v_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_bmz_v.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bmz_v_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_bsel_v.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bsel_v_32r5eb + +# +# Bit Set +# ------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bclr_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bclr_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bclr_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bclr_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bclr_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bclr_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bclr_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bclr_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bneg_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bneg_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bneg_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bneg_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bneg_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bneg_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bneg_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bneg_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bset_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bset_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bset_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bset_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bset_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bset_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bset_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bset_d_32r5eb + +# +# Fixed Multiply +# -------------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_madd_q_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_madd_q_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_madd_q_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_madd_q_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_maddr_q_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddr_q_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_maddr_q_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddr_q_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_msub_q_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msub_q_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_msub_q_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msub_q_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_msubr_q_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubr_q_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_msubr_q_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubr_q_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_mul_q_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mul_q_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_mul_q_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mul_q_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_mulr_q_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulr_q_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_mulr_q_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulr_q_w_32r5eb + +# +# Float Max Min +# ------------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmax_a_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmax_a_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmax_a_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmax_a_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmax_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmax_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmax_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmax_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmin_a_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmin_a_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmin_a_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmin_a_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmin_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmin_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmin_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmin_d_32r5eb + +# +# Int Add +# ------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_add_a_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_add_a_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_add_a_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_add_a_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_add_a_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_add_a_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_add_a_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_add_a_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_a_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_a_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_a_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_a_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_a_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_a_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_a_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_a_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_addv_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_addv_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_addv_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_addv_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_addv_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_addv_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_addv_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_addv_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_u_d_32r5eb + +# +# Int Average +# ----------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_u_d_32r5eb + +# +# Int Compare +# ----------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_ceq_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ceq_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_ceq_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ceq_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_ceq_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ceq_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_ceq_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ceq_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_u_d_32r5eb + +# +# Int Divide +# ---------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_u_d_32r5eb + +# +# Int Dot Product +# --------------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_u_d_32r5eb + +# +# Int Max Min +# ----------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_a_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_a_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_a_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_a_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_a_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_a_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_a_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_a_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_a_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_a_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_a_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_a_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_a_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_a_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_a_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_a_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_u_d_32r5eb + +# +# Int Modulo +# ---------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_u_d_32r5eb + +# +# Int Multiply +# ------------ +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_maddv_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddv_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_maddv_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddv_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_maddv_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddv_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_maddv_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddv_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_msubv_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubv_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_msubv_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubv_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_msubv_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubv_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_msubv_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubv_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_mulv_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulv_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_mulv_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulv_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_mulv_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulv_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_mulv_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulv_d_32r5eb + +# +# Int Subtract +# ------------ +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsus_u_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsus_u_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsus_u_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsus_u_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsus_u_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsus_u_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsus_u_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsus_u_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsuu_s_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsuu_s_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsuu_s_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsuu_s_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsuu_s_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsuu_s_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsuu_s_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsuu_s_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subv_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subv_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subv_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subv_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subv_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subv_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subv_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subv_d_32r5eb + +# +# Interleave +# ---------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvev_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvev_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvev_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvev_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvev_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvev_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvev_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvev_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvod_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvod_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvod_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvod_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvod_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvod_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvod_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvod_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvl_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvl_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvl_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvl_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvl_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvl_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvl_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvl_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvr_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvr_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvr_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvr_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvr_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvr_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvr_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvr_d_32r5eb + +# +# Logic +# ----- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc logic/test_msa_and_v.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_and_v_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc logic/test_msa_nor_v.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nor_v_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc logic/test_msa_or_v.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_or_v_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc logic/test_msa_xor_v.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_xor_v_32r5eb + +# +# Move +# ---- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc move/test_msa_move_v.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_move_v_32r5eb + +# +# Pack +# ---- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckev_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckev_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckev_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckev_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckev_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckev_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckev_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckev_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckod_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckod_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckod_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckod_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckod_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckod_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckod_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckod_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_vshf_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_vshf_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_vshf_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_vshf_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_vshf_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_vshf_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_vshf_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_vshf_d_32r5eb + +# +# Shift +# ----- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sll_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sll_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sll_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sll_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sll_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sll_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sll_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sll_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sra_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sra_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sra_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sra_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sra_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sra_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sra_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sra_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srar_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srar_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srar_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srar_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srar_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srar_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srar_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srar_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srl_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srl_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srl_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srl_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srl_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srl_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srl_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srl_d_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srlr_b.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srlr_b_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srlr_h.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srlr_h_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srlr_w.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srlr_w_32r5eb +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srlr_d.c = \ +-EB -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srlr_d_32r5eb diff --git a/tests/tcg/mips/user/ase/msa/test_msa_compile_32r5el.sh b/tests= /tcg/mips/user/ase/msa/test_msa_compile_32r5el.sh new file mode 100755 index 0000000..048b30b --- /dev/null +++ b/tests/tcg/mips/user/ase/msa/test_msa_compile_32r5el.sh @@ -0,0 +1,917 @@ + +# +# Bit Count +# --------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nloc_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nloc_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nloc_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nloc_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nloc_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nlzc_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nlzc_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nlzc_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_nlzc_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nlzc_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pcnt_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pcnt_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pcnt_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-count/test_msa_pcnt_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pcnt_d_32r5el + +# +# Bit move +# -------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsl_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsl_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsl_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsl_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsl_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsl_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsl_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsl_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsr_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsr_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsr_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsr_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsr_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsr_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_binsr_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_binsr_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_bmnz_v.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bmnz_v_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_bmz_v.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bmz_v_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-move/test_msa_bsel_v.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bsel_v_32r5el + +# +# Bit Set +# ------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bclr_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bclr_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bclr_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bclr_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bclr_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bclr_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bclr_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bclr_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bneg_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bneg_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bneg_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bneg_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bneg_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bneg_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bneg_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bneg_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bset_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bset_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bset_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bset_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bset_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bset_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc bit-set/test_msa_bset_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_bset_d_32r5el + +# +# Fixed Multiply +# -------------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_madd_q_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_madd_q_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_madd_q_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_madd_q_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_maddr_q_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddr_q_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_maddr_q_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddr_q_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_msub_q_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msub_q_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_msub_q_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msub_q_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_msubr_q_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubr_q_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_msubr_q_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubr_q_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_mul_q_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mul_q_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_mul_q_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mul_q_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_mulr_q_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulr_q_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc fixed-multiply/test_msa_mulr_q_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulr_q_w_32r5el + +# +# Float Max Min +# ------------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmax_a_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmax_a_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmax_a_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmax_a_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmax_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmax_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmax_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmax_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmin_a_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmin_a_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmin_a_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmin_a_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmin_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmin_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc float-max-min/test_msa_fmin_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_fmin_d_32r5el + +# +# Int Add +# ------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_add_a_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_add_a_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_add_a_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_add_a_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_add_a_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_add_a_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_add_a_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_add_a_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_a_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_a_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_a_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_a_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_a_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_a_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_a_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_a_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_adds_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_adds_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_addv_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_addv_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_addv_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_addv_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_addv_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_addv_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_addv_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_addv_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-add/test_msa_hadd_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hadd_u_d_32r5el + +# +# Int Average +# ----------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_ave_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ave_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-average/test_msa_aver_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_aver_u_d_32r5el + +# +# Int Compare +# ----------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_ceq_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ceq_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_ceq_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ceq_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_ceq_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ceq_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_ceq_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ceq_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_cle_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_cle_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-compare/test_msa_clt_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_clt_u_d_32r5el + +# +# Int Divide +# ---------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-divide/test_msa_div_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_div_u_d_32r5el + +# +# Int Dot Product +# --------------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dotp_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dotp_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpadd_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_dpsub_u_d_32r5el + +# +# Int Max Min +# ----------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_a_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_a_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_a_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_a_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_a_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_a_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_a_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_a_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_max_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_max_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_a_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_a_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_a_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_a_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_a_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_a_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_a_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_a_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-max-min/test_msa_min_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_min_u_d_32r5el + +# +# Int Modulo +# ---------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-modulo/test_msa_mod_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mod_u_d_32r5el + +# +# Int Multiply +# ------------ +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_maddv_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddv_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_maddv_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddv_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_maddv_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddv_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_maddv_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_maddv_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_msubv_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubv_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_msubv_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubv_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_msubv_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubv_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_msubv_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_msubv_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_mulv_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulv_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_mulv_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulv_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_mulv_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulv_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-multiply/test_msa_mulv_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_mulv_d_32r5el + +# +# Int Subtract +# ------------ +# +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_asub_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_asub_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_hsub_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_hsub_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subs_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subs_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsus_u_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsus_u_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsus_u_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsus_u_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsus_u_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsus_u_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsus_u_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsus_u_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsuu_s_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsuu_s_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsuu_s_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsuu_s_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsuu_s_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsuu_s_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subsuu_s_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subsuu_s_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subv_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subv_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subv_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subv_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subv_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subv_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc int-subtract/test_msa_subv_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_subv_d_32r5el + +# +# Interleave +# ---------- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvev_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvev_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvev_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvev_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvev_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvev_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvev_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvev_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvod_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvod_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvod_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvod_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvod_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvod_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvod_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvod_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvl_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvl_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvl_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvl_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvl_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvl_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvl_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvl_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvr_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvr_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvr_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvr_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvr_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvr_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc interleave/test_msa_ilvr_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_ilvr_d_32r5el + +# +# Logic +# ----- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc logic/test_msa_and_v.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_and_v_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc logic/test_msa_nor_v.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_nor_v_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc logic/test_msa_or_v.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_or_v_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc logic/test_msa_xor_v.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_xor_v_32r5el + +# +# Move +# ---- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc move/test_msa_move_v.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_move_v_32r5el + +# +# Pack +# ---- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckev_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckev_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckev_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckev_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckev_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckev_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckev_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckev_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckod_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckod_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckod_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckod_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckod_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckod_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_pckod_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_pckod_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_vshf_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_vshf_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_vshf_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_vshf_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_vshf_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_vshf_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc pack/test_msa_vshf_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_vshf_d_32r5el + +# +# Shift +# ----- +# +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sll_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sll_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sll_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sll_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sll_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sll_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sll_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sll_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sra_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sra_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sra_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sra_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sra_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sra_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_sra_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_sra_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srar_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srar_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srar_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srar_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srar_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srar_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srar_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srar_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srl_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srl_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srl_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srl_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srl_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srl_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srl_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srl_d_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srlr_b.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srlr_b_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srlr_h.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srlr_h_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srlr_w.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srlr_w_32r5el +/opt/mti/bin/mips-mti-linux-gnu-gcc shift/test_msa_srlr_d.c = \ +-EL -static -mabi=3D32 -march=3Dmips32r5 -mmsa -mno-odd-spreg -mfp64 -mnan= =3D2008 -o \ + /tmp/test_msa_srlr_d_32r5el diff --git a/tests/tcg/mips/user/ase/msa/test_msa_compile_32r6eb.sh b/tests= /tcg/mips/user/ase/msa/test_msa_compile_32r6eb.sh deleted file mode 100755 index 2519213..0000000 --- a/tests/tcg/mips/user/ase/msa/test_msa_compile_32r6eb.sh +++ /dev/null @@ -1,643 +0,0 @@ - -# -# Bit Count -# --------- -# -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nloc_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nloc_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nloc_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nloc_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nlzc_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nlzc_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nlzc_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nlzc_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pcnt_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pcnt_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pcnt_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pcnt_d_32= r6eb - -# -# Bit move -# -------- -# -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsl_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsl_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsl_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsl_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsl_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsl_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsl_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsl_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsr_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsr_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsr_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsr_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsr_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsr_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsr_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsr_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_bmnz_v.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bmnz_v_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_bmz_v.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bmz_v_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_bsel_v.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bsel_v_3= 2r6eb - -# -# Bit Set -# ------- -# -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bclr_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bclr_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bclr_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bclr_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bclr_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bclr_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bclr_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bclr_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bneg_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bneg_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bneg_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bneg_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bneg_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bneg_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bneg_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bneg_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bset_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bset_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bset_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bset_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bset_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bset_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bset_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bset_d_32= r6eb - -# -# Fixed Multiply -# -------------- -# -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_madd_q_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_madd_q_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_madd_q_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_madd_q_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_maddr_q_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddr_q_h= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_maddr_q_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddr_q_w= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_msub_q_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msub_q_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_msub_q_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msub_q_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_msubr_q_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubr_q_h= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_msubr_q_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubr_q_w= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_mul_q_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mul_q_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_mul_q_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mul_q_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_mulr_q_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulr_q_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_mulr_q_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulr_q_w_= 32r6eb - -# -# Float Max Min -# ------------- -# -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmax_a_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmax_a_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmax_a_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmax_a_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmax_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmax_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmax_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmax_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmin_a_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmin_a_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmin_a_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmin_a_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmin_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmin_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmin_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmin_d_32= r6eb - -# -# Int Add -# ------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_add_a_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_add_a_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_add_a_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_add_a_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_add_a_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_add_a_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_add_a_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_add_a_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_a_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_a_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_a_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_a_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_a_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_a_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_a_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_a_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_s_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_s_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_s_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_s_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_u_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_u_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_u_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_u_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_addv_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_addv_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_addv_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_addv_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_addv_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_addv_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_addv_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_addv_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_s_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_s_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_s_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_u_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_u_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_u_d_= 32r6eb - -# -# Int Average -# ----------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_s_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_s_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_s_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_s_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_u_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_u_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_u_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_u_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_s_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_s_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_s_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_s_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_u_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_u_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_u_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_u_d_= 32r6eb - -# -# Int Compare -# ----------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_ceq_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ceq_b_32r= 6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_ceq_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ceq_h_32r= 6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_ceq_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ceq_w_32r= 6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_ceq_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ceq_d_32r= 6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_s_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_s_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_s_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_s_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_u_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_u_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_u_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_u_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_s_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_s_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_s_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_s_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_u_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_u_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_u_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_u_d_3= 2r6eb - -# -# Int Divide -# ---------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_s_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_s_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_s_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_s_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_u_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_u_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_u_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_u_d_3= 2r6eb - -# -# Int Dot Product -# --------------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_s_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_s_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_s_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_u_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_u_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_u_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_s_h= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_s_w= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_s_d= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_u_h= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_u_w= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_u_d= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_s_h= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_s_w= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_s_d= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_u_h= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_u_w= _32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_u_d= _32r6eb - -# -# Int Max Min -# ----------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_a_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_a_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_a_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_a_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_a_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_a_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_a_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_a_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_s_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_s_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_s_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_s_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_u_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_u_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_u_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_u_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_a_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_a_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_a_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_a_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_a_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_a_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_a_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_a_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_s_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_s_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_s_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_s_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_u_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_u_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_u_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_u_d_3= 2r6eb - -# -# Int Modulo -# ---------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_s_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_s_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_s_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_s_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_u_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_u_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_u_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_u_d_3= 2r6eb - -# -# Int Multiply -# ------------ -# -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_maddv_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddv_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_maddv_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddv_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_maddv_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddv_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_maddv_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddv_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_msubv_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubv_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_msubv_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubv_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_msubv_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubv_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_msubv_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubv_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_mulv_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulv_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_mulv_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulv_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_mulv_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulv_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_mulv_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulv_d_32= r6eb - -# -# Int Subtract -# ------------ -# -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_s_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_s_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_s_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_s_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_u_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_u_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_u_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_u_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_s_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_s_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_s_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_u_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_u_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_u_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_s_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_s_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_s_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_s_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_u_b_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_u_h_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_u_w_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_u_d_= 32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsus_u_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsus_u_= b_32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsus_u_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsus_u_= h_32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsus_u_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsus_u_= w_32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsus_u_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsus_u_= d_32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsuu_s_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsuu_s_= b_32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsuu_s_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsuu_s_= h_32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsuu_s_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsuu_s_= w_32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsuu_s_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsuu_s_= d_32r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subv_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subv_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subv_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subv_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subv_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subv_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subv_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subv_d_32= r6eb - -# -# Interleave -# ---------- -# -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvev_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvev_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvev_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvev_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvev_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvev_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvev_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvev_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvod_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvod_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvod_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvod_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvod_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvod_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvod_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvod_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvl_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvl_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvl_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvl_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvl_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvl_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvl_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvl_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvr_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvr_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvr_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvr_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvr_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvr_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvr_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvr_d_32= r6eb - -# -# Logic -# ----- -# -/opt/img/bin/mips-img-linux-gnu-gcc logic/test_msa_and_v.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_and_v_32r= 6eb -/opt/img/bin/mips-img-linux-gnu-gcc logic/test_msa_nor_v.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nor_v_32r= 6eb -/opt/img/bin/mips-img-linux-gnu-gcc logic/test_msa_or_v.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_or_v_32r6= eb -/opt/img/bin/mips-img-linux-gnu-gcc logic/test_msa_xor_v.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_xor_v_32r= 6eb - -# -# Move -# ---- -# -/opt/img/bin/mips-img-linux-gnu-gcc move/test_msa_move_v.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_move_v_32= r6eb - -# -# Pack -# ---- -# -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckev_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckev_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckev_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckev_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckev_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckev_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckev_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckev_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckod_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckod_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckod_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckod_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckod_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckod_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckod_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckod_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_vshf_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_vshf_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_vshf_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_vshf_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_vshf_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_vshf_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_vshf_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_vshf_d_32= r6eb - -# -# Shift -# ----- -# -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sll_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sll_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sll_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sll_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sll_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sll_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sll_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sll_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sra_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sra_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sra_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sra_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sra_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sra_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sra_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sra_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srar_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srar_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srar_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srar_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srar_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srar_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srar_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srar_d_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srl_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srl_b_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srl_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srl_h_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srl_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srl_w_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srl_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srl_d_32= r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srlr_b.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srlr_b_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srlr_h.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srlr_h_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srlr_w.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srlr_w_3= 2r6eb -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srlr_d.c = \ --EB -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srlr_d_3= 2r6eb diff --git a/tests/tcg/mips/user/ase/msa/test_msa_compile_32r6el.sh b/tests= /tcg/mips/user/ase/msa/test_msa_compile_32r6el.sh deleted file mode 100755 index 1e10ff7..0000000 --- a/tests/tcg/mips/user/ase/msa/test_msa_compile_32r6el.sh +++ /dev/null @@ -1,643 +0,0 @@ - -# -# Bit Count -# --------- -# -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nloc_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nloc_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nloc_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nloc_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nloc_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nlzc_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nlzc_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nlzc_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_nlzc_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nlzc_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pcnt_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pcnt_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pcnt_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-count/test_msa_pcnt_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pcnt_d_32= r6el - -# -# Bit move -# -------- -# -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsl_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsl_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsl_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsl_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsl_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsl_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsl_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsl_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsr_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsr_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsr_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsr_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsr_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsr_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_binsr_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_binsr_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_bmnz_v.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bmnz_v_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_bmz_v.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bmz_v_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-move/test_msa_bsel_v.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bsel_v_3= 2r6el - -# -# Bit Set -# ------- -# -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bclr_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bclr_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bclr_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bclr_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bclr_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bclr_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bclr_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bclr_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bneg_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bneg_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bneg_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bneg_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bneg_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bneg_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bneg_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bneg_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bset_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bset_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bset_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bset_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bset_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bset_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc bit-set/test_msa_bset_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_bset_d_32= r6el - -# -# Fixed Multiply -# -------------- -# -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_madd_q_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_madd_q_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_madd_q_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_madd_q_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_maddr_q_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddr_q_h= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_maddr_q_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddr_q_w= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_msub_q_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msub_q_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_msub_q_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msub_q_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_msubr_q_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubr_q_h= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_msubr_q_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubr_q_w= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_mul_q_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mul_q_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_mul_q_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mul_q_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_mulr_q_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulr_q_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc fixed-multiply/test_msa_mulr_q_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulr_q_w_= 32r6el - -# -# Float Max Min -# ------------- -# -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmax_a_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmax_a_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmax_a_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmax_a_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmax_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmax_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmax_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmax_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmin_a_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmin_a_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmin_a_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmin_a_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmin_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmin_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc float-max-min/test_msa_fmin_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_fmin_d_32= r6el - -# -# Int Add -# ------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_add_a_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_add_a_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_add_a_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_add_a_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_add_a_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_add_a_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_add_a_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_add_a_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_a_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_a_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_a_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_a_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_a_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_a_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_a_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_a_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_s_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_s_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_s_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_s_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_u_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_u_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_u_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_adds_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_adds_u_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_addv_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_addv_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_addv_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_addv_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_addv_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_addv_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_addv_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_addv_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_s_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_s_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_s_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_u_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_u_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-add/test_msa_hadd_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hadd_u_d_= 32r6el - -# -# Int Average -# ----------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_s_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_s_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_s_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_s_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_u_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_u_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_u_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_ave_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ave_u_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_s_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_s_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_s_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_s_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_u_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_u_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_u_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-average/test_msa_aver_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_aver_u_d_= 32r6el - -# -# Int Compare -# ----------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_ceq_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ceq_b_32r= 6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_ceq_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ceq_h_32r= 6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_ceq_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ceq_w_32r= 6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_ceq_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ceq_d_32r= 6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_s_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_s_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_s_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_s_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_u_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_u_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_u_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_cle_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_cle_u_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_s_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_s_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_s_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_s_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_u_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_u_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_u_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-compare/test_msa_clt_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_clt_u_d_3= 2r6el - -# -# Int Divide -# ---------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_s_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_s_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_s_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_s_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_u_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_u_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_u_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-divide/test_msa_div_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_div_u_d_3= 2r6el - -# -# Int Dot Product -# --------------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_s_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_s_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_s_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_u_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_u_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dotp_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dotp_u_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_s_h= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_s_w= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_s_d= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_u_h= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_u_w= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpadd_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpadd_u_d= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_s_h= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_s_w= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_s_d= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_u_h= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_u_w= _32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-dot-product/test_msa_dpsub_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_dpsub_u_d= _32r6el - -# -# Int Max Min -# ----------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_a_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_a_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_a_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_a_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_a_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_a_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_a_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_a_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_s_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_s_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_s_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_s_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_u_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_u_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_u_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_max_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_max_u_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_a_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_a_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_a_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_a_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_a_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_a_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_a_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_a_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_s_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_s_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_s_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_s_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_u_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_u_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_u_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-max-min/test_msa_min_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_min_u_d_3= 2r6el - -# -# Int Modulo -# ---------- -# -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_s_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_s_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_s_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_s_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_u_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_u_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_u_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-modulo/test_msa_mod_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mod_u_d_3= 2r6el - -# -# Int Multiply -# ------------ -# -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_maddv_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddv_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_maddv_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddv_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_maddv_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddv_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_maddv_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_maddv_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_msubv_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubv_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_msubv_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubv_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_msubv_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubv_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_msubv_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_msubv_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_mulv_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulv_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_mulv_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulv_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_mulv_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulv_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-multiply/test_msa_mulv_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_mulv_d_32= r6el - -# -# Int Subtract -# ------------ -# -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_s_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_s_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_s_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_s_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_u_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_u_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_u_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_asub_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_asub_u_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_s_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_s_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_s_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_u_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_u_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_hsub_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_hsub_u_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_s_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_s_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_s_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_s_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_u_b_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_u_h_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_u_w_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subs_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subs_u_d_= 32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsus_u_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsus_u_= b_32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsus_u_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsus_u_= h_32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsus_u_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsus_u_= w_32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsus_u_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsus_u_= d_32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsuu_s_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsuu_s_= b_32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsuu_s_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsuu_s_= h_32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsuu_s_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsuu_s_= w_32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subsuu_s_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subsuu_s_= d_32r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subv_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subv_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subv_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subv_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subv_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subv_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc int-subtract/test_msa_subv_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_subv_d_32= r6el - -# -# Interleave -# ---------- -# -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvev_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvev_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvev_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvev_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvev_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvev_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvev_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvev_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvod_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvod_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvod_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvod_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvod_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvod_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvod_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvod_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvl_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvl_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvl_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvl_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvl_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvl_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvl_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvl_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvr_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvr_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvr_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvr_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvr_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvr_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc interleave/test_msa_ilvr_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_ilvr_d_32= r6el - -# -# Logic -# ----- -# -/opt/img/bin/mips-img-linux-gnu-gcc logic/test_msa_and_v.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_and_v_32r= 6el -/opt/img/bin/mips-img-linux-gnu-gcc logic/test_msa_nor_v.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_nor_v_32r= 6el -/opt/img/bin/mips-img-linux-gnu-gcc logic/test_msa_or_v.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_or_v_32r6= el -/opt/img/bin/mips-img-linux-gnu-gcc logic/test_msa_xor_v.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_xor_v_32r= 6el - -# -# Move -# ---- -# -/opt/img/bin/mips-img-linux-gnu-gcc move/test_msa_move_v.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_move_v_32= r6el - -# -# Pack -# ---- -# -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckev_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckev_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckev_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckev_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckev_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckev_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckev_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckev_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckod_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckod_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckod_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckod_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckod_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckod_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_pckod_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_pckod_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_vshf_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_vshf_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_vshf_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_vshf_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_vshf_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_vshf_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc pack/test_msa_vshf_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_vshf_d_32= r6el - -# -# Shift -# ----- -# -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sll_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sll_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sll_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sll_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sll_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sll_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sll_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sll_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sra_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sra_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sra_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sra_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sra_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sra_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_sra_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_sra_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srar_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srar_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srar_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srar_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srar_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srar_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srar_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srar_d_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srl_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srl_b_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srl_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srl_h_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srl_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srl_w_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srl_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srl_d_32= r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srlr_b.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srlr_b_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srlr_h.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srlr_h_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srlr_w.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srlr_w_3= 2r6el -/opt/img/bin/mips-img-linux-gnu-gcc shift/test_msa_srlr_d.c = \ --EL -static -mabi=3D32 -march=3Dmips32r6 -mmsa -o /tmp/test_msa_srlr_d_3= 2r6el diff --git a/tests/tcg/mips/user/ase/msa/test_msa_run_32r5eb.sh b/tests/tcg= /mips/user/ase/msa/test_msa_run_32r5eb.sh new file mode 100755 index 0000000..32dbf31 --- /dev/null +++ b/tests/tcg/mips/user/ase/msa/test_msa_run_32r5eb.sh @@ -0,0 +1,371 @@ +PATH_TO_QEMU=3D"../../../../../../mips-linux-user/qemu-mips" + + +# +# Bit Count +# --------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_d_32r5eb + +# +# Bit move +# -------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsl_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsl_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsl_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsl_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsr_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsr_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsr_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsr_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bmnz_v_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bmz_v_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bsel_v_32r5eb + +# +# Bit Set +# ------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bclr_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bclr_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bclr_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bclr_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bneg_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bneg_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bneg_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bneg_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bset_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bset_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bset_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bset_d_32r5eb + +# +# Fixed Multiply +# -------------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_madd_q_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_madd_q_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddr_q_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddr_q_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msub_q_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msub_q_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubr_q_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubr_q_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mul_q_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mul_q_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulr_q_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulr_q_w_32r5eb + +# +# Float Max Min +# ------------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmax_a_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmax_a_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmax_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmax_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmin_a_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmin_a_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmin_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmin_d_32r5eb + +# +# Int Add +# ------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_add_a_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_add_a_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_add_a_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_add_a_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_a_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_a_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_a_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_a_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_addv_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_addv_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_addv_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_addv_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_u_d_32r5eb + +# +# Int Average +# ----------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_u_d_32r5eb + +# +# Int Compare +# ----------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ceq_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ceq_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ceq_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ceq_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_u_d_32r5eb + +# +# Int Divide +# ---------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_u_d_32r5eb + +# +# Int Dot Product +# --------------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_u_d_32r5eb + +# +# Int Max Min +# ----------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_a_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_a_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_a_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_a_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_a_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_a_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_a_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_a_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_u_d_32r5eb + +# +# Int Modulo +# ---------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_u_d_32r5eb + +# +# Int Multiply +# ------------ +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddv_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddv_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddv_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddv_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubv_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubv_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubv_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubv_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulv_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulv_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulv_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulv_d_32r5eb + +# +# Int Subtract +# ------------ +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsus_u_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsus_u_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsus_u_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsus_u_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsuu_s_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsuu_s_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsuu_s_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsuu_s_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subv_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subv_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subv_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subv_d_32r5eb + +# +# Interleave +# ---------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvev_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvev_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvev_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvev_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvod_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvod_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvod_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvod_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvl_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvl_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvl_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvl_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvr_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvr_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvr_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvr_d_32r5eb + +# +# Logic +# ----- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_and_v_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nor_v_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_or_v_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_xor_v_32r5eb + +# +# Move +# ---- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_move_v_32r5eb + +# +# Pack +# ---- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckev_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckev_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckev_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckev_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckod_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckod_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckod_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckod_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_vshf_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_vshf_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_vshf_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_vshf_d_32r5eb + +# +# Shift +# ----- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sll_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sll_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sll_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sll_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sra_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sra_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sra_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sra_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srar_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srar_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srar_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srar_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srl_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srl_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srl_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srl_d_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srlr_b_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srlr_h_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srlr_w_32r5eb +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srlr_d_32r5eb diff --git a/tests/tcg/mips/user/ase/msa/test_msa_run_32r5el.sh b/tests/tcg= /mips/user/ase/msa/test_msa_run_32r5el.sh new file mode 100755 index 0000000..a2e6092 --- /dev/null +++ b/tests/tcg/mips/user/ase/msa/test_msa_run_32r5el.sh @@ -0,0 +1,371 @@ +PATH_TO_QEMU=3D"../../../../../../mipsel-linux-user/qemu-mipsel" + + +# +# Bit Count +# --------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nloc_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nlzc_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pcnt_d_32r5el + +# +# Bit move +# -------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsl_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsl_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsl_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsl_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsr_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsr_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsr_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_binsr_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bmnz_v_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bmz_v_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bsel_v_32r5el + +# +# Bit Set +# ------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bclr_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bclr_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bclr_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bclr_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bneg_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bneg_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bneg_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bneg_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bset_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bset_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bset_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_bset_d_32r5el + +# +# Fixed Multiply +# -------------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_madd_q_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_madd_q_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddr_q_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddr_q_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msub_q_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msub_q_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubr_q_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubr_q_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mul_q_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mul_q_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulr_q_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulr_q_w_32r5el + +# +# Float Max Min +# ------------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmax_a_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmax_a_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmax_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmax_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmin_a_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmin_a_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmin_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_fmin_d_32r5el + +# +# Int Add +# ------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_add_a_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_add_a_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_add_a_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_add_a_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_a_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_a_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_a_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_a_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_adds_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_addv_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_addv_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_addv_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_addv_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hadd_u_d_32r5el + +# +# Int Average +# ----------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ave_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_aver_u_d_32r5el + +# +# Int Compare +# ----------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ceq_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ceq_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ceq_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ceq_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_cle_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_clt_u_d_32r5el + +# +# Int Divide +# ---------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_div_u_d_32r5el + +# +# Int Dot Product +# --------------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dotp_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpadd_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_dpsub_u_d_32r5el + +# +# Int Max Min +# ----------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_a_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_a_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_a_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_a_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_max_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_a_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_a_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_a_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_a_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_min_u_d_32r5el + +# +# Int Modulo +# ---------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mod_u_d_32r5el + +# +# Int Multiply +# ------------ +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddv_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddv_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddv_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_maddv_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubv_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubv_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubv_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_msubv_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulv_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulv_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulv_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_mulv_d_32r5el + +# +# Int Subtract +# ------------ +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_asub_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_hsub_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subs_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsus_u_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsus_u_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsus_u_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsus_u_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsuu_s_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsuu_s_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsuu_s_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subsuu_s_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subv_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subv_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subv_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_subv_d_32r5el + +# +# Interleave +# ---------- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvev_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvev_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvev_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvev_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvod_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvod_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvod_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvod_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvl_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvl_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvl_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvl_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvr_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvr_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvr_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_ilvr_d_32r5el + +# +# Logic +# ----- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_and_v_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_nor_v_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_or_v_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_xor_v_32r5el + +# +# Move +# ---- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_move_v_32r5el + +# +# Pack +# ---- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckev_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckev_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckev_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckev_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckod_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckod_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckod_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_pckod_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_vshf_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_vshf_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_vshf_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_vshf_d_32r5el + +# +# Shift +# ----- +# +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sll_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sll_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sll_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sll_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sra_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sra_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sra_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_sra_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srar_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srar_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srar_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srar_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srl_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srl_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srl_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srl_d_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srlr_b_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srlr_h_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srlr_w_32r5el +$PATH_TO_QEMU -cpu P5600 /tmp/test_msa_srlr_d_32r5el diff --git a/tests/tcg/mips/user/ase/msa/test_msa_run_32r6eb.sh b/tests/tcg= /mips/user/ase/msa/test_msa_run_32r6eb.sh deleted file mode 100644 index 6c95e45..0000000 --- a/tests/tcg/mips/user/ase/msa/test_msa_run_32r6eb.sh +++ /dev/null @@ -1,371 +0,0 @@ -PATH_TO_QEMU=3D"../../../../../../mips64-linux-user/qemu-mips64" - - -# -# Bit Count -# --------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_d_32r6eb - -# -# Bit move -# -------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsl_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsl_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsl_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsl_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsr_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsr_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsr_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsr_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bmnz_v_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bmz_v_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bsel_v_32r6eb - -# -# Bit Set -# ------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bclr_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bclr_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bclr_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bclr_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bneg_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bneg_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bneg_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bneg_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bset_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bset_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bset_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bset_d_32r6eb - -# -# Fixed Multiply -# -------------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_madd_q_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_madd_q_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddr_q_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddr_q_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msub_q_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msub_q_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubr_q_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubr_q_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mul_q_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mul_q_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulr_q_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulr_q_w_32r6eb - -# -# Float Max Min -# ------------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmax_a_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmax_a_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmax_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmax_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmin_a_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmin_a_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmin_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmin_d_32r6eb - -# -# Int Add -# ------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_add_a_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_add_a_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_add_a_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_add_a_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_a_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_a_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_a_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_a_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_addv_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_addv_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_addv_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_addv_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_u_d_32r6eb - -# -# Int Average -# ----------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_u_d_32r6eb - -# -# Int Compare -# ----------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ceq_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ceq_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ceq_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ceq_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_u_d_32r6eb - -# -# Int Divide -# ---------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_u_d_32r6eb - -# -# Int Dot Product -# --------------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_u_d_32r6eb - -# -# Int Max Min -# ----------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_a_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_a_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_a_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_a_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_a_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_a_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_a_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_a_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_u_d_32r6eb - -# -# Int Modulo -# ---------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_u_d_32r6eb - -# -# Int Multiply -# ------------ -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddv_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddv_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddv_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddv_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubv_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubv_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubv_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubv_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulv_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulv_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulv_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulv_d_32r6eb - -# -# Int Subtract -# ------------ -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsus_u_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsus_u_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsus_u_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsus_u_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsuu_s_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsuu_s_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsuu_s_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsuu_s_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subv_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subv_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subv_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subv_d_32r6eb - -# -# Interleave -# ---------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvev_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvev_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvev_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvev_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvod_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvod_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvod_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvod_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvl_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvl_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvl_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvl_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvr_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvr_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvr_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvr_d_32r6eb - -# -# Logic -# ----- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_and_v_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nor_v_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_or_v_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_xor_v_32r6eb - -# -# Move -# ---- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_move_v_32r6eb - -# -# Pack -# ---- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckev_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckev_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckev_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckev_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckod_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckod_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckod_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckod_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_vshf_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_vshf_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_vshf_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_vshf_d_32r6eb - -# -# Shift -# ----- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sll_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sll_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sll_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sll_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sra_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sra_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sra_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sra_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srar_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srar_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srar_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srar_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srl_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srl_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srl_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srl_d_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srlr_b_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srlr_h_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srlr_w_32r6eb -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srlr_d_32r6eb diff --git a/tests/tcg/mips/user/ase/msa/test_msa_run_32r6el.sh b/tests/tcg= /mips/user/ase/msa/test_msa_run_32r6el.sh deleted file mode 100755 index d4945da..0000000 --- a/tests/tcg/mips/user/ase/msa/test_msa_run_32r6el.sh +++ /dev/null @@ -1,371 +0,0 @@ -PATH_TO_QEMU=3D"../../../../../../mips64el-linux-user/qemu-mips64el" - - -# -# Bit Count -# --------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nloc_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nlzc_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pcnt_d_32r6el - -# -# Bit move -# -------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsl_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsl_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsl_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsl_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsr_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsr_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsr_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_binsr_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bmnz_v_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bmz_v_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bsel_v_32r6el - -# -# Bit Set -# ------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bclr_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bclr_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bclr_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bclr_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bneg_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bneg_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bneg_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bneg_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bset_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bset_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bset_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_bset_d_32r6el - -# -# Fixed Multiply -# -------------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_madd_q_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_madd_q_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddr_q_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddr_q_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msub_q_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msub_q_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubr_q_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubr_q_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mul_q_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mul_q_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulr_q_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulr_q_w_32r6el - -# -# Float Max Min -# ------------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmax_a_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmax_a_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmax_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmax_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmin_a_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmin_a_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmin_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_fmin_d_32r6el - -# -# Int Add -# ------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_add_a_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_add_a_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_add_a_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_add_a_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_a_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_a_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_a_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_a_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_adds_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_addv_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_addv_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_addv_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_addv_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hadd_u_d_32r6el - -# -# Int Average -# ----------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ave_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_aver_u_d_32r6el - -# -# Int Compare -# ----------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ceq_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ceq_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ceq_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ceq_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_cle_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_clt_u_d_32r6el - -# -# Int Divide -# ---------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_div_u_d_32r6el - -# -# Int Dot Product -# --------------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dotp_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpadd_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_dpsub_u_d_32r6el - -# -# Int Max Min -# ----------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_a_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_a_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_a_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_a_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_max_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_a_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_a_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_a_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_a_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_min_u_d_32r6el - -# -# Int Modulo -# ---------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mod_u_d_32r6el - -# -# Int Multiply -# ------------ -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddv_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddv_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddv_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_maddv_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubv_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubv_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubv_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_msubv_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulv_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulv_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulv_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_mulv_d_32r6el - -# -# Int Subtract -# ------------ -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_asub_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_hsub_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subs_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsus_u_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsus_u_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsus_u_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsus_u_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsuu_s_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsuu_s_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsuu_s_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subsuu_s_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subv_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subv_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subv_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_subv_d_32r6el - -# -# Interleave -# ---------- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvev_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvev_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvev_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvev_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvod_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvod_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvod_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvod_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvl_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvl_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvl_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvl_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvr_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvr_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvr_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_ilvr_d_32r6el - -# -# Logic -# ----- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_and_v_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_nor_v_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_or_v_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_xor_v_32r6el - -# -# Move -# ---- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_move_v_32r6el - -# -# Pack -# ---- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckev_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckev_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckev_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckev_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckod_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckod_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckod_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_pckod_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_vshf_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_vshf_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_vshf_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_vshf_d_32r6el - -# -# Shift -# ----- -# -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sll_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sll_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sll_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sll_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sra_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sra_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sra_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_sra_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srar_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srar_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srar_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srar_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srl_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srl_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srl_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srl_d_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srlr_b_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srlr_h_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srlr_w_32r6el -$PATH_TO_QEMU -cpu I6400 /tmp/test_msa_srlr_d_32r6el --=20 2.7.4