From patchwork Tue Mar 4 22:24:22 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 870138 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:178f:b0:38f:210b:807b with SMTP id e15csp493415wrg; Tue, 4 Mar 2025 14:28:56 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWsw2cbqhQw9trBkl89Lk7RfOePO04R3vClpZkkDzhJGnDN3OLKs3e6MHAnDGcnKOa2RA6iFQ==@linaro.org X-Google-Smtp-Source: AGHT+IEZXJ8nwcmGRMo7F2w581ATS8xnY7FZIxc43qUaldJDZpQscj9vmpJHw3KZdAdO+VHHRhPE X-Received: by 2002:a05:620a:2b87:b0:7c3:cc25:5109 with SMTP id af79cd13be357-7c3d8ef2cddmr175341285a.49.1741127336716; Tue, 04 Mar 2025 14:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741127336; cv=none; d=google.com; s=arc-20240605; b=g4XCq9yir8tVn9fnLeDUb13XNfghTFqQ/fSoLwLgvQLqg0Lzr+X/4ki3AOsGbhLFqt YE41IHgDLp5Ax0et3Ez0KBSO4xz0j5FYzc8DxCuvIGGIhRz2uR1oVRvXWDXu1VM0y8S/ TqeVUZ13eny+x48a89uzaug+yJZUN4N9L6o8xsc7sDO+WHfUcjfXKvy3Qs1/RiK+8Gt4 Xya/ERegdY7EBPmWfhIFXiiv+AlrNuplC0JRpupVhSaz1bFjVkYizZt0xjhwGyAlXmvi MgX0G78eRSytUDlHEAItDolWhHjhqY1pcJe+D/Xp9I2YcV2kQaUtP2WdDKGeAecqqadl weTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=pZvYp7FSlelG8xgQuaTWht4mgcpsKdckID5yTml3+ZE=; fh=6Bzz00MUAZSz1sM9FDoE/jB6E9D8TQzH70NWpntkZX8=; b=Q0UpZY5TItDTU2c8CuYw0ZxpGtzGt1UDJ5mArJ4bw3v40Fiz/OBR1i/zzvsBI0fo1m 0KYI7wIZLkITWxH2sDgpxiL6v8b/Ej16/rs+wqBJDOWswCjJIBD5XtjE2alqrDHzMwYx AGEw5DaRmBOz8QQu5PQprtuek12ydWYcARHq9VSOK9XBeNUgjK2ZGYURdpRAsFeQ4ybZ MOuK4YK1Rqu8xT4nK4L46TVk1SWtgyT+ScfKvHRD2Jzux6JanekkdCU5IFNGFAi7IFFT vvbiIDiIobw6OQ5EOCUHK2AnCuWIjf7pbjRrkdH0wjSal7R0VLCbhW/RvBtcyz4isF8N 4ZgA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SY2B9LIv; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7c3cf86da5fsi183999685a.409.2025.03.04.14.28.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Mar 2025 14:28:56 -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=SY2B9LIv; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tpaho-0005uC-HM; Tue, 04 Mar 2025 17:25:45 -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 1tpah1-0005Og-Fk for qemu-devel@nongnu.org; Tue, 04 Mar 2025 17:24:51 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tpagz-0006Vb-KH for qemu-devel@nongnu.org; Tue, 04 Mar 2025 17:24:51 -0500 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-abf4cebb04dso47557266b.0 for ; Tue, 04 Mar 2025 14:24:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741127088; x=1741731888; 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=pZvYp7FSlelG8xgQuaTWht4mgcpsKdckID5yTml3+ZE=; b=SY2B9LIvLw53PYW3XUNPozfdyJjmZ87iTgcYRdAz27AVFN1Ye+fcorKqVxjY8boA5P WGWHSlfAZkCZXVuIQ24anpT52d0ULdLDrn+v7PIdDWbj3BKwQE4qZx5T1TJ+ecQCY4z+ Ji6+wwKrJOTfTmrYPSPmfVxj67ilSjxUyzoMIfppFw1sGMh6cD1TDdYTAhdkjCZxgI55 3o6fOZaOddPi+YjB6ghxWZjppSKG7jeB8pdDQRuHLzu8QF54RxxWgJH48d3xtDOqwavs NpCvtCbUmCf2qEpexJRVcA11XSLBxHdup6HBRY+U7BrfwClim6Fg7iK51t1OOjgM/PZc a8gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741127088; x=1741731888; 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=pZvYp7FSlelG8xgQuaTWht4mgcpsKdckID5yTml3+ZE=; b=S1qhO1F6qQBIqkdrFBJPaTd+iaMsuIrrdCiCAVQJUqMWg8D6SpUbjMu59S77Rb4FVO Hf49wikpQXGYmDworNULySR1Yrzxizbe9e/ST70z4XlzDVvZJKedJLAhlbt1IUMMjpEp TT2yhdFbDkD6Hbx8kf4jlPm0xLB5iOExb38fzGaMc3eJKr1j3w7U8Lzl0bovwQC2Be0G /vyVlxDuTZcHZzwwFp+Tb4x5wd1Q96ERbz+fAQHZQM9+edA5NoLUcrbtDIxfuhqqbaKF 1xwVyvj5bpVP2sPTwiOBtviKqav0TCutDesgyHGPZq3NZR7lcIkIN/RkeL9gmTFxOKXO PgfQ== X-Gm-Message-State: AOJu0Yx7co8vJX0rdD9/xJCetFmc41/AzL5hkLZDcT9jk93vbN8JXFwt eLtubXKjlepys6YSEtXn5ZvMEEgNXSbBp6MBJP4n4/a1Ody/gEbiAbV1an8xGFA= X-Gm-Gg: ASbGnct7Gads7FyquKblrWkx77ZIQ1kf/PILYcfSQVm0DlnXKCNOuzhJXyu9p3SqR1T /j3jzj8761WqoBDrq57AKXSateCah5ZkO6Vaxsdg/ITwMJjKuqN2GN5CNLLcDGbXGPQq9ryHodY q1BX7rImjYbRUYwo1VbalCzsy6lZ8cD1hi81SOz8ju991bPbHdrYkUjio2kqnmdwyrVk+nu7eDA /CvkDhBC8Q4U984MkIsRTP5p5EEb3reZzHT44szEO7oWKJmpfRssgrinPzOlmbpaRCuR24cLhCD qjVUZ8k6run4ZBfyNd5xi+Cdg1ui1Qb2uN9Q9k3efdt+aXM= X-Received: by 2002:a17:906:794f:b0:abf:7a26:c473 with SMTP id a640c23a62f3a-ac20edb19c5mr90649066b.13.1741127087550; Tue, 04 Mar 2025 14:24:47 -0800 (PST) Received: from draig.lan ([185.126.160.109]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac1e382a04bsm277988166b.163.2025.03.04.14.24.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Mar 2025 14:24:45 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E509B6007F; Tue, 4 Mar 2025 22:24:40 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Eduardo Habkost , Li-Wen Hsu , Peter Maydell , Laurent Vivier , qemu-arm@nongnu.org, Alexandre Iooss , Paolo Bonzini , Richard Henderson , Riku Voipio , Warner Losh , Brian Cain , Mahmoud Mandour , Kyle Evans , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Ed Maste , Pierrick Bouvier , =?utf-8?q?Marc-Andr=C3=A9_L?= =?utf-8?q?ureau?= , =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth Subject: [PATCH v2 15/32] tests/tcg: fix constraints in test-i386-adcox Date: Tue, 4 Mar 2025 22:24:22 +0000 Message-Id: <20250304222439.2035603-16-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250304222439.2035603-1-alex.bennee@linaro.org> References: <20250304222439.2035603-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62f.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 Clang complains: clang -O2 -m64 -mcx16 /home/alex/lsrc/qemu.git/tests/tcg/i386/test-i386-adcox.c -o test-i386-adcox -static /home/alex/lsrc/qemu.git/tests/tcg/i386/test-i386-adcox.c:32:26: error: invalid input constraint '0' in asm : "r" ((REG)-1), "0" (flags), "1" (out_adcx), "2" (out_adox)); ^ /home/alex/lsrc/qemu.git/tests/tcg/i386/test-i386-adcox.c:57:26: error: invalid input constraint '0' in asm : "r" ((REG)-1), "0" (flags), "1" (out_adcx), "2" (out_adox)); ^ 2 errors generated. Pointing out a numbered input constraint can't point to a read/write output [1]. Convert to a read-only input constraint to allow this. [1] https://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20101101/036036.html Signed-off-by: Alex Bennée Suggested-by: Daniel P. Berrangé Reviewed-by: Richard Henderson --- v2 - followed rth's suggestion and removed additional matches. --- tests/tcg/i386/test-i386-adcox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tcg/i386/test-i386-adcox.c b/tests/tcg/i386/test-i386-adcox.c index 16169efff8..d653fa86a7 100644 --- a/tests/tcg/i386/test-i386-adcox.c +++ b/tests/tcg/i386/test-i386-adcox.c @@ -53,8 +53,8 @@ void test_adcx_adox(uint32_t in_c, uint32_t in_o, REG adcx_operand, REG adox_ope "adcx %3, %1;" "adox %3, %2;" "pushf; pop %0" - : "+r" (flags), "+r" (out_adcx), "+r" (out_adox) - : "r" ((REG)-1), "0" (flags), "1" (out_adcx), "2" (out_adox)); + : "+r"(flags), "+r"(out_adcx), "+r"(out_adox) + : "r" ((REG)-1)); assert(out_adcx == in_c + adcx_operand - 1); assert(out_adox == in_o + adox_operand - 1);