From patchwork Fri Jan 19 23:23:01 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: 763961 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp109458wrx; Fri, 19 Jan 2024 15:24:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2V9fcRnzM9K5UIshH9VubEVxeiNZANWcBn8kDMfVz1o3tmyrSOU107L8BlhpHO6O8toId X-Received: by 2002:a05:6214:2505:b0:680:c830:7027 with SMTP id gf5-20020a056214250500b00680c8307027mr702727qvb.109.1705706655746; Fri, 19 Jan 2024 15:24:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705706655; cv=none; d=google.com; s=arc-20160816; b=v17xQ2fCoQO6RpzcTCvInxTno2DW0evS+CF8zfr+FtO0t49rJ5FH7g4aOZj/oePlV+ MQ2+LyAYlfLywD9HeifWBfBXEZknbM5eqNU4raFcVFl59e1bFz9fs7i0QpxW8IGP4YkO uc6H6dZEhr6wSCTXs8b8I3f8TvuNaQvlGZOpfO08xEs/QSjPn5hUn+LonqQ/u7+xN++8 wIdoI9SZ0/+06XJj3AS9/X2+Xkli4KMqZsFgkhkEgvy8bKlbmHiH7bMdwEPVmOYXaR6I tklmZICB8kcrRhtlWYuKoplsI+Yu8qvvwofXATQm943hKV64m81rdZerRmvCNyIcpLD0 HgsA== 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=KpX7HX7EolNAWiMUOh3LJMt2Imoxl2aeklNIaM18ZtY=; fh=04ycLKTWno9tnkGng2eIaNWueAwLX2fvg2ZFcmhcji4=; b=dIJ9Z+ykRf7UOdHayaIN5Ys9WNp0P5wOfAfFfGymKZ3qVms+ePJmUziAjGiDbsMqoV zB76nljlTVcXbYTiY+0fjjCUWSSl2Q9gpHS8W34GwF/TvW4nsn3Mf0zjqFAFX17HsRg6 FccqaE5klHQFVVn9kCgOio5DevV4WiJF3Y+G+lCXOmEifxOqDTqYSjDy+2KXjukYM51D 2MaiZ7OQcWrIgViXWXrIDdscGU0JRRpfYovTsMMv+UkyAVu2Y+x7wyk+ldCN6fBpb0xw h7sc4PSoRNbG1Q1hNE25FOL5Y+z0vsqsPigi4YUHhU+expA3QabJAkxr62P0wtKqGv2A ecCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O8APWSL5; 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 m8-20020a0cdb88000000b0068194ca223bsi299441qvk.548.2024.01.19.15.24.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2024 15:24:15 -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=O8APWSL5; 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 1rQyCs-0000Yc-31; Fri, 19 Jan 2024 18:23:26 -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 1rQyCq-0000Y9-GL for qemu-devel@nongnu.org; Fri, 19 Jan 2024 18:23:24 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rQyCo-0008IF-TZ for qemu-devel@nongnu.org; Fri, 19 Jan 2024 18:23:24 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40e779f030aso8033535e9.0 for ; Fri, 19 Jan 2024 15:23:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705706601; x=1706311401; 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=KpX7HX7EolNAWiMUOh3LJMt2Imoxl2aeklNIaM18ZtY=; b=O8APWSL5CflkVdr2dnMcIRdIbkdLvCxLfgppnoedaI8pbIaJJxfsphzRcJESRdvVkc pE+dbriCzP5HNnkNUEpYsYJblf2IsD/fLPrAIrJ8AuRUYXypgNfgOz5N3PjizQQj29p0 x0RdveAxNy91Mr6nvMIJOvszLog4pD30nU43bS5DF2Veh8d1NhJQbQBPT7hYoER+7OOZ ur44Bl9KkxsmPw4vkepM1gksy0YGz8MOvOjFuWFdxRjihchP8LWXDwQ+8z3ZPXBkK0jp H2MJ+bgNMYka+fxBhUfDmVY361xVMk+4yyLSV0xl4lQsIF20Dhytk8hUz3sEp3ObNqbn FG8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705706601; x=1706311401; 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=KpX7HX7EolNAWiMUOh3LJMt2Imoxl2aeklNIaM18ZtY=; b=oz3BojOmjYRY/qiAOy6YLMUuA09RrbzImqsA7cLV7e0NU9Ie732uKxlctz6LqACu2Z f+2b9YDr99CnZr3FXiQQ7yt7UroCorVTlUcRqftWFIe2D24Bu9Rdpw7EjPr2vX8RxoJK sMMAUv9iBZF5EUMovm9XgnTF0oZAfPpFHySM0AkzQ23flUco1UnkOdt4wvB4O+/Kvw8y JloDX6oKNWXSyM1RQNRBSJVMJ+dLMPkRDDM6ycjAf8h591Hq1UC5gR5LQF3pxp3AjDQD PE5vhmU5IYewXvx+TyNRm+z1unPVmJewMv8pLdfUmxGbBydF2QUGxI7SRQ8650PqWdSk 4Rbg== X-Gm-Message-State: AOJu0Yygo3A016T81zzFrXCj01EHoDM/u0ixRg/TXGiPac1JeeYxj4Sa XRUydGUeLZ5mrOYbmKyDuHhC2xgKbXWcyOqGTBiNvXYm8qM+HYApyENM8JEvfV3aajK39hHq3+g x X-Received: by 2002:a05:600c:a008:b0:40e:6064:b70c with SMTP id jg8-20020a05600ca00800b0040e6064b70cmr289315wmb.82.1705706601448; Fri, 19 Jan 2024 15:23:21 -0800 (PST) Received: from localhost.localdomain (91-163-26-170.subs.proxad.net. [91.163.26.170]) by smtp.gmail.com with ESMTPSA id p37-20020a05600c1da500b0040ea22b51cbsm973280wms.34.2024.01.19.15.23.20 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 19 Jan 2024 15:23:21 -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 5/6] target/s390x: Reorder CC_OP_STATIC switch case in disas_jcc (5/5) Date: Sat, 20 Jan 2024 00:23:01 +0100 Message-ID: <20240119232302.50393-5-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::32f; envelope-from=philmd@linaro.org; helo=mail-wm1-x32f.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 9224df867b..93c64db33e 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -914,6 +914,10 @@ static void disas_jcc(DisasContext *s, DisasCompare *c, uint32_t mask) cond = TCG_COND_LTU; c->u.s32.b = tcg_constant_i32(2); 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(); @@ -930,10 +934,6 @@ 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 0x8: /* cc == 0 */ cond = TCG_COND_EQ; c->u.s32.b = tcg_constant_i32(0);