From patchwork Mon Dec 9 09:52:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu Ianculescu X-Patchwork-Id: 1206087 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-515486-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (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.b="vHhqZKgr"; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bmFOxtgh"; 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 47Wdm15X91z9sNH for ; Mon, 9 Dec 2019 20:52:48 +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:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=vv6TPlQBpFGE4VqK jjyPx9kGW52TW6/cGfOQCQHjgZLfstKx+2nQlvJMWj1QYffm76BygrSML7Fryazp qvKIA1yumW6dlzPb2FDpqELBWtyOB2RtW4u+2/XxWz4Muybo+UJ13KxK/Y5L8J6L x/Uo0KR0gIDBzFFZPcZhD+Z0sy8= 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:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=Pes1lttB7wO6YLKFtkEomn UwYQk=; b=vHhqZKgrMzFffgucqmvrZBrjtRNQvpok/Vo8hXE10y761zLtWwz2WX NtFBO9PbWjYWdy7Y4yzYvYo6rLXmnjZEWuCQlQ9RhGtyF+oGbZVsAh0NdZ8za/fw SLzgUfOBJkTalELaOtg/uEcKMu3mU+WZCb9yRA1T6DFmSZ5Vaq6lM= Received: (qmail 76435 invoked by alias); 9 Dec 2019 09:52:41 -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 76426 invoked by uid 89); 9 Dec 2019 09:52:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=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=H*Ad:D*synopsys.com, HX-Gm-Message-State:APjAAAW, HContent-Transfer-Encoding:8bit X-HELO: mail-wr1-f47.google.com Received: from mail-wr1-f47.google.com (HELO mail-wr1-f47.google.com) (209.85.221.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Dec 2019 09:52:38 +0000 Received: by mail-wr1-f47.google.com with SMTP id z3so15452869wru.3 for ; Mon, 09 Dec 2019 01:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LT8r2l0Ad5J6rYOV8G/U6mwtA1UTVY4WZgNmXWy2uIY=; b=bmFOxtghC8+x5x6CBYnaj2LcuOuUVE134ctOUBQkJfHNxTGHZ2LQ4WaS4CPp+Hp7Wp LqSjIqnyCL3GBjXJybCXU1TecBzhhmSILomW/bO7UEBnnLJEYnq9B2aBul/nmsaf+fnp 9hEGBFXMi6S0nzgX1ODEQD3BwgTQL8jJGkJSdN398CF+DLTgpVlWoti8qNm/DQ1BigTQ 52sWPJhMGV0UM6JfwnO78uZ2GEo9+zsksWVi65pyjz/uBVF0U5SHO5rTe0RVtlAO0/C2 B6wHlX77NPKqWl84ZlhXW8RaeaZ0DYKJh/zDE4RZKyyCbIKhEJEiiM1Bc6hVMbYXFsSM +ndg== Received: from localhost.localdomain ([188.25.117.46]) by smtp.gmail.com with ESMTPSA id a64sm14205912wmc.18.2019.12.09.01.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2019 01:52:35 -0800 (PST) From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Cc: claziss@synopsys.com, andrew.burgess@embecosm.com, vgupta@synopsys.com Subject: [PATCH] [ARC] Use hardware support for double-precision compare instructions. Date: Mon, 9 Dec 2019 11:52:29 +0200 Message-Id: <20191209095229.5572-1-claziss@gmail.com> MIME-Version: 1.0 X-IsSubscribed: yes Although the FDCMP (the double precision floating point compare instruction) is added to the compiler, it is not properly used via cstoredi pattern. Fix it. OK to apply? Claudidu xxxx-xx-xx Claudiu Zissulescu * config/arc/arc.md (iterator SDF): Check TARGET_FP_DP_BASE. (cstoredi4): Use TARGET_HARD_FLOAT. --- gcc/config/arc/arc.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index b592f25afce..bd44030b409 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -3749,7 +3749,7 @@ archs4x, archs4xd" }) (define_mode_iterator SDF [(SF "TARGET_FP_SP_BASE || TARGET_OPTFPE") - (DF "TARGET_OPTFPE")]) + (DF "TARGET_FP_DP_BASE || TARGET_OPTFPE")]) (define_expand "cstore4" [(set (reg:CC CC_REG) @@ -3759,7 +3759,7 @@ archs4x, archs4xd" (match_operator:SI 1 "comparison_operator" [(reg CC_REG) (const_int 0)]))] - "TARGET_FP_SP_BASE || TARGET_OPTFPE" + "TARGET_HARD_FLOAT || TARGET_OPTFPE" { gcc_assert (XEXP (operands[1], 0) == operands[2]); gcc_assert (XEXP (operands[1], 1) == operands[3]);