From patchwork Thu Jul 15 15:34:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1505766 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=yA03mRCJ; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GQdlS5yCHz9sS8 for ; Fri, 16 Jul 2021 01:36:52 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E2AB739890AE for ; Thu, 15 Jul 2021 15:36:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2AB739890AE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1626363409; bh=SGpnijxtrE5d9ZLBCWlkRxejVexf8Z8SLwIlKHGLTN0=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=yA03mRCJsN/O1i/pcTSYcqD5UUglAaJaK2e/7/qN45iSwrMNHrOyXS1PCZABxE/0A 4iE51XtEXGf1sVYRFIL28R6chUf1gT2w8ea4s5pbhSOaEM4fkW3fWtDyu7Z/kRpUBK pLeRu3f4oDUjstwW5RgxsekHT/nNcF6do2nWuZA4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 7123F398909D for ; Thu, 15 Jul 2021 15:34:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7123F398909D Received: by mail-wm1-x32a.google.com with SMTP id l8-20020a05600c1d08b02902333d79327aso3304082wms.3 for ; Thu, 15 Jul 2021 08:34:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=SGpnijxtrE5d9ZLBCWlkRxejVexf8Z8SLwIlKHGLTN0=; b=lxpuBg+5MMMhkI7FLO1kB/FK9woti2cjQiqVo9LurAwqom0WGH9IkdO17jeuKxdJWL 4opA8OMXwmCUu+1F9p46xmAdHYbUwIfxMLUAPAnmwy/Vs6qvputk67c/Q7hul4ODOXE4 rlvnmn8r88MhboOPJlQPURrZLD8kC6JOo8aidN2mM+SViNnBnMwyxZfz9yEtBJmFHe8P JmIcFM5xKgMEgNyrvNfsG/4hBKgkMHeGLbxJYw3zrkB2UchGl/JJJBTTFsTqIpbi4wx7 01PmVPZh0QDIW0hEXWW2bSc0vBJIEsajdiNxcY9IjYjPIikXIkYn8WW0yWDbyI8eYNZQ Ttwg== X-Gm-Message-State: AOAM533DucY+0u7LRc9e0DEf/b1dawUvu5NEG9aGp4Nqr0EjELUKkyLz 2nRgh6PSRBJ8pQ4wkQzfBUX+M55wOIlBQBP9 X-Google-Smtp-Source: ABdhPJxnyQMAWT2s8BpWEO7vQKVR4Gz4s1dp5AyNNLEBM9oOOQHwbXzkaSqzjCWaUI/ngn6Efnj+ZA== X-Received: by 2002:a1c:1bd4:: with SMTP id b203mr11313277wmb.171.1626363295158; Thu, 15 Jul 2021 08:34:55 -0700 (PDT) Received: from localhost.localdomain (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id c12sm7763304wrr.90.2021.07.15.08.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 08:34:54 -0700 (PDT) X-Google-Original-From: Christophe Lyon To: gcc-patches@gcc.gnu.org, tamar.christina@arm.com Subject: [PATCH 1/2] testsuite: [arm] Add missing effective-target to vusdot-autovec.c Date: Thu, 15 Jul 2021 15:34:53 +0000 Message-Id: <20210715153454.23549-1-christophe.lyon@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This test fails when forcing an -mcpu option incompatible with -march=armv8.2-a+i8mm. This patch adds the missing arm_v8_2a_i8mm_ok effective-target, as well as the associated dg-add-options arm_v8_2a_i8mm. 2021-07-15 Christophe Lyon gcc/testsuite/ * gcc.target/arm/simd/vusdot-autovec.c: Use arm_v8_2a_i8mm_ok effective-target. --- gcc/testsuite/gcc.target/arm/simd/vusdot-autovec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/simd/vusdot-autovec.c b/gcc/testsuite/gcc.target/arm/simd/vusdot-autovec.c index 7cc56f68817..e7af895b423 100644 --- a/gcc/testsuite/gcc.target/arm/simd/vusdot-autovec.c +++ b/gcc/testsuite/gcc.target/arm/simd/vusdot-autovec.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -march=armv8.2-a+i8mm" } */ +/* { dg-require-effective-target arm_v8_2a_i8mm_ok } */ +/* { dg-options "-O3" } */ +/* { dg-add-options arm_v8_2a_i8mm } */ #define N 480 #define SIGNEDNESS_1 unsigned From patchwork Thu Jul 15 15:34:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1505767 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=pAA7TCdX; 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GQdmc2z1Mz9sPf for ; Fri, 16 Jul 2021 01:37:51 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4DBDF39890BE for ; Thu, 15 Jul 2021 15:37:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DBDF39890BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1626363469; bh=udtls5gwxkd51iQ8pyJ0UjkQE+C0clJcyzNqz2tLl20=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=pAA7TCdXhmoNcif0SDeftRHEr6UhT+8CoieJSYVZvjRTbeZNNookMV1Ev/GOnaGXT h3UCODgSh9Q9Y1p6QzAJ15gFegErvpd6fhv7KpnLS2/ildMPiVHiQmZZrPkVIqA7lI Alyo73tFcamXOZ4hTEo1NR0D0uk4aUd8kDB/oN4Q= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by sourceware.org (Postfix) with ESMTPS id 4398B39890A9 for ; Thu, 15 Jul 2021 15:34:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4398B39890A9 Received: by mail-wm1-x32d.google.com with SMTP id q18-20020a1ce9120000b02901f259f3a250so3928510wmc.2 for ; Thu, 15 Jul 2021 08:34:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=udtls5gwxkd51iQ8pyJ0UjkQE+C0clJcyzNqz2tLl20=; b=GnLF2Tu5U5RBLg0QHMvKHFLkIuD+ZZQJJ1yDLN7XFVXz7w26CxmpNlqs9NPcZwzdjx H9mfer9zf6FnXvwLGPKlNIoEwvCF8nVikP5F2pNacTw6AS12A6CDOvGE2CilbbdFlapJ bwTnGbMyDgy3qk1K0w43GO2ldHxBGRTWbujD6EfOOgVeeN+HWAv14s9vxXqt1HcgV1pl YO3kCozdIxqTzXWUWZyT8dqz3mXw3Lk5W+V7e+hbQciViYSeNNWFZvA3Hk/M/twA8Pxy KIvV90EhHpQ17ZJNOeGXV8/bc3hXf0VA74xdVIQ35z5d/JgYm9esvOR7nh3KqUysexGw C+XQ== X-Gm-Message-State: AOAM530bDGvJN47GbGvDG0hqlKJjeN/bR3OQulUSfikBpY1xjdYStGuZ 4bgyF5PLVW7YjKOjga8K+dj7G2msHjqhGmHd X-Google-Smtp-Source: ABdhPJwNynC0B1vSrZIRSVdBamctMumdnKqM7uKDc/eYfs5dmsem7IHR8TXsJcYHlIzasDSp0KQNDQ== X-Received: by 2002:a1c:7402:: with SMTP id p2mr11120315wmc.88.1626363295958; Thu, 15 Jul 2021 08:34:55 -0700 (PDT) Received: from localhost.localdomain (static.42.136.251.148.clients.your-server.de. [148.251.136.42]) by smtp.gmail.com with ESMTPSA id c12sm7763304wrr.90.2021.07.15.08.34.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jul 2021 08:34:55 -0700 (PDT) X-Google-Original-From: Christophe Lyon To: gcc-patches@gcc.gnu.org, tamar.christina@arm.com Subject: [PATCH 2/2] testsuite: [arm] Remove arm_v8_2a_imm8_neon_ok_nocache Date: Thu, 15 Jul 2021 15:34:54 +0000 Message-Id: <20210715153454.23549-2-christophe.lyon@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210715153454.23549-1-christophe.lyon@foss.st.com> References: <20210715153454.23549-1-christophe.lyon@foss.st.com> MIME-Version: 1.0 X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" This patch removes this recently-introduced effective-target, as it looks like a typo and duplicate for arm_v8_2a_i8mm_ok (imm8 vs i8mm), and it is not used. 2021-07-15 Christophe Lyon gcc/testsuite/ * lib/target-supports.exp (arm_v8_2a_imm8_neon_ok_nocache): Delete. --- gcc/testsuite/lib/target-supports.exp | 30 --------------------------- 1 file changed, 30 deletions(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 1c27ccd94af..28950803b13 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5267,36 +5267,6 @@ proc check_effective_target_arm_v8_2a_dotprod_neon_ok_nocache { } { return 0; } -# Return 1 if the target supports ARMv8.2 Adv.SIMD imm8 -# instructions, 0 otherwise. The test is valid for ARM and for AArch64. -# Record the command line options needed. - -proc check_effective_target_arm_v8_2a_imm8_neon_ok_nocache { } { - global et_arm_v8_2a_imm8_neon_flags - set et_arm_v8_2a_imm8_neon_flags "" - - if { ![istarget arm*-*-*] && ![istarget aarch64*-*-*] } { - return 0; - } - - # Iterate through sets of options to find the compiler flags that - # need to be added to the -march option. - foreach flags {"" "-mfloat-abi=softfp -mfpu=neon-fp-armv8" "-mfloat-abi=hard -mfpu=neon-fp-armv8"} { - if { [check_no_compiler_messages_nocache \ - arm_v8_2a_imm8_neon_ok object { - #include - #if !defined (__ARM_FEATURE_MATMUL_INT8) - #error "__ARM_FEATURE_MATMUL_INT8 not defined" - #endif - } "$flags -march=armv8.2-a+imm8"] } { - set et_arm_v8_2a_imm8_neon_flags "$flags -march=armv8.2-a+imm8" - return 1 - } - } - - return 0; -} - # Return 1 if the target supports ARMv8.1-M MVE # instructions, 0 otherwise. The test is valid for ARM. # Record the command line options needed.