From nobody Wed Nov 19 00:18:02 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.42 as permitted sender) client-ip=209.85.221.42; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f42.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.42 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1613325656; cv=none; d=zohomail.com; s=zohoarc; b=KAvZSHW71/pWCpmSNE27M+PNXdYcZzXzhbnotPBioeSBTMml7NdEfzu4H56ZlRgc+Sg4gq/jl1kJGiCJ6LnOnRutPH2oEb/lQfbmNy5E4wbs0Acc4E04M7lpXGcEVHma9mFLSN3DvIA+ocuHLU3n0WHpMv2RfdZU1hdMm7YSfT4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1613325656; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=omFKrMKfMKAUYuqEWFQKfmLF68dd1WCyeAVMWMjtasg=; b=Nhn2MwAKPYQttpkZ3ZBOE9A8YuJawBHb/fXKEnx5O0KRyR9Z/VXVkkn2e+yiM6OOGabm3Y0NhiCxQM2TE3gJEap2DIZQunTchrtQRKDk+h4yjyqcqY7g/6PHpfJ3ndUzGzfIo8C9CgKdrh1oqyNLBMtLWzPS1SEG9H/Elm20D2E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.42 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by mx.zohomail.com with SMTPS id 1613325656284116.64370495078867; Sun, 14 Feb 2021 10:00:56 -0800 (PST) Received: by mail-wr1-f42.google.com with SMTP id n8so6075275wrm.10 for ; Sun, 14 Feb 2021 10:00:55 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id v17sm15268445wru.85.2021.02.14.10.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 10:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=omFKrMKfMKAUYuqEWFQKfmLF68dd1WCyeAVMWMjtasg=; b=G+nwTw8wpnUguA4/wY9mSGUJvHeLI6HW0UNOZI0CcnMbBCtQKY/UgxXSaU9pJJRZ6I 20038Ie8wZ3KjzC3enA3vSamPunm7d7i3F1yPjNEWtYRBlMg3g5l9YrXf7F7G8uqCFWC 5lZoyBASQNlurs8RBufVfFOEYJngWlBGATB3Y3cYWq0c2W84/KJhj3ETuSQalgoyFiV+ f693ahRHcLypiL2uWYgEWOpw/TGV6DBxuYlHg2DeuTt8B5d1B0ZbqPpr4rBm5BVooEte K/DBYq2V8ggVC0icwTUtp/+YZC2rnmRAbs1z7CqurwtHlpU/AYycPeg25KxLWI9hOY2j dC9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=omFKrMKfMKAUYuqEWFQKfmLF68dd1WCyeAVMWMjtasg=; b=JkX8+FtPLg7pry/uDT7iynZ/8G6VGFiY6s0Z4LQJIzcmuWY1uD7NqeMcOtaM0xa8ql l1qWglqAb5jU7+fy0JOc3Rbhrau47Vq06Fp3O3jAPZv2PIB/UTL3B9eJu4G5SGu+tkAy Ab5YEKmXMjL+tHTy4RoSeRRzrfGXrrPX/gZ9d/3W97Opr2whv8qpEYglWlk8HZEutP5K k/XmbBtpBdudlGqFO0NUD08KbrptNjmb1sr8ZUpTJ0W4F4qOKnVj9dIuRPSb0acvFrKn Fm+c26s+thAgehkXyc5/j7UalDzYGmEeeyWEFfTmGs1EzgLN8uVQlZybWfcBQAKolXRp iDNQ== X-Gm-Message-State: AOAM5301azgMz8UQmWZID5whE2ILM5i34bKwAQ22LTc9mNJDonzC4wFA hwuMqiH/ImJBWjnGoUD8hQk= X-Google-Smtp-Source: ABdhPJwAEw2X+suAJ95ukiTka0wYZucudR+mZfAj/KbV8rX+UBpQBoe7YGCtCVm+VGSzXIHFw4bl1w== X-Received: by 2002:adf:f8cf:: with SMTP id f15mr15221119wrq.121.1613325654917; Sun, 14 Feb 2021 10:00:54 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fredrik Noring , Laurent Vivier , Jiaxun Yang , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , "Maciej W. Rozycki" , Thomas Huth , Aurelien Jarno , Richard Henderson , Aleksandar Rikalo Subject: [RFC PATCH 20/42] target/mips/tx79: Introduce PCGT* (Parallel Compare for Greater Than) Date: Sun, 14 Feb 2021 18:58:50 +0100 Message-Id: <20210214175912.732946-21-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210214175912.732946-1-f4bug@amsat.org> References: <20210214175912.732946-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) Introduce the 'Parallel Compare for Greater Than' opcodes: - PCGTB (Parallel Compare for Greater Than Byte) - PCGTH (Parallel Compare for Greater Than Halfword) - PCGTW (Parallel Compare for Greater Than Word) Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/mips/tx79.decode | 3 +++ target/mips/tx79_translate.c | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/target/mips/tx79.decode b/target/mips/tx79.decode index cfe721755ca..63fbe9694bb 100644 --- a/target/mips/tx79.decode +++ b/target/mips/tx79.decode @@ -32,8 +32,11 @@ MTLO1 011100 ..... 0000000000 00000 010011 = @rs # MMI0 =20 PSUBW 011100 ..... ..... ..... 00001 001000 @rs_rt_rd +PCGTW 011100 ..... ..... ..... 00010 001000 @rs_rt_rd PSUBH 011100 ..... ..... ..... 00101 001000 @rs_rt_rd +PCGTH 011100 ..... ..... ..... 00110 001000 @rs_rt_rd PSUBB 011100 ..... ..... ..... 01001 001000 @rs_rt_rd +PCGTB 011100 ..... ..... ..... 01010 001000 @rs_rt_rd PEXTLW 011100 ..... ..... ..... 10010 001000 @rs_rt_rd PEXTLH 011100 ..... ..... ..... 10110 001000 @rs_rt_rd PEXTLB 011100 ..... ..... ..... 11010 001000 @rs_rt_rd diff --git a/target/mips/tx79_translate.c b/target/mips/tx79_translate.c index f084faa48a7..04249b0c20a 100644 --- a/target/mips/tx79_translate.c +++ b/target/mips/tx79_translate.c @@ -327,18 +327,36 @@ static bool trans_parallel_compare(DisasContext *ctx,= arg_rtype *a, return true; } =20 +/* Parallel Compare for Greater Than Byte */ +static bool trans_PCGTB(DisasContext *ctx, arg_rtype *a) +{ + return trans_parallel_compare(ctx, a, TCG_COND_GE, 8); +} + /* Parallel Compare for Equal Byte */ static bool trans_PCEQB(DisasContext *ctx, arg_rtype *a) { return trans_parallel_compare(ctx, a, TCG_COND_EQ, 8); } =20 +/* Parallel Compare for Greater Than Halfword */ +static bool trans_PCGTH(DisasContext *ctx, arg_rtype *a) +{ + return trans_parallel_compare(ctx, a, TCG_COND_GE, 16); +} + /* Parallel Compare for Equal Halfword */ static bool trans_PCEQH(DisasContext *ctx, arg_rtype *a) { return trans_parallel_compare(ctx, a, TCG_COND_EQ, 16); } =20 +/* Parallel Compare for Greater Than Word */ +static bool trans_PCGTW(DisasContext *ctx, arg_rtype *a) +{ + return trans_parallel_compare(ctx, a, TCG_COND_GE, 32); +} + /* Parallel Compare for Equal Word */ static bool trans_PCEQW(DisasContext *ctx, arg_rtype *a) { --=20 2.26.2