From patchwork Fri Feb 2 08:59:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 195710 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp296915dyc; Fri, 2 Feb 2024 01:01:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEE4Ig0NOyAC4FGHKQgunEJQGy0+dMMTuM2FoZsrqODdAhhvTbpbmirkc3EHxDFM08QZThc X-Received: by 2002:a05:622a:64b:b0:42a:6677:d3c0 with SMTP id a11-20020a05622a064b00b0042a6677d3c0mr5443131qtb.59.1706864468450; Fri, 02 Feb 2024 01:01:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706864468; cv=pass; d=google.com; s=arc-20160816; b=Fm6lkfHe6AytvTRtk0/OrIre4I6QaUwQdLP3eL2kle90cY1pTK+jAw/VHR53n9GIqM tQFbDK50s/vkLTLF6BgCL7JGL1yHvGuuxfUZyZ7obvzFo47o5Pt/lYKHjKhs1uZCoWVs Vfl74PPX9pD6WHuju+dXVkHMQLyHxr9lty8tVa1cZctS/J7+Dqpjk/ws3GxBObFUz3Dh Y06Iq4D5nHTV1Utw+o8q/mmzdjc3Y3EwyGIq+jDU3GfnAp0PP8rGcXTpB1KBSCMybT0U UDsySRB07AJwJ2xh7t9Y3YW3/nBAC8KXT+dEvVofMFEcBDQJvliVsGeinZ2E/FbAyKrQ CQ5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=Q0W47URCMU0H0IsxJkRCiHUzR+J3LTuK4tGwHJW5B+w=; fh=SnclAeI+21jyW2VmVoK7XDmnB/ZbVhyWClVV7FzR+Qo=; b=HkttMJxcVtGcqhen0O7EvxEs+lxG+vbC3IGZutGF4Bn9/1JZWFUEogEIXOYtWa3c/+ ayjLMQIjHKYR8Qej8MBfVMFTlECK1I8ftNbABtL5mxf1tXq7xp+xikxWgNQheFQkncfh P5M7Aq5F7L07T6v3AjPgqyqNcCMw2T3OmL1OlLipAFmUfBH89GZ2JyhGrVqtBD6zbNsD PjvE4IZ3cijeQ3+KoTOEpBjzL+4BAZr8c2zM0rZflYLkf23TY53qOF/Iv7+1qcHk2jT9 L8aD/s3TE+6QyJM9iOM5LTi7yW8BAbsgn0Ta+Vbk0yIZMjxlwT+RKjFmOgNTbbvb8DZ7 tt3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cebitec.uni-bielefeld.de header.s=20200306 header.b=R6N59IKf; 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" X-Forwarded-Encrypted: i=1; AJvYcCXU6e4fCmQfs3kXt7J8We70rxbewNUbSb8bK/sE/MlXs8tK4VnN0GapIL5hYuOCGpetJ7bjJAjxB7PT07rOrSCo7+XdOQ== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id c12-20020a05622a058c00b0042bec3d0429si1494473qtb.307.2024.02.02.01.01.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:01:08 -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=@cebitec.uni-bielefeld.de header.s=20200306 header.b=R6N59IKf; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 14E3D38582AC for ; Fri, 2 Feb 2024 09:01:08 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 5BDB83858D28 for ; Fri, 2 Feb 2024 08:59:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5BDB83858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5BDB83858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706864393; cv=none; b=e7Wn5VsXGfKbJtrOYegPoKKQ/PZgkErsMJ2mZQkTmWgcjdMUKjUch2cMD1JqLWtIrIXABfphDrkUeL6B31kLoBSEnqhLmo6+MF8qfRjSK1p3bmalddEiO5gWWaYGCYRDn1SjyZ40gBtmCKoDbXUyiVXy6XIPm4b0wGYtaIT9/WA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706864393; c=relaxed/simple; bh=2Opz3+zhijwU0SOHWD2xQw0qpX66XGG798Z3ZcPGkNE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=hp6c8nAUB+ERXVMgPI07NVtpaQv748Oh4HZYuwgU40nmoQMOYgDjlTFziP+RJYEVBwDsKbAQ1QnwED2xI8rdeI6oX+3PZWLb0XyoXrFRFX2IScZuwJxJlZKEEmuycuKkQvJ+HADHkIcgyAClyQhBCw5e6kXxz63/40JlpzZwCAI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 6A2A966668; Fri, 2 Feb 2024 09:59:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1706864389; bh=2Opz3 +zhijwU0SOHWD2xQw0qpX66XGG798Z3ZcPGkNE=; b=R6N59IKfLgZkB91ojkhOU fig2jo1JHbQJ1NeDRTeZXaFW9WkLD4xln7b80QBsI9n/rNIs7eHJQX3Hz8SA7O2s IquKKm2IY29PWeasZICtQQp/kHu4RX1wtZ5lwOYIC1qlngidWcn8ko+LMMprJG5u yd0f8B+IoNIF6eLt50LZyX4Q8o2xE1ub+l/YYtBzt5LPRuqhB2c8Jkl7CTphcrso 3XlcEw+d5kEOMwvDBL2Ir+RPCwlbg5bsYcjG74PdywJK+jlk3lULZYbA3PJTfPdN McLC6gq4qNYbrHy6xdVj0YcuJJqn7WdiTJ/7ke5pXocNrwDf1ZcdF2V+wB3Va60P Q== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Taz_8QJFFYwz; Fri, 2 Feb 2024 09:59:49 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p5085539e.dip0.t-ipconnect.de [80.133.83.158]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id A22E466B99; Fri, 2 Feb 2024 09:59:49 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: Roger Sayle , Uros Bizjak Subject: [PATCH] testsuite: i386: Fix gcc.target/i386/pr71321.c on Solaris/x86 Date: Fri, 02 Feb 2024 09:59:49 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3791.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789777116380522008 X-GMAIL-MSGID: 1789777116380522008 gcc.target/i386/pr71321.c FAILs on 64-bit Solaris/x86 with the native assembler: FAIL: gcc.target/i386/pr71321.c scan-assembler-not lea.*0 The problem is that /bin/as doesn't fully support cfi directives, so the .eh_frame section is specified explicitly, which includes ".long 0". The regular expression above includes ".*", which does multiline matches. AFAICS those aren't needed here. This patch changes the RE not to use multiline patches. Tested on i386-pc-solaris2.11 (as and gas) and i686-pc-linux-gnu. Ok for trunk? Rainer # HG changeset patch # Parent f2342e77e566f9b5bdb221afd339753dcb4d1723 testsuite: i386: Fix gcc.target/i386/pr71321.c on Solaris/x86 diff --git a/gcc/testsuite/gcc.target/i386/pr71321.c b/gcc/testsuite/gcc.target/i386/pr71321.c --- a/gcc/testsuite/gcc.target/i386/pr71321.c +++ b/gcc/testsuite/gcc.target/i386/pr71321.c @@ -12,4 +12,4 @@ unsigned cvt_to_2digit_ascii(uint8_t i) { return cvt_to_2digit(i, 10) + 0x0a3030; } -/* { dg-final { scan-assembler-not "lea.*0" } } */ +/* { dg-final { scan-assembler-not "lea\[^\n\r]*0" } } */