From patchwork Tue Nov 16 09:58:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Zissulescu X-Patchwork-Id: 1555718 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=XqpLIy9y; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4HthMq6hs0z9ssD for ; Tue, 16 Nov 2021 20:58:31 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DEB92385AC24 for ; Tue, 16 Nov 2021 09:58:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DEB92385AC24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1637056708; bh=gUQtqGyLbVHkU4Dy5MddlQ5mXHyegULT3TPkRLXvd0o=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=XqpLIy9yWg01XqN4zQb9t8Xw8SUFj8b+N23Xk5S+eOz3MGcyT2MC5RkcYEU8vhpOa U3j2ur6ClmJ/PUZbb4S1gy9nZCJ5b+PxpFh+UOy7dCDH/sbPCzPR5xPauy4ky8J7xu LlB8NSwuiNWPtPIMQOZh7AjUWVBQ02lWrHYYDVoA= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by sourceware.org (Postfix) with ESMTPS id 67BA53858411 for ; Tue, 16 Nov 2021 09:58:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 67BA53858411 Received: by mail-ed1-x536.google.com with SMTP id z5so25292240edd.3 for ; Tue, 16 Nov 2021 01:58:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gUQtqGyLbVHkU4Dy5MddlQ5mXHyegULT3TPkRLXvd0o=; b=RE+m0p+84fV3hpdgR1nKDFC+qJv2ixrRP2UfL21OPgIGS73BRP8V3eKpZLPtt6Noqn 55+E7rwoxmaYLWvvinE1iA0CY3OjH1+6kFEVp+WuXpCcfg5x7DeFsxnrnb6EUUC+KOGn Z2UplLDRmcpH9o7vJsOgcHGxTYpF2ixQmoGBP5lMAwsKXZuOUT0l1xElsB4Y0Jh9Oypz tVB53uckSo4iXE+t6UvqGgA1WlQvy2XWmdYU+/zCK+naoEnyw/ftiMQVYiLXPKANu1IM Nl+8In+oY+7nQ45YufyGfVzROqS05GO0WAYovyI0qDiITOfUlj8rWDYs7aegTkDQAQc/ Bg0A== X-Gm-Message-State: AOAM532E2NcHtI0BbP5aIldT9Wwlzr8RlATvVUROK29PckcxmPGKCrk6 8/gzg85xW8WYp5XiWAqrze7lmVDSTy4= X-Google-Smtp-Source: ABdhPJxK3zu+stt5KHmy7xaIu9THmunuZGK9Hs9ydAvQ9lnApRb8e24fO1D3+OKqY5QPgK/us/xmnw== X-Received: by 2002:a17:906:3b18:: with SMTP id g24mr8141278ejf.27.1637056687119; Tue, 16 Nov 2021 01:58:07 -0800 (PST) Received: from localhost.localdomain ([212.93.135.250]) by smtp.gmail.com with ESMTPSA id gz26sm568547ejc.100.2021.11.16.01.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 01:58:06 -0800 (PST) X-Google-Original-From: Claudiu Zissulescu To: gcc-patches@gcc.gnu.org Subject: [committed] arc: Update arc specific tests Date: Tue, 16 Nov 2021 11:58:00 +0200 Message-Id: <20211116095800.192635-1-claziss@synopsys.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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: Claudiu Zissulescu via Gcc-patches From: Claudiu Zissulescu Reply-To: Claudiu Zissulescu Cc: fbedard@synopsys.com, claziss@synopsys.com Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Update assembly output test pattern. Take into consideration also for which platform we do execute the test (baremetal or linux). gcc/testsuite/ChangeLog: * gcc.target/arc/add_n-combine.c: Update test patterns. * gcc.target/arc/builtin_eh.c: Update test for linux platforms. * gcc.target/arc/mul64-1.c: Disable this test while running on linux. * gcc.target/arc/tls-gd.c: Update matching patterns. * gcc.target/arc/tls-ie.c: Likewise. * gcc.target/arc/tls-ld.c: Likewise. * gcc.target/arc/uncached-8.c: Likewise. Signed-off-by: Claudiu Zissulescu --- gcc/testsuite/gcc.target/arc/add_n-combine.c | 4 ++-- gcc/testsuite/gcc.target/arc/builtin_eh.c | 3 ++- gcc/testsuite/gcc.target/arc/mul64-1.c | 2 +- gcc/testsuite/gcc.target/arc/tls-gd.c | 4 ++-- gcc/testsuite/gcc.target/arc/tls-ie.c | 4 ++-- gcc/testsuite/gcc.target/arc/tls-ld.c | 6 +++--- gcc/testsuite/gcc.target/arc/uncached-8.c | 5 +++-- 7 files changed, 15 insertions(+), 13 deletions(-) diff --git a/gcc/testsuite/gcc.target/arc/add_n-combine.c b/gcc/testsuite/gcc.target/arc/add_n-combine.c index bc400df669e..84e261ece8f 100644 --- a/gcc/testsuite/gcc.target/arc/add_n-combine.c +++ b/gcc/testsuite/gcc.target/arc/add_n-combine.c @@ -45,6 +45,6 @@ void f() { a(at3.bn[bu]); } -/* { dg-final { scan-assembler "add1" } } */ -/* { dg-final { scan-assembler "add2" } } */ +/* { dg-final { scan-assembler "@at1\\+1" } } */ +/* { dg-final { scan-assembler "@at2\\+2" } } */ /* { dg-final { scan-assembler "add3" } } */ diff --git a/gcc/testsuite/gcc.target/arc/builtin_eh.c b/gcc/testsuite/gcc.target/arc/builtin_eh.c index 717a54bb084..83f4f1d2ee0 100644 --- a/gcc/testsuite/gcc.target/arc/builtin_eh.c +++ b/gcc/testsuite/gcc.target/arc/builtin_eh.c @@ -19,4 +19,5 @@ foo (int x) /* { dg-final { scan-assembler "r13" } } */ /* { dg-final { scan-assembler "r0" } } */ /* { dg-final { scan-assembler "fp" } } */ -/* { dg-final { scan-assembler "fp,64" } } */ +/* { dg-final { scan-assembler "fp,64" { target { *-elf32-* } } } } */ +/* { dg-final { scan-assembler "fp,60" { target { *-linux-* } } } } */ diff --git a/gcc/testsuite/gcc.target/arc/mul64-1.c b/gcc/testsuite/gcc.target/arc/mul64-1.c index 2543fc33d3f..1a351feee87 100644 --- a/gcc/testsuite/gcc.target/arc/mul64-1.c +++ b/gcc/testsuite/gcc.target/arc/mul64-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-skip-if "MUL64 is ARC600 extension." { ! { clmcpu } } } */ +/* { dg-skip-if "MUL64 is ARC600 extension." { { ! { clmcpu } } || *-linux-* } } */ /* { dg-options "-O2 -mmul64 -mbig-endian -mcpu=arc600" } */ /* Check if mlo/mhi registers are correctly layout when we compile for diff --git a/gcc/testsuite/gcc.target/arc/tls-gd.c b/gcc/testsuite/gcc.target/arc/tls-gd.c index aa1b5429b08..d02af9537f8 100644 --- a/gcc/testsuite/gcc.target/arc/tls-gd.c +++ b/gcc/testsuite/gcc.target/arc/tls-gd.c @@ -13,5 +13,5 @@ int *ae2 (void) return &e2; } -/* { dg-final { scan-assembler "add r0,pcl,@e2@tlsgd" } } */ -/* { dg-final { scan-assembler "bl @__tls_get_addr@plt" } } */ +/* { dg-final { scan-assembler "add\\s+r0,pcl,@e2@tlsgd" } } */ +/* { dg-final { scan-assembler "bl\\s+@__tls_get_addr@plt" } } */ diff --git a/gcc/testsuite/gcc.target/arc/tls-ie.c b/gcc/testsuite/gcc.target/arc/tls-ie.c index 0c981cfbf67..f4ad635c4d3 100644 --- a/gcc/testsuite/gcc.target/arc/tls-ie.c +++ b/gcc/testsuite/gcc.target/arc/tls-ie.c @@ -13,5 +13,5 @@ int *ae2 (void) return &e2; } -/* { dg-final { scan-assembler "ld r0,\\\[pcl,@e2@tlsie\\\]" } } */ -/* { dg-final { scan-assembler "add_s r0,r0,r25" } } */ +/* { dg-final { scan-assembler "ld\\s+r0,\\\[pcl,@e2@tlsie\\\]" } } */ +/* { dg-final { scan-assembler "add_s\\s+r0,r0,r25" } } */ diff --git a/gcc/testsuite/gcc.target/arc/tls-ld.c b/gcc/testsuite/gcc.target/arc/tls-ld.c index 351c3f02abd..68ab9bf809c 100644 --- a/gcc/testsuite/gcc.target/arc/tls-ld.c +++ b/gcc/testsuite/gcc.target/arc/tls-ld.c @@ -13,6 +13,6 @@ int *ae2 (void) return &e2; } -/* { dg-final { scan-assembler "add r0,pcl,@.tbss@tlsgd" } } */ -/* { dg-final { scan-assembler "bl @__tls_get_addr@plt" } } */ -/* { dg-final { scan-assembler "add_s r0,r0,@e2@dtpoff" } } */ +/* { dg-final { scan-assembler "add\\s+r0,pcl,@.tbss@tlsgd" } } */ +/* { dg-final { scan-assembler "bl\\s+@__tls_get_addr@plt" } } */ +/* { dg-final { scan-assembler "add_s\\s+r0,r0,@e2@dtpoff" } } */ diff --git a/gcc/testsuite/gcc.target/arc/uncached-8.c b/gcc/testsuite/gcc.target/arc/uncached-8.c index 060229b11df..b5ea2359a9a 100644 --- a/gcc/testsuite/gcc.target/arc/uncached-8.c +++ b/gcc/testsuite/gcc.target/arc/uncached-8.c @@ -29,5 +29,6 @@ void bar (void) x.c.b.a = 10; } -/* { dg-final { scan-assembler-times "st\.di" 1 } } */ -/* { dg-final { scan-assembler-times "st\.as\.di" 1 } } */ +/* { dg-final { scan-assembler-times "st\.di" 2 { target { *-linux-* } } } } */ +/* { dg-final { scan-assembler-times "st\.di" 1 { target { *-elf32-* } } } } */ +/* { dg-final { scan-assembler-times "st\.as\.di" 1 { target { *-elf32-* } } } } */