From patchwork Fri Oct 27 12:48:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 117319 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp731394qgn; Fri, 27 Oct 2017 05:49:20 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Rey7lvRkUwgAHCbvK5sadV0pcsjjAA0V1SUpIt3lrCaQHO1qAdtD+543wxUHjqrYAgjM0J X-Received: by 10.98.141.202 with SMTP id p71mr418180pfk.18.1509108559981; Fri, 27 Oct 2017 05:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509108559; cv=none; d=google.com; s=arc-20160816; b=sLsTPSKHd6s9MnaBJ1vjmsvYxoiSBogRUb0wcAqU0f7WwkI3cHb5EdbMkmqncjNb1+ UFI1tnN06arzg5Z7jDugLlJrTaJ/KVsdKSkUmwMjxpE4pvjw+1tMAypjCjG2xUwScFyi nzSbAAg+cyEdgtj8iI9/y6sMNNlcfzdam8u9XK1X1YheREm6ybfJ2DEjn9uoOmntEi5k MHL5UkpqwzkCQ2Gi0Ajk7FWbrdHrK+tHIRw+C+9L36DKF5RCHZDA4JZ/AhiQrQz1Gi8D WfD9qAfns+oI2IH+Ir6rt+bPioWCC2QH6aSxbLgw7C9Xa8WZlE5Y8u00oUcHM2omB72i zwIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:delivered-to:sender:list-help :list-post:list-archive:list-subscribe:list-unsubscribe:list-id :precedence:mailing-list:dkim-signature:domainkey-signature :arc-authentication-results; bh=ivynzROH16DcLkaA2LKeuEdNgVCx8r18EEHSwg9x8tw=; b=CoBLSR9qyal4GY4QEH8sYi048tzeFDXS+/llB6H9cJjnE9vvF0BlCutGW+wpE4hBdY hUW9151fXbNOerbZ7up+Z9KJrISAZPBb4GgOMpGAbShxxOCoBJxAEQwzTbErRtIxagPR 8DaMJ2Bo6bqKPdBRvl2vTnujZR7wBx+wvj92YaqhnlJmQG+Cs+s6Al1XU1Y7r1GLB2H4 VIunMdBbRF+IpWC59K/Zx6BTUz21CE6bu9gAOx8SjVemCePWNgtmkcS7U3eatGsQM06l pC74C1xzYPI+pwy50Ibiend5BE1YepZQXij/GkUJokrDzuPf0m3qN/5USiIGZPMIqnDu bccg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=xO8KwwhM; spf=pass (google.com: domain of binutils-return-99020-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=binutils-return-99020-patch=linaro.org@sourceware.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id u27si4893495pgo.729.2017.10.27.05.49.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Oct 2017 05:49:19 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-return-99020-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=xO8KwwhM; spf=pass (google.com: domain of binutils-return-99020-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=binutils-return-99020-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; q=dns; s= default; b=g6X0gdPtNdWgRV3OsrqJJspw7mca9Bg8S46SWLdcaCX3XgfXKbiyt Fwl1YtDdR7cAzx+cJrMk4A2h8MXx2M4fXxDTa02+scgd5yms1NqEuL9qJxKQ4unX u2FMCC7M8gRSxK2kr3X9p/qsQgmQGJbE/nUJWBiJNYaDBC6R8k6yvc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id; s=default; bh=yhIX6prNKJioXz7OwxsV6mw9rj4=; b=xO8KwwhM4uDcDvkN13toKgT+iL5W JCSTihB0/HzmeGdcT81SJCIM/6aiSNotdlN7jE8p+qfiVPnONdSzkan4CnA7JtLB nD+W+pOybFYw4cem5o6gaVsgBRDxcbSJUfek1JENpjB9s0cshDkONN3Ow+rBiWw7 N9J/8vaZ67rx3zM= Received: (qmail 122346 invoked by alias); 27 Oct 2017 12:49:05 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@sourceware.org Received: (qmail 121527 invoked by uid 89); 27 Oct 2017 12:49:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: homiemail-a52.g.dreamhost.com Received: from sub5.mail.dreamhost.com (HELO homiemail-a52.g.dreamhost.com) (208.113.200.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Oct 2017 12:49:03 +0000 Received: from homiemail-a52.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a52.g.dreamhost.com (Postfix) with ESMTP id 5FB9F6003E15; Fri, 27 Oct 2017 05:49:02 -0700 (PDT) Received: from devel.in.reserved-bit.com (unknown [202.189.238.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by homiemail-a52.g.dreamhost.com (Postfix) with ESMTPSA id 49C946003E14; Fri, 27 Oct 2017 05:49:01 -0700 (PDT) From: Siddhesh Poyarekar To: binutils@sourceware.org Cc: Siddhesh Poyarekar Subject: [PATCH 1/2] aarch64: Remove AARCH64_FEATURE_F16 from AARCH64_ARCH_V8_2 Date: Fri, 27 Oct 2017 18:18:38 +0530 Message-Id: <1509108519-16813-1-git-send-email-siddhesh@gotplt.org> From: Siddhesh Poyarekar The FP16 feature is optional in ARMv8.2, so it is wrong to add it to the default AARCH64_ARCH_V8_2 feature flags. This patch makes the behaviour consistent with that of gcc, which also does not assume FP16 for ARMv8.2. * include/opcode/aarch64.h (AARCH64_ARCH_V8_2): Drop AARCH64_FEATURE_F16. --- include/opcode/aarch64.h | 1 - 1 file changed, 1 deletion(-) -- 2.7.5 diff --git a/include/opcode/aarch64.h b/include/opcode/aarch64.h index c5788e2..ea45a41 100644 --- a/include/opcode/aarch64.h +++ b/include/opcode/aarch64.h @@ -70,7 +70,6 @@ typedef uint32_t aarch64_insn; | AARCH64_FEATURE_RDMA) #define AARCH64_ARCH_V8_2 AARCH64_FEATURE (AARCH64_ARCH_V8_1, \ AARCH64_FEATURE_V8_2 \ - | AARCH64_FEATURE_F16 \ | AARCH64_FEATURE_RAS) #define AARCH64_ARCH_V8_3 AARCH64_FEATURE (AARCH64_ARCH_V8_2, \ AARCH64_FEATURE_V8_3 \ From patchwork Fri Oct 27 12:48:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 117320 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp731626qgn; Fri, 27 Oct 2017 05:49:35 -0700 (PDT) X-Google-Smtp-Source: ABhQp+R9iCh6LwNl9X24Tjuh1Ia/UQg/JLVHPvnClQA5owOYRMdEZIWk6TcUpdbe7NtUa6/oM1wA X-Received: by 10.101.85.4 with SMTP id f4mr240217pgr.10.1509108575066; Fri, 27 Oct 2017 05:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509108575; cv=none; d=google.com; s=arc-20160816; b=zCD8BGmq3NE9xBnJqNWWJ13En5Ea7cBWbmJRTJhP/nZWR2TbAN9SbzzPV4saqsOAwj T0/Gcf8p1appb1QFsXOOHdm45unRN5W8nuYdguvoj83P+6zR0I3iTOuOT4A1ENHaMdR7 wHnzs9QJflt0k30NAKXMawmt/ROxbyhgyajxR2Yeqjd7ukb8ZEQ0KZF+zMNUxk5YsUvf eV3YIlyQg9jfTqaSaf3btFwPIAl4Y5APqsTfDdh42dBvnSUtQfvtDZcuGKEDAZwluiZx bWPZY2gJJpKRLkR0qGDpQZs03aAC+o4fYPWGvGeFWnq31hDgDQy3LCv8bzkfFaeKwAta wazQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :delivered-to:sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=rD0Zxd32eWAaeWepC24Wt84oo+4YgkGU33OwPAqoFCM=; b=YSlQ+GmdngB65do8Q5mDQrC7sELKVQGeRrsCy2kIPqBCJGQVlCDzs5V7JUgBn9fUoH Jk4OEVuuxyPjp+pyXvjNBcMpH5bznEBViBCm1iiI9nxnJeWVnpAeupmOQy5nIxiGsloR Wqlcbr3ncHitqMxzNU3X1yNqaqDtWUmJUYu6F1jTDeyR8HYo6RPtNgO9bTOhFwcZ/5hu txJXpqTpJVjgZaWJFtZApHV940PocaRYDBBoECyEMqS79cAWbvIgRsdIbXgIF4FqzQWF tjURrXZKXRG39hkNJDdwwHXS3/rMtnk38S2+P3cAvv1M9mht/j9AXqC3b/SQ4mVW11fk NWwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=RTScXvDL; spf=pass (google.com: domain of binutils-return-99021-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=binutils-return-99021-patch=linaro.org@sourceware.org Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id y1si4851901pgy.675.2017.10.27.05.49.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Oct 2017 05:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-return-99021-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=RTScXvDL; spf=pass (google.com: domain of binutils-return-99021-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=binutils-return-99021-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=teFumEy7fkeIlemV2eg/vDiHqX4s12b Gge509KkwQxWa8fQLZHnjDKLGqan/bKW3UIwz6hwIBn4oTq0Q+oztQOua4lMvwzq r1pjJMCyuJr/fNOWvMTaAv6EPlQ7ixXOWGcORCSuSmK1CbRbzGSPQHsIUgjwVjlw 5rOtsSbVv7X4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id:in-reply-to :references; s=default; bh=cKjYb7uXtzrv5jh12U3IDUdpQsA=; b=RTScX vDLdbgq9QvGckZvcfUd+kPQktdiz1OeQob85Wzk8OGSPXiBm6l28Hbx7JtXwj/Jq S5cKXHoUO8eagZH1Dj/qkvgX6Fa8C48Qvc5Jy1ZdKLhXchCnMEztMVbZ86KlRKoi tPO0P8hQjYX/NJ0IR8mFhenDCoX5mKNUMx+qxg= Received: (qmail 125384 invoked by alias); 27 Oct 2017 12:49:11 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Delivered-To: mailing list binutils@sourceware.org Received: (qmail 125038 invoked by uid 89); 27 Oct 2017 12:49:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Cavium, Hx-languages-length:1569, cavium X-HELO: homiemail-a52.g.dreamhost.com Received: from sub5.mail.dreamhost.com (HELO homiemail-a52.g.dreamhost.com) (208.113.200.129) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Oct 2017 12:49:06 +0000 Received: from homiemail-a52.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a52.g.dreamhost.com (Postfix) with ESMTP id 8A11E6003E15; Fri, 27 Oct 2017 05:49:05 -0700 (PDT) Received: from devel.in.reserved-bit.com (unknown [202.189.238.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by homiemail-a52.g.dreamhost.com (Postfix) with ESMTPSA id 723366003E14; Fri, 27 Oct 2017 05:49:04 -0700 (PDT) From: Siddhesh Poyarekar To: binutils@sourceware.org Cc: Siddhesh Poyarekar Subject: [PATCH 2/2] Add option for Qualcomm Saphira part Date: Fri, 27 Oct 2017 18:18:39 +0530 Message-Id: <1509108519-16813-2-git-send-email-siddhesh@gotplt.org> In-Reply-To: <1509108519-16813-1-git-send-email-siddhesh@gotplt.org> References: <1509108519-16813-1-git-send-email-siddhesh@gotplt.org> From: Siddhesh Poyarekar This adds an option for the Qualcomm saphira core, the corresponding gcc patch is here: https://gcc.gnu.org/ml/gcc-patches/2017-10/msg02055.html This was tested with an aarch64 build and make check and also by building and running SPEC2006. 2017-10-27 Siddhesh Poyarekar Jim Wilson gas/ * config/tc-aarch64.c (aarch64_cpus): Add saphira. * doc/c-aarch64.texi: Likewise. --- gas/config/tc-aarch64.c | 3 +++ gas/doc/c-aarch64.texi | 1 + 2 files changed, 4 insertions(+) -- 2.7.5 diff --git a/gas/config/tc-aarch64.c b/gas/config/tc-aarch64.c index 64d54fd..91330dd 100644 --- a/gas/config/tc-aarch64.c +++ b/gas/config/tc-aarch64.c @@ -8420,6 +8420,9 @@ static const struct aarch64_cpu_option_table aarch64_cpus[] = { AARCH64_FEATURE_CRC | AARCH64_FEATURE_CRYPTO | AARCH64_FEATURE_RDMA), "Qualcomm QDF24XX"}, + {"saphira", AARCH64_FEATURE (AARCH64_ARCH_V8_3, + AARCH64_FEATURE_CRYPTO | AARCH64_FEATURE_PROFILE), + "Qualcomm Saphira"}, {"thunderx", AARCH64_FEATURE (AARCH64_ARCH_V8, AARCH64_FEATURE_CRC | AARCH64_FEATURE_CRYPTO), "Cavium ThunderX"}, diff --git a/gas/doc/c-aarch64.texi b/gas/doc/c-aarch64.texi index e73d48c..c6eeda8 100644 --- a/gas/doc/c-aarch64.texi +++ b/gas/doc/c-aarch64.texi @@ -65,6 +65,7 @@ on the target processor. The following processor names are recognized: @code{exynos-m1}, @code{falkor}, @code{qdf24xx}, +@code{saphira}, @code{thunderx}, @code{vulcan}, @code{xgene1}