From patchwork Sun Dec 11 15:27:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 633087 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1993592pvb; Sun, 11 Dec 2022 07:34:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf56B1D1P6wJyzhgohOD4jawoLuYSc7j1tknJGvDnjB6J2PyRrPsfT4iHhRf4SoLfpKpx4dT X-Received: by 2002:ac8:4e51:0:b0:3a5:2704:d4bd with SMTP id e17-20020ac84e51000000b003a52704d4bdmr24772067qtw.16.1670772877798; Sun, 11 Dec 2022 07:34:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670772877; cv=none; d=google.com; s=arc-20160816; b=EF0Lzjevyr5PRdcCiGIfuF083q1n5vgfxgMvIsf9RlcGd5TXTGYXtIt3ZmivcyPVro iOfNXI0ZYDUie/xfVt5F9qjq0kG054u8pm4z2tFesLJ6P5bjEmnBM8YFW4L5kX3yGVLS +W8NbUhg8u/KppudvTgg1UvHg1/YFcckHEBtN5Ug6EqgwCQAehFIchdUDHSzI38s7vW5 Fh0Qtjrql5tmDJ9/wqO82CCMrmLZiRB2eS3jK+q0XeNzRIYGPAazS0pPKw6Ld8BTGy7A P3p8IH/lL2oPSI7NriSESITfEwRT5LxMs5QDw1x1VHUcm2i+P6KKkXktM0jNd6PMmZni QyfA== 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=r88aN3ONQOrYoR5TjuSp7kfzVMmJ7L52pXjl2Gd7WK4=; b=AiAxz/wTjJsGh3c69SHVgcNSXCEwhmq73f7PzHRCUvbhkPQpQHbCvahvWos5S62tNU hx8pcjVXrVuJzCtsv8r0+xr9VhfEYFB/eAGh2FRlH46FpGMZRlvdLO5KLNp4oZkbKSZ4 PXVm0u3wVgZ7+fuCmoIil0q1JUVG0iC2V+jYFJ3v/w9u7DAGchEqT+JmeKoIP/VI3Nfz 6K+VdwLLOIoENQBHZQ5eoQfXEK0RXEk/3Y+LlHTrxU/lxRHkZA5m6dPyXEQ5f+MQH/cR 6AxnbMEojJKJXSykbSCw86QVmtaKm+Zltwf6Cwf0h0oG38GOgYFAdxxEgzLpJMWtrWHq Yscg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uK/dKTWO"; 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 k5-20020a05620a414500b006fcab4da043si2980815qko.681.2022.12.11.07.34.37 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Dec 2022 07:34:37 -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="uK/dKTWO"; 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 1p4OFg-0006FN-IX; Sun, 11 Dec 2022 10:28:28 -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 1p4OFS-00067f-6o for qemu-devel@nongnu.org; Sun, 11 Dec 2022 10:28:14 -0500 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4OFP-0007Sy-N5 for qemu-devel@nongnu.org; Sun, 11 Dec 2022 10:28:13 -0500 Received: by mail-oi1-x22f.google.com with SMTP id e205so9048135oif.11 for ; Sun, 11 Dec 2022 07:28:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=r88aN3ONQOrYoR5TjuSp7kfzVMmJ7L52pXjl2Gd7WK4=; b=uK/dKTWOHnTcP03XcZTPj69DyaOBaJbRklf7sJKLe2TLOnHOA3s9xA64k5ECI7WFbq 4o66oRFt/VDHJSzo6aeqqytrPd1f31QcLXkkVjOsIntmVApa57j2Nvuyd9WJZ/d28nIM 290HU7LqhlwWD/4OdhghNsxt7GNgtmqJ/39PG1XSPY3iYUq8GG9Au5GNuJIqiIZcpuys Z8Q0znyn1MnGcsa2YyA/i534jJCeppIRT5ZukfLC+knbW86f7F40YwQAvYvZtEMeksZo Wag+1LMORqn+b2NSOaMrVdKPlKiQh4EeBtoaHkOaJwQeJyOmev9J/APGPl5qOscul8Es 3jtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=r88aN3ONQOrYoR5TjuSp7kfzVMmJ7L52pXjl2Gd7WK4=; b=obmcXVXjYTQf9Nzn3lMMHbAN/Q9wVXG9C5rXrUhrAfgJ/J1zrNKiH08Bv5WxKfQhs0 avg4a3OCCi2f8ViJs3QeqjdE8uDQhLR42vTUVDOXikcOWsX2NP+Dn3FoiBtPnBrHXKld m7ndabo1ehGwsz2R1GVw9b3jtqBEM9jLxS+8Q03x8fZtSWpfaNPZ6abgxbc6/0ETQ/HB maCPHxlSGJ53k62aW72k+UAuDqoQUA14CAQGQRtkVdFUAtv7oQckVI3jZVZ5Pzce30gd jKMFn1XC15AVHc0uFgdAkav++VrsBk9CXlalbQofgLCcvxStpMV5JNywsOBKyXegNvFo KLeA== X-Gm-Message-State: ANoB5pn1AFUhjeDJ1WcYIaN7j8aA1hRn5J/wShj3/2JFje8pufVJaE4b zBly0l5slF09SvPs68v8lBnmUDpMxz1obxX2ZUU= X-Received: by 2002:a05:6808:210d:b0:359:e30c:d86a with SMTP id r13-20020a056808210d00b00359e30cd86amr8783183oiw.8.1670772490528; Sun, 11 Dec 2022 07:28:10 -0800 (PST) Received: from stoup.. ([2806:102e:18:2efc:7b4f:f28b:eca6:b583]) by smtp.gmail.com with ESMTPSA id q24-20020a056830233800b006708d2cd8bcsm938140otg.65.2022.12.11.07.28.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Dec 2022 07:28:10 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, Ilya Leoshkevich Subject: [PATCH v2 05/27] tests/tcg/s390x: Add bal.S Date: Sun, 11 Dec 2022 09:27:40 -0600 Message-Id: <20221211152802.923900-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221211152802.923900-1-richard.henderson@linaro.org> References: <20221211152802.923900-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::22f; envelope-from=richard.henderson@linaro.org; helo=mail-oi1-x22f.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 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 From: Ilya Leoshkevich Add a small test to prevent regressions. Signed-off-by: Ilya Leoshkevich Message-Id: <20221103130011.2670186-1-iii@linux.ibm.com> Signed-off-by: Richard Henderson --- tests/tcg/s390x/Makefile.softmmu-target | 1 + tests/tcg/s390x/bal.S | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tests/tcg/s390x/bal.S diff --git a/tests/tcg/s390x/Makefile.softmmu-target b/tests/tcg/s390x/Makefile.softmmu-target index a34fa68473..295df08491 100644 --- a/tests/tcg/s390x/Makefile.softmmu-target +++ b/tests/tcg/s390x/Makefile.softmmu-target @@ -7,3 +7,4 @@ QEMU_OPTS=-action panic=exit-failure -kernel -Wl,--build-id=none $< -o $@ TESTS += unaligned-lowcore +TESTS += bal diff --git a/tests/tcg/s390x/bal.S b/tests/tcg/s390x/bal.S new file mode 100644 index 0000000000..e54d8874ff --- /dev/null +++ b/tests/tcg/s390x/bal.S @@ -0,0 +1,24 @@ + .org 0x200 /* lowcore padding */ + .globl _start +_start: + lpswe start24_psw +_start24: + lgrl %r0,initial_r0 + lgrl %r1,expected_r0 + bal %r0,0f +0: + cgrjne %r0,%r1,1f + lpswe success_psw +1: + lpswe failure_psw + .align 8 +start24_psw: + .quad 0x160000000000,_start24 /* 24-bit mode, cc = 1, pm = 6 */ +initial_r0: + .quad 0x1234567887654321 +expected_r0: + .quad 0x1234567896000000 + 0b /* ilc = 2, cc = 1, pm = 6 */ +success_psw: + .quad 0x2000000000000,0xfff /* see is_special_wait_psw() */ +failure_psw: + .quad 0x2000000000000,0 /* disabled wait */