Message ID | 20230228135136.3727643-2-jcmvbkbc@gmail.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp3024158wrd; Tue, 28 Feb 2023 05:52:59 -0800 (PST) X-Google-Smtp-Source: AK7set8W5E1PW3Ev4pm9MSlHYmm3/zhenbtAewuylq2T9rpw/ITiigICE1XtBD53OmgUslimLom/ X-Received: by 2002:a17:906:9f19:b0:8b1:7eb4:6bea with SMTP id fy25-20020a1709069f1900b008b17eb46beamr3878518ejc.38.1677592379449; Tue, 28 Feb 2023 05:52:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677592379; cv=none; d=google.com; s=arc-20160816; b=giXsP/d8zaKqMNLY5y5kSLrwDoeFT5WZghvgM532am7KWedQDvuza4yjSo7sT33ffD zvpc4JmEhUXOGj+uYiJRaTRB+cetlhObWqBBkOwkFSAI3m0LQkAjfg3HCEJIKv8ZCkzw gG9qHWkt0FZ51/EzITDOzmoLNG5clNBHcFKQ/r0WXXL+OzYfTEOpWF0KTXBHXGP51DLN 7GRQVeZc3NHnJcuRXiGDTC52kJHpW6AB6xcFWsCEKBlEQtdTQ/kkfpHFqvTyZ5qydm/P Qz4qL7inNTpRhLNzVooOXaMMqCbmwdLT0/zFyS8/gTaF0XXNaSgQfcZxWJbfXGJfeIIQ 509g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=qCXPkWKMncnmwRHDMgE4PsGWxBf7o5/YOxpzQYTacaw=; b=nOiFj8M6QQL9WFzrFcIXH2HoAmO/+DfMRX6dmeQeStYOfVJaV8/4GMq88xvKRMSluT r7YmQ8K7/Iv68X1cK9dASkHeB1nS0xwYwtG/1NwF2vBrhRF94xNJa0QiAN825dKKbMKY CcL/LT7sjN40gczkf+Vf7L2ScyJ2cOblNycmGWwyyoc89tqn02kCx0jhBqJXBbVZzyQx gbVeN8vE09sqcBvGUYkMQHWEMGjUZkrupACwdPxlDZiAzg3TT++zxGi9G7DZjUsPLaJG Q1xwpf7vwo0BNa+JlWPfLNQU6I4wkpIAmU5HHe0R7Kgq1LqsoWgrTN5oOVfBkqzv5VjF TG/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=KGHdMqcf; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gx23-20020a170906f1d700b008b2abc981cdsi2579346ejb.507.2023.02.28.05.52.59 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 05:52:59 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=KGHdMqcf; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C2ADF3850873 for <ouuuleilei@gmail.com>; Tue, 28 Feb 2023 13:52:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2ADF3850873 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677592356; bh=qCXPkWKMncnmwRHDMgE4PsGWxBf7o5/YOxpzQYTacaw=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=KGHdMqcfsIHlVwkGhj5p46yA7g14TmQpJ2SjUejsrlcyujSf7RJdu3ozU6/tNutcx XpJI7jpGCsM2KxL+1iFC0cW/kKe9wSLxEZkH3Fp8eIEaXELyyygHiEcOqCHwz9Ggt1 eWUgfwC+2dgapV+tUvNxn7lFclFcmpnknxncfgH8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id 72827385841C for <gcc-patches@gcc.gnu.org>; Tue, 28 Feb 2023 13:51:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 72827385841C Received: by mail-pl1-x62f.google.com with SMTP id u5so7087835plq.7 for <gcc-patches@gcc.gnu.org>; Tue, 28 Feb 2023 05:51:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qCXPkWKMncnmwRHDMgE4PsGWxBf7o5/YOxpzQYTacaw=; b=YvOV/DCKnQE0WGa8pZRR3c9Nc9Kqwxsc+AWC2sfTTiMK7bob1NYlKZ4fFhZ60ZfjX4 eW1i8WV6F/Iz2VGXNKbrTUSt05ZmuvJ+xHmbL+N/TcnePbYvOKmtQnDdEJrbhCQwhBpA zgsCQ1tT0GkDt3y9RrJKB671MlmGAZnN2Gnyp6YrKSj9tDIgMPfzn/otPhHRjdp7rCyk ycVNp6KPOfP4sNrlT0UPLZTiifLiJlvI/7fskkbubfcROqgmxmrzMdwrhXI5iIQrt4Yb 5RFNmU9PziG2VBhdKLO5D6O8BpAwPaOPBg3qrnhhyYMvE5X6Mv2rVZPc8MH4FcQYMQZj wKIw== X-Gm-Message-State: AO0yUKWr3lKOL4Jy7DggM5kIeg9JNAXJni27Xu05uNSU7MaW7vEJrPdN Ygfxe/nfAZeu763zGUSQY5v1yryexLU= X-Received: by 2002:a17:902:710c:b0:19c:fbda:14d0 with SMTP id a12-20020a170902710c00b0019cfbda14d0mr2081766pll.40.1677592312232; Tue, 28 Feb 2023 05:51:52 -0800 (PST) Received: from octofox.hsd1.ca.comcast.net ([2601:641:401:1d20:c2e5:354c:fd58:a54e]) by smtp.gmail.com with ESMTPSA id g66-20020a636b45000000b004ff6b744248sm5781942pgc.48.2023.02.28.05.51.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 05:51:51 -0800 (PST) To: gcc-patches@gcc.gnu.org Cc: Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>, Max Filippov <jcmvbkbc@gmail.com> Subject: [PATCH 2/2] gcc: xtensa: adjust STRICT_ALIGNMENT per hardware capabilities Date: Tue, 28 Feb 2023 05:51:36 -0800 Message-Id: <20230228135136.3727643-2-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230228135136.3727643-1-jcmvbkbc@gmail.com> References: <20230228135136.3727643-1-jcmvbkbc@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, FROM_LOCAL_NOVOWEL, GIT_PATCH_0, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Max Filippov via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Max Filippov <jcmvbkbc@gmail.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759083107310442340?= X-GMAIL-MSGID: =?utf-8?q?1759083107310442340?= |
Series |
[1/2] gcc: xtensa: add data alignment properties to dynconfig
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Max Filippov
Feb. 28, 2023, 1:51 p.m. UTC
gcc/ * config/xtensa/xtensa.h (STRICT_ALIGNMENT): Make it 0 when the hardware supports both unaligned loads and stores. --- gcc/config/xtensa/xtensa.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h index 058602e44ee2..49ec9147b543 100644 --- a/gcc/config/xtensa/xtensa.h +++ b/gcc/config/xtensa/xtensa.h @@ -143,7 +143,8 @@ along with GCC; see the file COPYING3. If not see /* Set this nonzero if move instructions will actually fail to work when given unaligned data. */ -#define STRICT_ALIGNMENT 1 +#define STRICT_ALIGNMENT (!XCHAL_UNALIGNED_LOAD_HW \ + || !XCHAL_UNALIGNED_STORE_HW) /* Promote integer modes smaller than a word to SImode. Set UNSIGNEDP for QImode, because there is no 8-bit load from memory with sign