From patchwork Fri Dec 1 11:27:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 172449 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp1046776vqy; Fri, 1 Dec 2023 03:27:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEH6SfhrWn8mNkB7BvN6lr0YwzIsIz4J0pb6cjlrPJV3mnsckNgItk8TAanaH/qr9tTNbMD X-Received: by 2002:a05:6808:1150:b0:3b8:9b9c:870a with SMTP id u16-20020a056808115000b003b89b9c870amr2853493oiu.26.1701430076485; Fri, 01 Dec 2023 03:27:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701430076; cv=pass; d=google.com; s=arc-20160816; b=pEQmg5F5HeeszU96yvNwxA83rfW4F3KEz+QTv8DyfBSFbS0ISqG/WRM++Etc2EZmuE rmVy59HkxUPV9ZtBKcBO2O9JBte8+Gpu3iFRGO3Ws5q42sqHXIvc9xDuu+HuaT4pmM25 vKDjq7LU4KxPQNyj2q9TxRZSq78nx4Ur5qUF9l5B/QWNqN7c0N+9Sw9nzaC1KR+T1VOr M9lLEVbEPQA8wbjlxf69Dnqc/ztDn0ft7G6XCz6HcnL37+HLDbYDVwtuOt0NpwRFeI5H SOfwzTr2+lgVj11Z/Q+IzcRNKyUekp9kXZFFvwWeMcY2SslsVUn6zabl7dpg6Ud0tdXi couA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=ltotO24Z4SJLlum5s1JnLaZBWNiC5brxToddRTudbC8=; fh=heB8A2mJQwex6RwQZKT0hYcen7bd5sVDVCg05jGTUtA=; b=gSgX7aBsgIsi2SdZ2r6HHeqkXkXq6sDCy/uXKq87/xOx+yjpRdCS6WVamjtd5lSJDY B0wz5PQemU4FegUOX/zMGvjEKGr+bwLTZCoI3XBLctiYZ84mgoOsNJx4qKy0+oDaDPl+ ZaUU7c1AUaBWgIi8/lo9Fqp6ukrFBQZY/ZOppf20VvYciMa5i/j1EPAXaF7wXaTYHaci 0RsqobQxIiYnWyc2gJYOMlgN/XYiH2M35qEuAE3Pb4KW9SXi8ToVDo0/j4LU4UKfBY2I Bn4Im/hKgOzO5pM0je8STpAvfe+jAutgKMXWnAuGeslQ5wbNcxoS8yIHDxlCYJiO1ouz utOg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XpV63hBc; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id n22-20020a05620a223600b0077dc592ffb9si2776861qkh.662.2023.12.01.03.27.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 03:27:56 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XpV63hBc; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 40FB4385C6C4 for ; Fri, 1 Dec 2023 11:27:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 722BA3858CDB for ; Fri, 1 Dec 2023 11:27:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 722BA3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 722BA3858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701430052; cv=none; b=a99NFA/rXEyMp8idEpydN96nxJmEGwnOLFYqq4TMcKrg2iJEfnVkHgE8Mr2zKdrERtN0vZSXf1ePEKZWdf+zmRT94VW+SYFKIzSHFT54R1zxRrcxMy9aqftbXfoSsqJYEW2jVujfLvfQqdROvH+2UXcNk1d5j4e5qo+QiImOP7E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701430052; c=relaxed/simple; bh=STqXfiRnlQJ15MOxueUm68jWoaZ88ikE3dpcK8HayVI=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=RD6mdxiurDIb4WERTI/rxfVVbOOg4nosTkQSbHomPEF27cvlXJhhtFQV1N9yWJNdj0PhMrkMOhJXfVZGMaFSpxCy9N1tRgT9mnMxEf6bZjmS2Iefks5X6bPE+NxbcOTTlIlv6/VrT8tukk1a5ynK4FlesB14B468r5iARvbkU8I= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701430050; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type; bh=ltotO24Z4SJLlum5s1JnLaZBWNiC5brxToddRTudbC8=; b=XpV63hBcC8D0o+k6bjJYqWt3SSsYN88nmLXnk2PgmC1xBwjm613llyAvnhvWVmrkWwP02c admmnmykoUYATQFBkDDtTlohUIzUIvZ+lFP7cN2XSVTyM0h45oMAx/uCcVluayNZAT+RBe M+kIoOh9ETFZXcm7TFYZ+hQWVtBZ1pM= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-563-Uq7cx6NyOiaxMpxAscQxQw-1; Fri, 01 Dec 2023 06:27:28 -0500 X-MC-Unique: Uq7cx6NyOiaxMpxAscQxQw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5A42E29ABA28; Fri, 1 Dec 2023 11:27:28 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.195.157]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1DA301C060B1; Fri, 1 Dec 2023 11:27:28 +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 3B1BRPu5608726 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 1 Dec 2023 12:27:25 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 3B1BRJiT608724; Fri, 1 Dec 2023 12:27:19 +0100 Date: Fri, 1 Dec 2023 12:27:19 +0100 From: Jakub Jelinek To: Richard Biener , Florian Weimer , Jeff Law Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite: Tweak some further tests for modern C changes Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784078744031534719 X-GMAIL-MSGID: 1784078744031534719 Hi! On IRC Richi mentioned some FAILs in gcc.target/x86_64 and in pr83126.c. The following patch fixes the former ones (they need recent binutils to be enabled), for pr83126.c because I didn't have graphite configured I've just verified that the test compiles (didn't without the patch) and that the gimple dump is identical with one from yesterday's gcc (as it was a tree-parloops.cc ICE, I guess identical gimple is all we care about and no need to verify it further). Ok for trunk? 2023-12-01 Jakub Jelinek * gcc.target/x86_64/abi/avx512fp16/m512h/test_passing_m512.c (fun_check_passing_m512_8_values, fun_check_passing_m512h_8_values): Add missing void return type. * gcc.target/x86_64/abi/avx512fp16/m256h/test_passing_m256.c (fun_check_passing_m256_8_values, fun_check_passing_m256h_8_values): Likewise. * gcc.dg/graphite/pr83126.c (ew): Add missing casts to __INTPTR_TYPE__ and then to int *. Jakub --- gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/m512h/test_passing_m512.c.jj 2021-12-30 15:12:43.747143127 +0100 +++ gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/m512h/test_passing_m512.c 2023-12-01 11:56:10.708574470 +0100 @@ -25,6 +25,7 @@ int failed = 0; assert (memcmp (&X1, &X2, sizeof (T)) == 0); \ } while (0) +void fun_check_passing_m512_8_values (__m512 i0 ATTRIBUTE_UNUSED, __m512 i1 ATTRIBUTE_UNUSED, __m512 i2 ATTRIBUTE_UNUSED, @@ -45,6 +46,7 @@ fun_check_passing_m512_8_values (__m512 compare (values.i7, i7, __m512); } +void fun_check_passing_m512h_8_values (__m512h i0 ATTRIBUTE_UNUSED, __m512h i1 ATTRIBUTE_UNUSED, __m512h i2 ATTRIBUTE_UNUSED, --- gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/m256h/test_passing_m256.c.jj 2021-12-30 15:12:43.746143141 +0100 +++ gcc/testsuite/gcc.target/x86_64/abi/avx512fp16/m256h/test_passing_m256.c 2023-12-01 11:55:56.770772491 +0100 @@ -25,6 +25,7 @@ int failed = 0; assert (memcmp (&X1, &X2, sizeof (T)) == 0); \ } while (0) +void fun_check_passing_m256_8_values (__m256 i0 ATTRIBUTE_UNUSED, __m256 i1 ATTRIBUTE_UNUSED, __m256 i2 ATTRIBUTE_UNUSED, @@ -45,6 +46,7 @@ fun_check_passing_m256_8_values (__m256 compare (values.i7, i7, __m256); } +void fun_check_passing_m256h_8_values (__m256h i0 ATTRIBUTE_UNUSED, __m256h i1 ATTRIBUTE_UNUSED, __m256h i2 ATTRIBUTE_UNUSED, --- gcc/testsuite/gcc.dg/graphite/pr83126.c.jj 2020-01-12 11:54:37.438397944 +0100 +++ gcc/testsuite/gcc.dg/graphite/pr83126.c 2023-12-01 12:20:42.045695863 +0100 @@ -12,7 +12,7 @@ ew (unsigned short int c9, int stuff) int *fd = &stuff; *fd = c9; - fd = *fd; + fd = (int *) (__INTPTR_TYPE__) *fd; if (*fd != 0) for (*by = 0; *by < 2; ++*by) c9 *= e1;