From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 83F673858425 for ; Fri, 13 Jan 2023 19:50:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 83F673858425 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1673639449; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=GN30uizUYqIY/oBqpoLhuYAjjiet96/uj/t+28uuJxg=; b=S83kXpYP2d+vGDRBOZ67rIt0Jh4B1dQe5bIYphXwGJhL1ey/9QmtXt66FjTRpW8/CKOnGx 2y0JPyZgiuVsg6cmYXmE1XypC2FvlDbLlQ3QmcLggNw8Y5i+OUniK+367ZWMZEKOSHhnKw SYo4Z/vIy26aZJVS/BOF+dbUArACuqQ= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-304-Z_QzHf-WPFOXEGpoHySAcw-1; Fri, 13 Jan 2023 14:50:45 -0500 X-MC-Unique: Z_QzHf-WPFOXEGpoHySAcw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 40E0C1C05AE1; Fri, 13 Jan 2023 19:50:45 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.223]) by smtp.corp.redhat.com (Postfix) with ESMTPS id ECB644078903; Fri, 13 Jan 2023 19:50:44 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 30DJoe0D1368231 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 13 Jan 2023 20:50:41 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 30DJoeKA1368230; Fri, 13 Jan 2023 20:50:40 +0100 Date: Fri, 13 Jan 2023 20:50:39 +0100 From: Jakub Jelinek To: Christophe Lyon , gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: Re: [PATCH v3 2/2] aarch64: Fix bit-field alignment in param passing [PR105549] Message-ID: Reply-To: Jakub Jelinek References: <20230111141806.258233-1-christophe.lyon@arm.com> <20230111141806.258233-2-christophe.lyon@arm.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 List-Id: On Fri, Jan 13, 2023 at 08:25:01PM +0100, Jakub Jelinek via Gcc-patches wrote: > alignment is 256, which is not <= 16 * BITS_PER_UNIT. > type is pst_uniform4 with user alignment of 32 bytes: > struct pst_uniform4 > { > fixed_int32_t a __attribute__((aligned(SVE_BYTES * 2))); > fixed_int32_t b[3] __attribute__((aligned(SVE_BYTES * 2))); > fixed_int32_t c __attribute__((aligned(SVE_BYTES * 2))); > }; > and with -march=armv8.2-a+sve -msve-vector-bits=128 > __ARM_FEATURE_SVE_BITS and therefore SVE_BYTES is 128 and so > the alignment seems requested. typedef __SVInt32_t fixed_int32_t __attribute__ ((arm_sve_vector_bits (128))); struct A { fixed_int32_t a[3] __attribute__((aligned((128 / 8) * 2))); }; void foo (struct A x) {} -march=armv8.2-a+sve -O -msve-vector-bits=128 reproduces it too. Jakub