From patchwork Fri Jan 19 23:22:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 763963 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp109522wrx; Fri, 19 Jan 2024 15:24:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzS8CITZdqQZxNC6ca5iaJoyQCecQKUX2GpT2wVX3Fpfg+vvK5zqd1qhdiSqGXcrG5dypW X-Received: by 2002:a05:6214:d42:b0:681:3775:ed4b with SMTP id 2-20020a0562140d4200b006813775ed4bmr3009611qvr.29.1705706669412; Fri, 19 Jan 2024 15:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705706669; cv=none; d=google.com; s=arc-20160816; b=dCdCEdmub+m/uEe1TeIz5C/2GFoqxZ3h377poSfBz8kQnRcKyc5gmt/ziZ6JSSdjLY MjLA3mmSyTWSPuc9fWty0WA/9qPGtUpEeWVU6K9B2JFZvW5zLCzvmUfRrI8E5VnISEit qRa/haZ2HR2m3zWaLoQqOUy86tNpa8LuXccIERwZ7Ihp8g1o34lWdwvee8iP9IJdf55R P+MpCQUjbMoieRWR9XlmxWYrMjz5HZq0m+nQHg3Lm+hwulLrVBk10En3FM0fhUYxdAbb FJcIPpKs/q0iMaFf43U8u6vcj4rs40GksgTlguEFsTM81rbz3yHqJF377DJ0vEEqof1N Nl8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZsZYTBqcxLmUzApr+Hi9hM5A3V+n1o4VvJJUuDY59oo=; fh=04ycLKTWno9tnkGng2eIaNWueAwLX2fvg2ZFcmhcji4=; b=hIlA58qnBFopSllcvY1e8V/k2pLlqhSvTSliqM2V3yq0Rdg7iyPTWaTrai4OwQFHxS ODCgau5D2HRtIvU7BsPJ/vf0pbyQrnXG8CmAmSgqngC6qq5Twtnu1WSotNdQNbLb+u9D HSmXBPufST/DdpK6D8WaPRfh7zkEQe1WSqVRjEQ/QpwBsjhp6+I1pTTlPczB/d7NnzYr I0bvChVFWIx4BcINrWre7omRH4/OZclsAinSqdy0G1lzP+NnHHgBnfMOTcutYfStxK6f nrWmh5XAhI17hbnNiWwiIeXrMDqb2cyxYjeqKMtSbBPHxOUFkJKJo3QbDtm7QuQ9C69C uQTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AVG43C1V; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p7-20020a0ce187000000b00680684164a6si319686qvl.304.2024.01.19.15.24.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 15:24:29 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AVG43C1V; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQyCb-0000Sx-OW; Fri, 19 Jan 2024 18:23:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rQyCZ-0000Sl-Ea for qemu-devel@nongnu.org; Fri, 19 Jan 2024 18:23:07 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQyCX-0008FH-Pv for qemu-devel@nongnu.org; Fri, 19 Jan 2024 18:23:07 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40e9d288f45so13731585e9.2 for ; Fri, 19 Jan 2024 15:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705706584; x=1706311384; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZsZYTBqcxLmUzApr+Hi9hM5A3V+n1o4VvJJUuDY59oo=; b=AVG43C1VzC+CJpA+UzLg5L7YxHzFu7AR+1N6sz0diEPtrVGoeIknGmfkAUPGiOXV8O f94Y4HlCrXvCtXLK/dvcrwfZ/IDGnBxvkgQ0t09GaNsCfZHoigwckOm3kHobMqpTlZf2 wzSGzCo/Eq9INPBGA1C3ci2N/G1pziW3UmzChawUYcx9iSU5FavELU4vds0hmImX+RYL O0nY1NaKTafU0K5xnqJCRPZqpnRMqDjPNOQuLuuzgsTPm7WfzOSeqDzGSAyYIKGkSFcr Objwv04rEG5g/KqSfOqOT83or3EyMU48hbA6VBXF1SgL7+emMpMofoYKUohM+7URxGmJ OVEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705706584; x=1706311384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZsZYTBqcxLmUzApr+Hi9hM5A3V+n1o4VvJJUuDY59oo=; b=qUGQq7g8aduMT8IHFMD5VGR1xw3EbVmIdD3uhQT3xhWn22DEsxAXWnO1goqrZjL/c+ Xu1HUS0bEdTgpD78JEIQlw6Lpra6Ec1gWaUnNtFXdbQQ+7vKZeaCgGQ3927zOUi832V4 pdto52ftc1fUdggA9SUwtgZovZ5i04LatZFoZWVy+TZXbVSQSN0h46q69gpfncIhTFUK hQ4VzDeOiphRSMu51o1Gewnswy1n4o7TxChrYiydTfGwK6fI1uNbBCrO1riDNayt4/Ae BZNZJnre6LDVRcqGYhW3qnVZeT/d+bg35AOybCXD7/JNqsbfrfUsfA9cV7RVZRlcTto8 FGww== X-Gm-Message-State: AOJu0YxiEoxZGczYv2ucJd9vntTaJGG3fGt/x1lI7UZ8yCI4wr3cKjPG lTZ+CA/xyY075YLvVYcj2X6tsTZsLMrdLuFM+798kDLrFDGgskXHYoIDU3kX3qhPzBxnbkYjPCO 1 X-Received: by 2002:a05:600c:3106:b0:40d:88a8:f89 with SMTP id g6-20020a05600c310600b0040d88a80f89mr182327wmo.149.1705706584014; Fri, 19 Jan 2024 15:23:04 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id n15-20020a05600c3b8f00b0040d5a5c523csm34589474wms.1.2024.01.19.15.23.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 15:23:03 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Richard Henderson , David Hildenbrand , Thomas Huth , qemu-s390x@nongnu.org, Ilya Leoshkevich , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 15/38 1/6] target/s390x: Reorder CC_OP_STATIC switch case in disas_jcc (1/5) Date: Sat, 20 Jan 2024 00:22:57 +0100 Message-ID: <20240119232302.50393-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240110224408.10444-16-richard.henderson@linaro.org> References: <20240110224408.10444-16-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Code movement to ease review, no logical change. Signed-off-by: Philippe Mathieu-Daudé --- target/s390x/tcg/translate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 2897880d88..e84c6459f0 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -916,6 +916,10 @@ static void disas_jcc(DisasContext *s, DisasCompare *c, uint32_t mask) cond = TCG_COND_NE; c->u.s32.b = tcg_constant_i32(0); break; + case 0x2 | 0x1: /* cc > 1 */ + cond = TCG_COND_GTU; + c->u.s32.b = tcg_constant_i32(1); + break; case 0x4 | 0x1: /* cc == 1 || cc == 3 => (cc & 1) != 0 */ cond = TCG_COND_NE; c->u.s32.a = tcg_temp_new_i32(); @@ -926,10 +930,6 @@ static void disas_jcc(DisasContext *s, DisasCompare *c, uint32_t mask) cond = TCG_COND_EQ; c->u.s32.b = tcg_constant_i32(1); break; - case 0x2 | 0x1: /* cc > 1 */ - cond = TCG_COND_GTU; - c->u.s32.b = tcg_constant_i32(1); - break; case 0x2: /* cc == 2 */ cond = TCG_COND_EQ; c->u.s32.b = tcg_constant_i32(2);