From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from xry111.site (xry111.site [89.208.246.23]) by sourceware.org (Postfix) with ESMTPS id 13D163858C3A for ; Wed, 6 Sep 2023 10:56:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 13D163858C3A Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1693997768; bh=kIJDT8KtI31OaLHqM1sxvVqR2uIvs84yNkvr9mqggwg=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=TKLenerVWrRnpLdGy4X3GdxFoLWE3ybvRBh92TKnPmPg2Gg8mv1d2AxpuQjufYasy uCKLMhKrF9c6hzJMhdgQoSyvNNd2DGcdxu4L6sLXJlfvRO+kqsTbrmdpYgk7hmM4yi etfNESExOAu+Ym9AA10oZvM5lleXyKy4EuaC6B/0= Received: from localhost.localdomain (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 3B2846599B; Wed, 6 Sep 2023 06:56:07 -0400 (EDT) Message-ID: <1092975a1cdc4f1bd357d5499540faf755b65854.camel@xry111.site> Subject: Re: [PATCH v1 4/4] LoongArch: Add tests for Loongson SX floating-point conversion instructions. From: Xi Ruoyao To: Xiaolong Chen , gcc-patches@gcc.gnu.org Cc: i@xen0n.name, xuchenghua@loongson.cn, chenglulu@loongson.cn Date: Wed, 06 Sep 2023 18:56:05 +0800 In-Reply-To: <20230906104537.51583-1-chenxiaolong@loongson.cn> References: <20230906104537.51583-1-chenxiaolong@loongson.cn> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,LIKELY_SPAM_FROM,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no 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 Wed, 2023-09-06 at 18:45 +0800, Xiaolong Chen wrote: > +=C2=A0 *((int*)& __m128_op0[3]) =3D 0x004200a0; > +=C2=A0 *((int*)& __m128_op0[2]) =3D 0x00000000; > +=C2=A0 *((int*)& __m128_op0[1]) =3D 0x004200a0; > +=C2=A0 *((int*)& __m128_op0[0]) =3D 0x00200001; These are aliasing rule violation and they will suddenly blow up when GCC optimizer starts to optimize more aggressively based on the aliasing rule. Try not to use these (you can write a helper function to memcpy() into a __m128). Or use -fno-strict-alising in dg-options. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University