From patchwork Mon May 22 14:58:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 1784534 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gjlay.de header.i=@gjlay.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=HQXqxB05; dkim=fail reason="signature verification failed" header.d=gjlay.de header.i=@gjlay.de header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=63z1DUAw; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QQ0v46r82z20PS for ; Tue, 23 May 2023 00:58:24 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A4E12385800A for ; Mon, 22 May 2023 14:58:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.21]) by sourceware.org (Postfix) with ESMTPS id 6137A3858D35 for ; Mon, 22 May 2023 14:58:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6137A3858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Seal: i=1; a=rsa-sha256; t=1684767487; cv=none; d=strato.com; s=strato-dkim-0002; b=YTUUJ/OUkx8wZJtM1S/rvKNKKKZfsVkB2H6rpuNCXTri1rgUX/MjOayrs06Ghk+44x ygE6bsiA879swUUupuzPu2UGkRupr/wVT4ffMSzWlP7r5Gamsn/ekTOxlCM/rMkLqJ62 UTiLBJoHe1lB6l7jvYHg9/eT1Qo+spMdEoT6incvoQv0v014zxHA8LL1rv/5HXwwbe3U RexVQxA0a+Ys+/syDJ8LKY5sikOEjzwKbrk3fbRfy0nljjaw7N+Ty4B+kWppkD1ZjvjS pupFuEquXfbkB2906IW+IHXvjmwr+6sMhVRP1nvEIYvIm4qkeBESitR8X2Pplyms0oLr bSBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1684767487; s=strato-dkim-0002; d=strato.com; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=YMinRRwGxh47a05+rFgoibcSLiV3Ctld4K3iHbs4oOE=; b=q9lfgnTVlS20lvMZnomA/EMNM8RWlhcM2QjGD3XGMNUQ0Sd4xtOCkgoVajG1FwMe+w BqNUL90q8LTfLi7Rkn+iqFCbkJwqBgXeKWAuaVx3Md0TlmFGHLa1Hw9NCds46UH5e/hH lserCc0HXTtUcC2ERvKtHSegaeAJcynu1RoeAnGVX6IwVmh+7RwyoVTHvsyGVQqF+i03 aiQqiudN0EPvS/6Xm3nbMNoAtMCcYNJ9SSivCSOnYu7DgZ6W3ILHxY6X99rwlYOpCk8S 06qP3XjwGzvE+ejYDFQOg+PIm2QPWeM2PYthGy5bwDwmFTUHyOgmmvqReUVg9Uul9wnk hTKg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1684767487; s=strato-dkim-0002; d=gjlay.de; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=YMinRRwGxh47a05+rFgoibcSLiV3Ctld4K3iHbs4oOE=; b=HQXqxB05kRBhhTDhs3LqPCphRZUWg2zTbQF4eHc2tUX8UHLtZlRqZOLCfugpH3jESm UMv3NtDhbYtAXr8ccOa+rmGO+WaBfqIbd62J+XAIwoIloop15CUMU/QniDErR++KJlRC ZyfMn5PoPqMhXCzM78SWRNsQ7qD1Nz/DpuK4tTKKHZLKOJ4Jws3gSNrPVUW+DHLqRxoe U/EU6f8Llq0EIkky2UsDtyK5CR1TdXYlV8EYToXZog4ZztgWmrVl7BUaNuTzBlQWioym MrlNw01XLRkbzNUIn2aziTq++LzxIhoC+A/z6mRPpW8PybQ/Ji1v3cW4KtubKaWE5hhI xX1A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1684767487; s=strato-dkim-0003; d=gjlay.de; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=YMinRRwGxh47a05+rFgoibcSLiV3Ctld4K3iHbs4oOE=; b=63z1DUAwVC3+jRCfai9rGjjFa5+CV3MbhB2kjcNwDDoxFvLr105WPnCGDw0dgxn51G Rohs+4CbOYgXpK4rpFDw== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkRmM69o2y+LiO3MutATA==" Received: from [192.168.2.102] by smtp.strato.de (RZmta 49.4.0 DYNA|AUTH) with ESMTPSA id z691f1z4MEw6aPC (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Mon, 22 May 2023 16:58:06 +0200 (CEST) Message-ID: <3e6c428e-535b-ac87-e71c-ce530abcc299@gjlay.de> Date: Mon, 22 May 2023 16:58:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US To: gcc-patches@gcc.gnu.org From: Georg-Johann Lay Subject: [testsuite,committed] PR testsuite/52641 X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Applied more annotations to reduce testsuite fallout for 16-bit int / pointer targets. https://gcc.gnu.org/r14-1074 Most of the affected tests use constants not suitable for 16-bit int, bit-fields wider than 16 bits, etc. Johann --- commit 9f5065094c9632a50bea604d5896a139609e50cf Author: Georg-Johann Lay Date: Mon May 22 16:47:56 2023 +0200 testsuite/52641: Fix tests that fail for 16-bit int / pointer targets. gcc/testsuite/ PR testsuite/52641 * c-c++-common/pr19807-2.c: Use __SIZEOF_INT__ instead of 4. * gcc.c-torture/compile/pr103813.c: Require size32plus. * gcc.c-torture/execute/pr108498-2.c: Same. * gcc.c-torture/compile/pr96426.c: Condition on __SIZEOF_LONG_LONG__ == __SIZEOF_DOUBLE__. * gcc.c-torture/execute/pr103417.c: Require int32plus. * gcc.dg/pr104198.c: Same. * gcc.dg/pr21137.c: Same. * gcc.dg/pr88905.c: Same. * gcc.dg/pr90838.c: Same. * gcc.dg/pr97317.c: Same. * gcc.dg/pr100292.c: Require int32. * gcc.dg/pr101008.c: Same. * gcc.dg/pr96542.c: Same. * gcc.dg/pr96674.c: Same. * gcc.dg/pr97750.c: Require ptr_eq_long. diff --git a/gcc/testsuite/c-c++-common/pr19807-2.c b/gcc/testsuite/c-c++-common/pr19807-2.c index 529b9c97322..29a370304d3 100644 --- a/gcc/testsuite/c-c++-common/pr19807-2.c +++ b/gcc/testsuite/c-c++-common/pr19807-2.c @@ -6,7 +6,7 @@ int i; int main() { int a[4]; - if ((char*)&a[1] + 4*i + 4 != (char*)&a[i+2]) + if ((char*)&a[1] + __SIZEOF_INT__*i + __SIZEOF_INT__ != (char*)&a[i+2]) link_error(); return 0; } diff --git a/gcc/testsuite/gcc.c-torture/compile/pr103813.c b/gcc/testsuite/gcc.c-torture/compile/pr103813.c index b3fc066beed..0aa64fb3152 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr103813.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr103813.c @@ -1,4 +1,5 @@ /* PR middle-end/103813 */ +/* { dg-require-effective-target size32plus } */ struct A { char b; char c[0x21000000]; }; struct A d; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr96426.c b/gcc/testsuite/gcc.c-torture/compile/pr96426.c index bd573fe5366..fdb441efc10 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr96426.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr96426.c @@ -1,5 +1,7 @@ /* PR middle-end/96426 */ +#if __SIZEOF_LONG_LONG__ == __SIZEOF_DOUBLE__ + typedef long long V __attribute__((vector_size(16))); typedef double W __attribute__((vector_size(16))); @@ -8,3 +10,5 @@ foo (V *v) { __builtin_convertvector (*v, W); } + +#endif diff --git a/gcc/testsuite/gcc.c-torture/execute/pr103417.c b/gcc/testsuite/gcc.c-torture/execute/pr103417.c index 0fef8908036..ea4b99030a5 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr103417.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr103417.c @@ -1,4 +1,5 @@ /* PR tree-optimization/103417 */ +/* { dg-require-effective-target int32plus } */ struct { int a : 8; int b : 24; } c = { 0, 1 }; diff --git a/gcc/testsuite/gcc.c-torture/execute/pr108498-2.c b/gcc/testsuite/gcc.c-torture/execute/pr108498-2.c index ad930488c33..fdd628cbc86 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr108498-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr108498-2.c @@ -1,4 +1,5 @@ /* PR tree-optimization/108498 */ +/* { dg-require-effective-target int32plus } */ struct U { char c[16]; }; struct V { char c[16]; }; diff --git a/gcc/testsuite/gcc.dg/pr100292.c b/gcc/testsuite/gcc.dg/pr100292.c index 675a60c3412..147c9324d81 100644 --- a/gcc/testsuite/gcc.dg/pr100292.c +++ b/gcc/testsuite/gcc.dg/pr100292.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32 } */ typedef unsigned char __attribute__((__vector_size__ (4))) V; diff --git a/gcc/testsuite/gcc.dg/pr101008.c b/gcc/testsuite/gcc.dg/pr101008.c index c06208d3425..8229769c6ac 100644 --- a/gcc/testsuite/gcc.dg/pr101008.c +++ b/gcc/testsuite/gcc.dg/pr101008.c @@ -1,6 +1,7 @@ /* PR rtl-optimization/101008 */ /* { dg-do compile } */ /* { dg-options "-O2 -g" } */ +/* { dg-require-effective-target int32 } */ typedef unsigned __attribute__((__vector_size__(32))) U; typedef unsigned __attribute__((__vector_size__(16))) V; diff --git a/gcc/testsuite/gcc.dg/pr104198.c b/gcc/testsuite/gcc.dg/pr104198.c index bfc7a777184..de86f49c9dc 100644 --- a/gcc/testsuite/gcc.dg/pr104198.c +++ b/gcc/testsuite/gcc.dg/pr104198.c @@ -3,6 +3,7 @@ /* { dg-do run } */ /* { dg-options "-O2 -std=c99" } */ +/* { dg-require-effective-target int32plus } */ #include #include diff --git a/gcc/testsuite/gcc.dg/pr21137.c b/gcc/testsuite/gcc.dg/pr21137.c index 6d73deaee6c..199555a5017 100644 --- a/gcc/testsuite/gcc.dg/pr21137.c +++ b/gcc/testsuite/gcc.dg/pr21137.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ +/* { dg-require-effective-target int32plus } */ void foo(); diff --git a/gcc/testsuite/gcc.dg/pr88905.c b/gcc/testsuite/gcc.dg/pr88905.c index 89792f4abdb..fd2c2647325 100644 --- a/gcc/testsuite/gcc.dg/pr88905.c +++ b/gcc/testsuite/gcc.dg/pr88905.c @@ -2,6 +2,7 @@ /* { dg-do compile } */ /* { dg-options "-Og -fno-tree-ccp" } */ /* { dg-additional-options "-mabm" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-require-effective-target int32plus } */ int a, b, c; extern void baz (int); diff --git a/gcc/testsuite/gcc.dg/pr90838.c b/gcc/testsuite/gcc.dg/pr90838.c index 7502b846346..759059683a9 100644 --- a/gcc/testsuite/gcc.dg/pr90838.c +++ b/gcc/testsuite/gcc.dg/pr90838.c @@ -3,6 +3,7 @@ /* { dg-additional-options "-mbmi" { target { { i?86-*-* x86_64-*-* } && { ! { ia32 } } } } } */ /* { dg-additional-options "-march=rv64gc_zbb" { target { rv64 } } } */ /* { dg-additional-options "-march=rv32gc_zbb" { target { rv32 } } } */ +/* { dg-require-effective-target int32plus } */ int ctz1 (unsigned x) { diff --git a/gcc/testsuite/gcc.dg/pr96542.c b/gcc/testsuite/gcc.dg/pr96542.c index 0aad2e9494e..1080be7e753 100644 --- a/gcc/testsuite/gcc.dg/pr96542.c +++ b/gcc/testsuite/gcc.dg/pr96542.c @@ -1,6 +1,6 @@ /* { dg-do compile} */ /* { dg-options "-O2 -fdump-tree-evrp" } */ - +/* { dg-require-effective-target int32 } */ unsigned char foo (unsigned int x) diff --git a/gcc/testsuite/gcc.dg/pr96674.c b/gcc/testsuite/gcc.dg/pr96674.c index 194ce2e6352..790cd85dcc9 100644 --- a/gcc/testsuite/gcc.dg/pr96674.c +++ b/gcc/testsuite/gcc.dg/pr96674.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-O -fdump-tree-optimized -fwrapv" } */ +/* { dg-require-effective-target int32 } */ #include #include diff --git a/gcc/testsuite/gcc.dg/pr97317.c b/gcc/testsuite/gcc.dg/pr97317.c index f07327ac9a2..fdc1a62d544 100644 --- a/gcc/testsuite/gcc.dg/pr97317.c +++ b/gcc/testsuite/gcc.dg/pr97317.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ +/* { dg-require-effective-target int32plus } */ struct a { unsigned c : 17; diff --git a/gcc/testsuite/gcc.dg/pr97750.c b/gcc/testsuite/gcc.dg/pr97750.c index 90c3dc26852..ff0d436af20 100644 --- a/gcc/testsuite/gcc.dg/pr97750.c +++ b/gcc/testsuite/gcc.dg/pr97750.c @@ -1,6 +1,7 @@ /* PR tree-optimization/97750 */ /* { dg-do compile } */ /* { dg-options "-O2 -Wall -Wextra" } */ +/* { dg-require-effective-target ptr_eq_long } */ char CopyPlane_src; long CopyPlane_copy_pitch;