From nobody Wed May 15 19:19:48 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1653671653; cv=none; d=zohomail.com; s=zohoarc; b=li8fk0WbSxuoXoH2nLABZv1rJyf1SDrkfyHDIG+b+hcR5Cxly7D0R52KmrwADl3+fqhI1Lzw6VryJ09gIwSf0GV8YslMBfW/ixpfzV4D7O31NMPNp6DjF6ucST4Cz9eOxahZflN/eXF3jm+POKAVYX+GD6X9zUBBFC0w70yHIMg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1653671653; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=kJ1AONQywmIewq1fWLOclJuaeny07DgumLqXtdcx1pk=; b=QOvHsZ5du7/yaKk9Jf75yIlW7tylX465qOayi+3peO6JbFdGeTYc8uETHTJOjGoTkaqV9o/VknDZaLUyq+p8NW6ZmH/a5ZnK2snWaqj6c52JpuUzP1XsHXUpwvcDgy+cHmLf+wyEf+e/3H6oKpf/ORVIwXydE3Iu5oh55rKBCu8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1653671653279394.0463049775934; Fri, 27 May 2022 10:14:13 -0700 (PDT) Received: from localhost ([::1]:37716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nudXP-0007No-0i for importer@patchew.org; Fri, 27 May 2022 13:14:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nudV6-0003tU-CZ for qemu-devel@nongnu.org; Fri, 27 May 2022 13:11:48 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:56296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nudV4-0001aV-H3 for qemu-devel@nongnu.org; Fri, 27 May 2022 13:11:48 -0400 Received: by mail-pj1-x1034.google.com with SMTP id n10so5112149pjh.5 for ; Fri, 27 May 2022 10:11:46 -0700 (PDT) Received: from stoup.. (174-21-71-225.tukw.qwest.net. [174.21.71.225]) by smtp.gmail.com with ESMTPSA id h6-20020a170902f54600b0016170bb6528sm3995634plf.113.2022.05.27.10.11.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 May 2022 10:11:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kJ1AONQywmIewq1fWLOclJuaeny07DgumLqXtdcx1pk=; b=Gn2UkoTHUktkc2bzr2pqOQG0ZEN/PNlS9hcXzqJO8opfbCDKslbN3hfPw5zOxaBIEZ atopO5BLxpdYj9AYTO0IIpANOWKP3Fxe7K5+dtouAzMFSU15ZMymGXjjS01hvXYEAQU2 55C7nIGNz5UySISNRDtCFdybgRCKUYRUfx9VlAbvo4JCqdV+/w/1tyI80dnxm1oSLrM0 RrN7FCx1pL+u0xq+xWwNlAC+NNKkyZvvomx73UgI0Z3vLKxmEBVbtH3A9H86XsrspQYJ QXaUFbqAjwjPNh+nj6lMiEw+fgoqLn1gV2GID+I7jgg/t4XYQLvJhGIy/ETFz7VarROq thuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kJ1AONQywmIewq1fWLOclJuaeny07DgumLqXtdcx1pk=; b=ujGlyzhCZ6bJXjfNG355+nQF8Dutzk4IVnKWw1gniVeTiqWVLeeIRIJsOOnXzIAiq4 IjzhVgcVnHkUZsdHjdrcnOicp/OE+wQ1buTIWJ61akrzQnQy7B2PW4eIB2BIq4Xm+W+Q OoxVI2y+297T58tFCcrgIkPzbWmuGaZYElQfxeqpo8MRg7JYKFQPmvC2p95Y4H7U6hTx Q8az6BzjSAb6s4qK9OpXY+JkW6m70ALEGT9hG19RoXGvNW+Jb68vMujbE5b++q6MeVOC 2eo3W2y+wgu/nWx0fiEE2oaqwcxZ7ua/R00PUZWUIJLhRHVClISv4cAbLveKvZb9e46C yNqg== X-Gm-Message-State: AOAM5303LIpKkchQXutDMVIPOlNEENAGXjncRmAuCfcrp8T1XdUUQ3hA JFVNVmcJNuaFLqgkoywIDMY7nfdq5JWX+Q== X-Google-Smtp-Source: ABdhPJx/vj25HUNDxcqJVdtRS0q934UAR9piTnTn9AX+wjgBGs+8LIE8m1XL1lHZjZg6JlGQ+mROMg== X-Received: by 2002:a17:902:be01:b0:15e:fb07:ba85 with SMTP id r1-20020a170902be0100b0015efb07ba85mr44486775pls.85.1653671505068; Fri, 27 May 2022 10:11:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: alex.bennee@linaro.org Subject: [PATCH] tests/tcg/i386: Use explicit suffix on fist insns Date: Fri, 27 May 2022 10:11:43 -0700 Message-Id: <20220527171143.168276-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1653671653586100001 Content-Type: text/plain; charset="utf-8" Fixes a number of assembler warnings of the form: test-i386.c: Assembler messages: test-i386.c:869: Warning: no instruction mnemonic suffix given and no register operands; using default for `fist' Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/tcg/i386/test-i386-fp-exceptions.c | 24 ++++++++++++------------ tests/tcg/i386/test-i386.c | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/tcg/i386/test-i386-fp-exceptions.c b/tests/tcg/i386/test= -i386-fp-exceptions.c index dfb7117c17..d445f13c33 100644 --- a/tests/tcg/i386/test-i386-fp-exceptions.c +++ b/tests/tcg/i386/test-i386-fp-exceptions.c @@ -423,35 +423,35 @@ int main(void) } =20 __asm__ volatile ("fnclex"); - __asm__ volatile ("fistp %0" : "=3Dm" (res_16) : "t" (1.5L) : "st"); + __asm__ volatile ("fistps %0" : "=3Dm" (res_16) : "t" (1.5L) : "st"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D PE) { printf("FAIL: fistp inexact\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fistp %0" : "=3Dm" (res_16) : "t" (32767.5L) : "st"= ); + __asm__ volatile ("fistps %0" : "=3Dm" (res_16) : "t" (32767.5L) : "st= "); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { printf("FAIL: fistp 32767.5\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fistp %0" : "=3Dm" (res_16) : "t" (-32768.51L) : "s= t"); + __asm__ volatile ("fistps %0" : "=3Dm" (res_16) : "t" (-32768.51L) : "= st"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { printf("FAIL: fistp -32768.51\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fistp %0" : "=3Dm" (res_16) : "t" (ld_nan) : "st"); + __asm__ volatile ("fistps %0" : "=3Dm" (res_16) : "t" (ld_nan) : "st"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { printf("FAIL: fistp nan\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fistp %0" : "=3Dm" (res_16) : "t" (ld_invalid_1.ld)= : + __asm__ volatile ("fistps %0" : "=3Dm" (res_16) : "t" (ld_invalid_1.ld= ) : "st"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { @@ -538,49 +538,49 @@ int main(void) } =20 __asm__ volatile ("fnclex"); - __asm__ volatile ("fisttp %0" : "=3Dm" (res_16) : "t" (1.5L) : "st"); + __asm__ volatile ("fisttps %0" : "=3Dm" (res_16) : "t" (1.5L) : "st"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D PE) { printf("FAIL: fisttp inexact\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fisttp %0" : "=3Dm" (res_16) : "t" (32768.0L) : "st= "); + __asm__ volatile ("fisttps %0" : "=3Dm" (res_16) : "t" (32768.0L) : "s= t"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { printf("FAIL: fisttp 32768\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fisttp %0" : "=3Dm" (res_16) : "t" (32768.5L) : "st= "); + __asm__ volatile ("fisttps %0" : "=3Dm" (res_16) : "t" (32768.5L) : "s= t"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { printf("FAIL: fisttp 32768.5\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fisttp %0" : "=3Dm" (res_16) : "t" (-32769.0L) : "s= t"); + __asm__ volatile ("fisttps %0" : "=3Dm" (res_16) : "t" (-32769.0L) : "= st"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { printf("FAIL: fisttp -32769\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fisttp %0" : "=3Dm" (res_16) : "t" (-32769.5L) : "s= t"); + __asm__ volatile ("fisttps %0" : "=3Dm" (res_16) : "t" (-32769.5L) : "= st"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { printf("FAIL: fisttp -32769.5\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fisttp %0" : "=3Dm" (res_16) : "t" (ld_nan) : "st"); + __asm__ volatile ("fisttps %0" : "=3Dm" (res_16) : "t" (ld_nan) : "st"= ); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { printf("FAIL: fisttp nan\n"); ret =3D 1; } __asm__ volatile ("fnclex"); - __asm__ volatile ("fisttp %0" : "=3Dm" (res_16) : "t" (ld_invalid_1.ld= ) : + __asm__ volatile ("fisttps %0" : "=3Dm" (res_16) : "t" (ld_invalid_1.l= d) : "st"); __asm__ volatile ("fnstsw" : "=3Da" (sw)); if ((sw & EXC) !=3D IE) { diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index 18d5609665..ac8d5a3c1f 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -866,7 +866,7 @@ void test_fcvt(double a) uint16_t val16; val16 =3D (fpuc & ~0x0c00) | (i << 10); asm volatile ("fldcw %0" : : "m" (val16)); - asm volatile ("fist %0" : "=3Dm" (wa) : "t" (a)); + asm volatile ("fists %0" : "=3Dm" (wa) : "t" (a)); asm volatile ("fistl %0" : "=3Dm" (ia) : "t" (a)); asm volatile ("fistpll %0" : "=3Dm" (lla) : "t" (a) : "st"); asm volatile ("frndint ; fstl %0" : "=3Dm" (ra) : "t" (a)); --=20 2.34.1