From patchwork Sun Feb 16 20:41:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 1238847 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-519614-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha1 header.s=default header.b=G12QpTNT; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=HzRT2NE8; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48LJv10XTfz9sPJ for ; Mon, 17 Feb 2020 07:41:46 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=yPHK3NYTNL+j2B6XrjtvCNGK5tPel+3opMVPfoXLupWS2J ASxICI4GgNnizzBAA5K7OxRqvVoFxGsKo8CeXlkUA7wKtZ2SXFFkmRJLFuvemME9 WhIejbyPDgSFwLOAW1GlRQCJlVsAxTHGuBkvjIh+w+s74jBcIOnDqzjzMO0mg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=jAhHAnhRb6SNfCqlwC3PCv04WSc=; b=G12QpTNTDsXJ+rGwxkl+ fEuetXb8DPbebjFAlQWAQY9jeCqJxkJwR16ReZVmfoMguLqKnLkRJDsw2OuTuR6Y 6kPw6P70Cy7UczvOc3xMHNpiyjtUe8IdsnKhA50P5f2FnMyJuhMmd/bwHsh9heLD zvrVZ5YFGb/5Mn4vAii+uDc= Received: (qmail 14351 invoked by alias); 16 Feb 2020 20:41:39 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 14343 invoked by uid 89); 16 Feb 2020 20:41:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-io1-f50.google.com Received: from mail-io1-f50.google.com (HELO mail-io1-f50.google.com) (209.85.166.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Feb 2020 20:41:37 +0000 Received: by mail-io1-f50.google.com with SMTP id z1so15658623iom.9 for ; Sun, 16 Feb 2020 12:41:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5kjE2W3uq+Q9nwftjzwydhFaWVaJSOP1HNME+KQRHXI=; b=HzRT2NE8UN9ecCwKlnX+rrPHNdxoyFyR7CZUTTNiZBEkF+tyMfnf8XG38sL4b7sgt1 3/xG72Xd/+zFQYOFaNWQAG1ykOESOOPSXKFax2VkqVtGEXdOV1qHr869X1s7FRlcZBdJ wQrUbPQ9YvcldhBOmBO4HGLKuvF1mtAX3zC+xX7Xd7BWkaujRZEL9Tx3d8HtnfIdx4xh 7LgdjNZ/hBhRnElrYLEbiUgHwAgxWRwsfmPl9xVDwqn7p1W4qKnFDH7wJqWnJHxzm5eJ lqKpJPhnVaKjChkR5z5+IMQJ2pxSrv1RcMfL6YlKuuljoXW7ouPHY+VUyh/Sa3W9OkFm Bt5Q== MIME-Version: 1.0 From: Uros Bizjak Date: Sun, 16 Feb 2020 21:41:24 +0100 Message-ID: Subject: [committed] i386: Fix atan2l argument order [PR93743] To: "gcc-patches@gcc.gnu.org" i386: Fix atan2l argument order [PR93743] Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. 2020-02-16 Uroš Bizjak PR target/93743 * config/i386/i386.md (atan2xf3): Swap operands 1 and 2. (atan23): Update operand order in the call to gen_atan2xf3. testsuite/ChangeLog: 2020-02-16 Uroš Bizjak PR target/93743 * gcc.target/i386/pr93743.c : New test. Uros. diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index f14683cd14f..6c57500ae8e 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -15999,10 +15999,10 @@ (define_insn "atan2xf3" [(set (match_operand:XF 0 "register_operand" "=f") - (unspec:XF [(match_operand:XF 1 "register_operand" "0") - (match_operand:XF 2 "register_operand" "f")] + (unspec:XF [(match_operand:XF 2 "register_operand" "0") + (match_operand:XF 1 "register_operand" "f")] UNSPEC_FPATAN)) - (clobber (match_scratch:XF 3 "=2"))] + (clobber (match_scratch:XF 3 "=1"))] "TARGET_USE_FANCY_MATH_387 && flag_unsafe_math_optimizations" "fpatan" @@ -16026,7 +16026,7 @@ emit_insn (gen_extendxf2 (op2, operands[2])); emit_insn (gen_extendxf2 (op1, operands[1])); - emit_insn (gen_atan2xf3 (op0, op2, op1)); + emit_insn (gen_atan2xf3 (op0, op1, op2)); emit_insn (gen_truncxf2 (operands[0], op0)); DONE; })