From nobody Fri Jun 10 14:20:13 2022 X-Original-To: toolchain@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 429E6838F37 for ; Fri, 10 Jun 2022 14:20:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LKNQk016hz3R5X for ; Fri, 10 Jun 2022 14:20:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D043919B72 for ; Fri, 10 Jun 2022 14:20:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25AEKD4s054561 for ; Fri, 10 Jun 2022 14:20:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25AEKD0q054560 for toolchain@FreeBSD.org; Fri, 10 Jun 2022 14:20:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: toolchain@FreeBSD.org Subject: [Bug 264590] assembler generates wrong opcodes of instructions fdiv fdivp fdivr fdivrp fsub fsubp fsubr fsubrp Date: Fri, 10 Jun 2022 14:20:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: gnu X-Bugzilla-Version: 11.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654870814; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2EJM3/679IgwnZa/rv3zcmxPqKtrBruzZvyMurs0kIM=; b=BnQvj3tf8lgN63bRCBI6XjEubmRWU9QCvbx8/BLs+XfzsVZ/AaBaby083ayhfqHS8/yyOd ZiElZmPqu0j897+VSpMVbof087lfP02GrJoiXgzn/jNUyTXG8c6mJp76WIbb3V2ax1O5PJ HVRpZYXFxBh0lyo2qmRqC1RmFIaio5MCk2DODJwKkZEKwpmgsO5GsVJFAsHVszB61laUN8 /BKEOD8ZyW6AUukMSksvidTW5fPszOkHLaUH2QQmkmu+tfe356E5/Lp7z7JL2AvM4e9yfu yrs9Rpv2/xmVuNSb1uGdaQZ6wUSyH0bA2UAOBEkNLWOO/jdtyQHxEhn27BAsUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654870814; a=rsa-sha256; cv=none; b=s7vgoyuv8WukeWtX/HL8XG2jxSo9L2+bWAbDTHHBKFr9RVhLI7OFYFiemyEHXNhmouSe5L rfH1aJv/b36C3dP3xlaZOCJ2LmRyBXn7/5rs6E5ZQ0SlpE1abZdGl9dxnnVYOMoTgV3FkU BpNOXPYIS4YLa4Y/Bf5jV9UWvd+EtRsfdlet+TLf5pvbLPIVYJCTMmB+Mnsvc9p5hdMvdd 3jWHcTO2eYjB7teTPtcxJGA9GhJouYsM7kBBADGQOOGhM4Yz6tAx54xAqZRWu1nCjlkvQP lMz8UFb6SsxEYGn9vaN+xVxOZ3yMlE5uw9IsIigJ5Itj4a9M67oTsfJbYex5WA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264590 Mark Millard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #7 from Mark Millard --- Very old issue. See, for example: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D30117 Part of that has some history on the issue: Andrew Pinski 2006-12-07 22:40:52 UTC This is at most a GNU binutils bug. Please file it with them at http://sourceware.org/bugzilla/ . Also IIRC fdivp's arguments are swapped in AT&T asm mode because of some historical accident. See the comment in i386.c: /* The SystemV/386 SVR3.2 assembler, and probably all AT&T derived assemblers, confusingly reverse the direction of the operation for fsub{r} and fdiv{r} when the destination register is not st(0). The Intel assembler doesn't have this brain damage. Read !SYSV386_COMPAT to figure out what the hardware really does. */ Also: #ifndef SYSV386_COMPAT /* Set to 1 for compatibility with brain-damaged assemblers. No-one wants to fix the assemblers because that causes incompatibility with gcc. No-one wants to fix gcc because that causes incompatibility with assemblers... You can use the option of -DSYSV386_COMPAT=3D0 if you recompile both gcc and gas this way. */ #define SYSV386_COMPAT 1 #endif --=20 You are receiving this mail because: You are the assignee for the bug.=