From patchwork Sat Jan 13 13:57:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 187903 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp769824dyc; Sat, 13 Jan 2024 05:58:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFuu0O7XUU1EU6EByidt4vDsstqg1wuXe3c/u6ANCCuV2sGF3IoRLDTl1fPF+9oKM8uzSyD X-Received: by 2002:ac8:5751:0:b0:429:a99b:1834 with SMTP id 17-20020ac85751000000b00429a99b1834mr2902762qtx.20.1705154306528; Sat, 13 Jan 2024 05:58:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705154306; cv=pass; d=google.com; s=arc-20160816; b=1Hn3JIzR2l75BDAHLBB04QJxZjKldSgPPtKBe+40mcwCpsNnGqL88ixwrCBd+qBJKr PnwapyYi3kbTDyA2+cp50RMbRo/+oqvw0evKdS/sfOZrKkCYUBOwQTA2aYagh0sfEQc5 lPOg3G14+b8HICQeDoonXUisVxOfihfUBHcnMOBlUTDvW78s+mSewEyOz1ORn5IPb161 CpS54uSoqZera9Ubyou3oexpJ4ME0DSDnw8fkWbVhn0vmsVnh/nHN0beiLbR0XO5h1Dp w2JWCR9nkKk41ceVcsntp/9LJgqe+W8wMsPd940m7jzJ8R30PBzD4gPH2Hc4TWDmwXsC D7gQ== 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-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=IV/MBHJm7QvtAqhlHrJwPukx4dzbW720sljFRHIG95A=; fh=hquFfmNSiHACMF06VYcgSDOPZqbHeYlOOHoweb40YaM=; b=Q27D74TNQ1Z1PlTrDYoU2eRsanWnMJlLuNoVNex0Z6mldqr3ngt5CGdEU6XmX8nQlT Z3e00qboZGYeguMEHgYWZ+2F7p6MBuAxNz5A12WPA3ESu3TIssrurlyX/WadgZQnUzso GbVR6n5kPYqUvouJMQra3lpjvWrwigMvJ0glFdO36pcUHZ3WMiF/+rA4U15WzQNSffmc bAxhUJcLmruADfa4Pyewsa4wMJQE+GZ2G7u5ZzvX1xFuKqIvoz6L8Yx/lCxZTZ7yzlpo M79lXuVchluMqhjnQD6vtMqnJ3d15UEjlak1sjuZ9gC4syqAKD6gOejI+gAbjuq2yDL5 x6Eg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MqrSyEnP; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id z10-20020ac87f8a000000b0042818b3effasi4840051qtj.781.2024.01.13.05.58.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 05:58:26 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=MqrSyEnP; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EDD6D38582A4 for ; Sat, 13 Jan 2024 13:58:25 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 10CEC3858D20 for ; Sat, 13 Jan 2024 13:57:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 10CEC3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 10CEC3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154255; cv=none; b=sN/ETfWZi9l/7LBO7EJx/iDQmHXfEPdE7pmwrzuHMWBYFf82qpXjA1XaX6u0SPy+jfZZ9NnXOOs2wQc7OiPtMggP3Npkux/w3AijnR6XjLE5SIAXQN0SOUle9DS15O8S63Oqg0UKzy7hm1je/pQYYDYtlk3GIQp+gd+8OCja6N0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154255; c=relaxed/simple; bh=pcCw9ktVqiVrCSYvyqfbGT+Kms6/3BCe4SrkAE2+vHI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=nZ57Zaa3c+R6H1Aamoa6oDdSk1mn/olM8jBz8Qcfq6Q5HxkxQ3gcQ8pLCtMWsKnLGNt2rASr9rQ1wFqlyhgGPSgf0EmBwGWqOtwlX1U8jn4lkZHJ63OAf6qAoP9q+a/DphlqBMYITi9gIht6cXw9qXJdSq0jMHNS2BBKi2Ur1Kc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-336746c7b6dso6177961f8f.0 for ; Sat, 13 Jan 2024 05:57:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705154253; x=1705759053; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IV/MBHJm7QvtAqhlHrJwPukx4dzbW720sljFRHIG95A=; b=MqrSyEnPyV4DVa6ZFaC2BofYS4yGd2WIGuqbCGPRy6gI3Z2PmL06+bgIVynxU0gHPT w2xZJA/POCz5DthspYhtRmaC/Y1AD5HuRzmIRUXthN5/IfVTrNfuH4ZlZ2nKMCE4DJap lW3USiGPhwLBkSDB4GVDE67CpgzdGkEbwzkHiqhkW8ZYemJbcbvfA3xznEqEXJQ3f/dv nRxjuJ/SM6pbsaqAYiSMtwM1zSe+Nt7Uc+R7L7XLD1e5MxXJYDAhVLP0r2pQKmGVzmG1 8HkHsGjMh6MOJh+r2R2HlZVKZ8nRmwOsUuKu/dewxRdFqjhRkLkuSoEnnVs+38FdARpL velA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705154253; x=1705759053; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=IV/MBHJm7QvtAqhlHrJwPukx4dzbW720sljFRHIG95A=; b=jbQWVOQirpknAPyhSZar+0nNYeJwnxMziihxNpzp0Ue9SvbYr59Qk0OHjqjMFUjjHj JQKJ4YTd9H/Lbkocx9XPUcEkdpF4eJELcVT9ku5eVYYPuH1QDPpX6lO3moY9TeIZDEp3 tHMcpc/5jbgR5amJuHMNRaPopk+ZsOE5FWOhAODQzfKmGep9EpqABdSZ5f0vZTsFJigj Myc6b+4sLoAy1/zqaqnenJ+cUG3/8aHe5FAnvh6GHvQU/S9XEsYKsl1nymoGwKioGDdg XEcbEtDVzyRadNM6Bsy/Rmm/ODDQY5yCn8j5cBz9CjF1cNaC1mU68cIBoJvZG/H6Jgfc LCSg== X-Gm-Message-State: AOJu0Ywq9ezIVygnxeOmY5I9fKi8MIF1M3Q4Wu5vlitGG0sfbi8+o0Ma nDZG6wy6Fxtzmj9cIXaIEJrbMPqxbA0= X-Received: by 2002:a5d:6584:0:b0:336:c291:24a6 with SMTP id q4-20020a5d6584000000b00336c29124a6mr1183297wru.141.1705154252893; Sat, 13 Jan 2024 05:57:32 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id h7-20020adff4c7000000b0033677aae2e2sm6807083wrp.107.2024.01.13.05.57.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 13 Jan 2024 05:57:32 -0800 (PST) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: dmalcolm@redhat.com, gcc-patches@gcc.gnu.org Subject: [PATCH 1/4] testsuite, jit: test-alias-attribute.c requires alias support. Date: Sat, 13 Jan 2024 13:57:15 +0000 Message-Id: <20240113135718.57643-2-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240113135718.57643-1-iain@sandoe.co.uk> References: <20240113135718.57643-1-iain@sandoe.co.uk> MIME-Version: 1.0 X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: , Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787983881673408432 X-GMAIL-MSGID: 1787983881673408432 Add a dg-require-alias to cover this. gcc/testsuite/ChangeLog: * jit.dg/test-alias-attribute.c: Require target alias support. Signed-off-by: Iain Sandoe --- gcc/testsuite/jit.dg/test-alias-attribute.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/jit.dg/test-alias-attribute.c b/gcc/testsuite/jit.dg/test-alias-attribute.c index eb29003dfc9..4741aba5011 100644 --- a/gcc/testsuite/jit.dg/test-alias-attribute.c +++ b/gcc/testsuite/jit.dg/test-alias-attribute.c @@ -1,4 +1,5 @@ /* { dg-do compile { target x86_64-*-* } } */ +/* { dg-require-alias "" } */ #include #include From patchwork Sat Jan 13 13:57:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 187904 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp769851dyc; Sat, 13 Jan 2024 05:58:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8RGXgsZgR+/9PQgeMF0jU6ccvAQWlMzPwt4Yyh6pNCK/nHFH7VzJULraKxNuEdoMZfPr3 X-Received: by 2002:a0c:f3cf:0:b0:681:2fe6:6dd1 with SMTP id f15-20020a0cf3cf000000b006812fe66dd1mr1850867qvm.96.1705154310599; Sat, 13 Jan 2024 05:58:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705154310; cv=pass; d=google.com; s=arc-20160816; b=nWDf+XFgzR+y7o/+YIgn0DbCBvZ+I/J7rwm47uwJsWUfC1jPZZSZM9S9WG1tZqF77p ysR8Dy0MRSaqHDj7bQngObFMKuGuR5BnC1+x7v8/7rxFT+uvT2Lw/koGbFow6jXwjS7k rvz42w840JHRg7VF+ZBeSrdnT0OHMjE7tsw4p3nxVeqYY7gMdnbUs0QE9OrPQYN1LS8r iaIbvhSAlm3i+sXONbecFLRYV09OYKsbNcFGpP314trOgmUqwGo7CRigh1FoUeA+LNcX evBPgtONK2+lwnJbY5JeBmrQqASw39i5TByLsyCHbhFPBdBV7R8YxSPzJgmotZpoIVO8 dm0w== 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-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=0DP9xLl8UuWMiVXdB70gfHBvs0WPGgJzjOJUZfD14a4=; fh=hquFfmNSiHACMF06VYcgSDOPZqbHeYlOOHoweb40YaM=; b=L5TVK043GCFr6GwfJhCXvLQwYDHVLJTYSXOhcBiZc86XOwHuKavCN91seF2d6fuh6C 3BXMRVxd23Gncq9CjRdW5m1nXMC6rvIFbWmyFRdbVstcb6xTh1sEestcLvitxCUnYSSI +gHjb4BfQ5obeyZHTqgbAYjkVbN7grwYqURLVRAR+cmHoNUtVXqlVTxlWnmoGaLJzbgp OhPCH+A/r9HhEFx5XYqBaO/w+6KKax4rg+9tJ49mA1TBvybBBzXjwok960ZOxxSWmmjk LBY+UoewK7MVgQ5yba2ZGWIwLbvXpO2aanCCxnkra+PXkKcX/b2lISh2P0uxxnR86v8Z O9SA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Eoon+s/d"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id t1-20020a0cc441000000b0067f0cf9a77asi4951477qvi.77.2024.01.13.05.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 05:58:30 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Eoon+s/d"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C63153857C45 for ; Sat, 13 Jan 2024 13:58:29 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 12FAA3858D28 for ; Sat, 13 Jan 2024 13:57:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12FAA3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 12FAA3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154256; cv=none; b=FvaBCs3OBToBsapbdg5bifQWlSkdaL6tLWwDv8ra1dK2x+BWqwonGCwL2mrQ2H/WOUU/5lWlIE7ijvCjOWkjZ8sHp8JUi752cjQoP5R677Qpe9CBHpoyz57DRcrxDO8ZIDd8JHOSsKGX5DQUBHl6ZILSP0UpXOIaW13xITCKI9o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154256; c=relaxed/simple; bh=ZVG/KdngSDh1zDFVsx2v5lKcncmUV7lyyb+EWRHusGY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=WrGNUShancqy+HRjN/A7WNXVHxuaYabImHajTFbQVA/GdRm9LfHYPOvdCkZq13KlSPIVke5ZN4/SkxUi77cRL2GAzUwmrn00eR2/qyDq4ALR3VBHBHtsosr9RnvO/zJphpYjvnltNyaUUt84Cv4dQbngAizNlQVKFhrh8KFftAM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-336c5b5c163so4384297f8f.1 for ; Sat, 13 Jan 2024 05:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705154254; x=1705759054; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0DP9xLl8UuWMiVXdB70gfHBvs0WPGgJzjOJUZfD14a4=; b=Eoon+s/dlCr2zl1qEvcQpnEEjL7S8knFPIA33/4pUkFcWmk0xdWMnsUCTGhwee0KFm TeFdxniylnVfTYp5WCU5I/BPYEXVpkTTtYjEqb8Ge2d/GiE6xVuoffkXl2Ea1kDibvx4 qLFCT6j1lXfVoc/6HM4+JIZeJhxPUJE1j/DTGRpJ+EtLkXXrT1VM1khe7TuH0Y6Qeb07 EgrDr/pWMEBRIC0eV7ytTC3E+0lhWwFfF1QLPKt+DXhiM4GatPxPeOqJgKW6liyEXobK DotpDGbFk1sqSKVaIIc9iotf6hKiTsjXrZiZzDtXljXktAuxe3SfZjJZBha2dGuIDQzQ FS8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705154254; x=1705759054; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=0DP9xLl8UuWMiVXdB70gfHBvs0WPGgJzjOJUZfD14a4=; b=apCLwko21eZ5opLQ3iPfZydfgT/YaA6cT9KO9XmM1JsBWu1o4YIP7aDBq0UQSY6NH9 n1POUo9LbywMEQ6rkyhf6NyoGazCBn2SiA0nrSUm+TSqYcMCebFbfVQli0a9Tt3vwD9T oU/s5V4wlOuhMCL8LddZ7NBqLsOm8PK7YamSgpygrjqwr/PMf+H6leCW5afoeDjq11G3 asn3RRwuccgDGCSt6gJyPWI2fqG0YF0up3j4UPXfzpHxiELobXbAppWXTnMj/aIHqG6/ FE1HUULULEWyka/lnjeSlavhccJYrGebvBiRZEORTYhpg8urNfpEc605Z9SVAWvT+eqR tZUw== X-Gm-Message-State: AOJu0YwD07/vXwW9Zd+BeAFMVHPbYfYRHXG+05zWLobfHcIJKuGY3o7f Zj91yvaNe/0icByS9e6il+o= X-Received: by 2002:adf:eccf:0:b0:336:8767:2e2f with SMTP id s15-20020adfeccf000000b0033687672e2fmr1316784wro.7.1705154253440; Sat, 13 Jan 2024 05:57:33 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id h7-20020adff4c7000000b0033677aae2e2sm6807083wrp.107.2024.01.13.05.57.32 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 13 Jan 2024 05:57:33 -0800 (PST) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: dmalcolm@redhat.com, gcc-patches@gcc.gnu.org Subject: [PATCH 2/4] testsuite, jit: Handle whitespace in test-link-section-assembler.c. Date: Sat, 13 Jan 2024 13:57:16 +0000 Message-Id: <20240113135718.57643-3-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240113135718.57643-2-iain@sandoe.co.uk> References: <20240113135718.57643-1-iain@sandoe.co.uk> <20240113135718.57643-2-iain@sandoe.co.uk> MIME-Version: 1.0 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: , Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787983886381117231 X-GMAIL-MSGID: 1787983886381117231 Darwin has a different .section directive that has more fields and uses different whitespace. Amend the whitespace in the scan-asm to be more flexible. gcc/testsuite/ChangeLog: * jit.dg/test-link-section-assembler.c: Accept any whitespace between the .section directive and its arguments. Signed-off-by: Iain Sandoe --- gcc/testsuite/jit.dg/test-link-section-assembler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/jit.dg/test-link-section-assembler.c b/gcc/testsuite/jit.dg/test-link-section-assembler.c index a90b00e9a82..a78e9fd26ef 100644 --- a/gcc/testsuite/jit.dg/test-link-section-assembler.c +++ b/gcc/testsuite/jit.dg/test-link-section-assembler.c @@ -34,4 +34,4 @@ create_code (gcc_jit_context *ctxt, void *user_data) } /* { dg-final { jit-verify-output-file-was-created "" } } */ -/* { dg-final { jit-verify-assembler-output ".section .my_section" } } */ +/* { dg-final { jit-verify-assembler-output ".section\\s.my_section" } } */ From patchwork Sat Jan 13 13:57:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 187906 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp770103dyc; Sat, 13 Jan 2024 05:59:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2658eI9TSCk0KrjR01G9Q31uWTgnTnbk/3d0BiuzjUlAm+SZwvH6O66m/AuGzQZC9F4pD X-Received: by 2002:a05:620a:4005:b0:783:56c9:9581 with SMTP id h5-20020a05620a400500b0078356c99581mr4155qko.2.1705154360614; Sat, 13 Jan 2024 05:59:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705154360; cv=pass; d=google.com; s=arc-20160816; b=OWZccrGtzXPN43IiCkN0zHUbUxOyuDyqQfMhRq7o1cjRaxlgKbOeOMMwJ2HaLusrCK s14pop3ytUK/r7CgB/94gBBfJVEOlICP2zKRUg00Hj83zQv8ndCdBpqk8vi9eZKdV1FG u2VHrKigvYAevdICzKo2CSe1H5CuUCI0cNVOGcSYpCdCcq28eNpYvoLkoL0b9YB0snFm XlNDCNJwP1MjXbbTqsxbwb0UFVxXusRcRgVqD3u8SKqvhrj+6vixDnWaSfbrGCuCNTyS 48BoUu1hA9cPDL5YFyU1Rz0bb02bsug6W6ksX+XbxGJAcvS+II61vTHVHk7JDipoIehN Dqtw== 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-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=ULCBAJ5sez0HmWAnKe4Mc8lXKccKl65r/FUCpA9k/bE=; fh=hquFfmNSiHACMF06VYcgSDOPZqbHeYlOOHoweb40YaM=; b=ft15e147/mz3WC7XlKDxMED1yY00lGjAIFFQyeUZEcLS8Od3v1kQ6RU5qptCh7nzJX LFHFW8fPpcWQFnMpFM7/qUZoPsyPuh265iq90sGvSd8w0u6oe4noB+EjITLxO5J7Zvz1 cEXqkygy1hBLtJpnLu3JmZunScf9ljK4g905k2IRBE/l24twQ3eeek142Tf65A4ENf5A tC46Vzjny/bouFwA7RwJ5cJOY+KQdI8uCrSeLHSFOQnBl4GrKRVOuXmHQR7ScpS5hVIy GKB0XrgGMnaaKA2ubWdBuWGJQ7iiW2+4oJs3n91azm+cp6SkE8XVluFFXq/nNEUZu3Qv yP4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=i+ybZR3v; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id m12-20020a05620a220c00b007830c3de57fsi4625532qkh.239.2024.01.13.05.59.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 05:59:20 -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=@gmail.com header.s=20230601 header.b=i+ybZR3v; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 520C93858285 for ; Sat, 13 Jan 2024 13:59:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 85FF73858C41 for ; Sat, 13 Jan 2024 13:57:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85FF73858C41 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 85FF73858C41 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154257; cv=none; b=Mw+eJaPtG3xLCbhHMVssdylDzvSjvbOuFlY6EKS3dj9r6F7CZ4OmgXC6r4wyl8qgl/j5hMNtWGmozjWbeNymY8Zrri0mSmkUt7g5XxRLGzj6ow2c6a9S9KE/LFBEIeVay54OSmxRZ6NrUxePscxiIKdIh8yKNw4a+1bR6lINwYw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154257; c=relaxed/simple; bh=ideg4t2nWKy37c5CZCYsXlue8vfWSRSvx9IryOk5bNo=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=rr2GFaB1JrMPknEuQDF9VZDlU6xeUfj/3/NLtdH7ZVYDWj21RPr3ux8AIODR+5obHC79sKw2Ou/xqa9mHG6jp+24u/btlTXfJYQhmYOcYovPA5nDk3HtimSaPCdV2z/an9jcaNS7U8pi8+oJZPkHlRyTW9e1/vYSTuSScj/5Hdk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-3373a30af67so6402051f8f.0 for ; Sat, 13 Jan 2024 05:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705154254; x=1705759054; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ULCBAJ5sez0HmWAnKe4Mc8lXKccKl65r/FUCpA9k/bE=; b=i+ybZR3vZOCrHDO4Gftg9tsFWGYg0kNGWt5popdKbRT+iN2h/BdE3eAUa4RPtcRXMD Fv0AvV5wftge9AAMvKoZ3qRHx/uQ9KGse0Id0QXrVP3KT781vz7J56Fw811J2OklBX3D 4FfIIt6+nuaPPs3/KCYuVEeP//yceMUV4cvAwxHP2Kcce4jj6F4TA0vEObfP8LHWW1pB QKZeY6qzCHJi957GiVyJSxMIbvi4bGUB1szjTb85CuamtDRxb4FovGbo7J/yGzIhQH9G q34hh83mJ8c0c0ZWRwViDpCH/W3yxRYiBsin+8fd1qt8ZGxG8N1x94rCT1FbWtfQF8n0 K+Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705154254; x=1705759054; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ULCBAJ5sez0HmWAnKe4Mc8lXKccKl65r/FUCpA9k/bE=; b=MTS6AEMupAa+8VvjMOu8OdaPbA/aaK1LEMgzzxJWn8w2Gm3mF7vwQSWK2JzzG0LDGD QBAOil39lmbGnTXP5ydt0X+Kx8c2IAoSHEN8i2l4RLU/cCF9fcawHXWZMobjJoGkC9ah fqTAqlzB9+Q+KaFD21fkBBOchvmo7HSdoFq0HXn3ixP6eFxJLVR4yryzlLLS70A2NROt by3X+ebQcGsxUBr5/vJOfyrh8OCr74y0e2+d97kInwDAYtOvKjPgbN2Fl1ZWEkXLdFr+ nlf/zbq0C2jSa/yc9vXCIr/7CjwCeKTFvsH6Tzh1qemOTZUMBeG3MT11EY5SrhX+G0lK nu5A== X-Gm-Message-State: AOJu0YxPzGyytDAvQDo9AjDqXLPEHN4CzDEJpArDnkAylMycGXaky7qX z/LQ/1EYfSGtBdXUBIvhJMg= X-Received: by 2002:a5d:5903:0:b0:336:66e8:3c99 with SMTP id v3-20020a5d5903000000b0033666e83c99mr1017373wrd.171.1705154254041; Sat, 13 Jan 2024 05:57:34 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id h7-20020adff4c7000000b0033677aae2e2sm6807083wrp.107.2024.01.13.05.57.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 13 Jan 2024 05:57:33 -0800 (PST) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: dmalcolm@redhat.com, gcc-patches@gcc.gnu.org Subject: [PATCH 3/4] testsuite, jit: Allow for target-specific assembler scans. Date: Sat, 13 Jan 2024 13:57:17 +0000 Message-Id: <20240113135718.57643-4-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240113135718.57643-3-iain@sandoe.co.uk> References: <20240113135718.57643-1-iain@sandoe.co.uk> <20240113135718.57643-2-iain@sandoe.co.uk> <20240113135718.57643-3-iain@sandoe.co.uk> MIME-Version: 1.0 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: , Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787983938830678640 X-GMAIL-MSGID: 1787983938830678640 If we want to support multiple object formats and to allow for scan-assembler tests, we need to make it possible to adjust the tests on a per-target basis. This adds similar mechamisms to jit-verify-assembler-output{,-not} to those used for the general scan-assembler dg directives. As an aside; it would, perhaps, be possible to integrate this more with scanasm.exp (which would also give access to function body scanning) but I did not attempt that for this patch. After this, we can accept things like: ... { jit-verify-assembler-output-not "......" { target { ! *-*-darwin* } } } } or ... { jit-verify-assembler-output "......" { target *-*-darwin* } } } gcc/testsuite/ChangeLog: * jit.dg/jit.exp: Accept target clauses in jit-verify-assembler handling. Signed-off-by: Iain Sandoe --- gcc/testsuite/jit.dg/jit.exp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gcc/testsuite/jit.dg/jit.exp b/gcc/testsuite/jit.dg/jit.exp index 56972064d30..286cfa8192a 100644 --- a/gcc/testsuite/jit.dg/jit.exp +++ b/gcc/testsuite/jit.dg/jit.exp @@ -875,9 +875,23 @@ proc jit-verify-assembler { args } { proc jit-verify-assembler-output { args } { verbose "jit-verify-assembler: $args" + if { [llength $args] > 3 } { + error "jit-verify-assembler-output: too many arguments" + return + } + set dg-output-text [lindex $args 0] verbose "dg-output-text: ${dg-output-text}" + if { [llength $args] >= 2 } { + switch [dg-process-target [lindex $args 1]] { + "S" { } + "N" { return } + "F" { setup_xfail "*-*-*" } + "P" { } + } + } + upvar 2 name name verbose "name: $name" @@ -907,9 +921,23 @@ proc jit-verify-assembler-output { args } { proc jit-verify-assembler-output-not { args } { verbose "jit-verify-assembler: $args" + if { [llength $args] > 3 } { + error "jit-verify-assembler-output-not: too many arguments" + return + } + set dg-output-text [lindex $args 0] verbose "dg-output-text: ${dg-output-text}" + if { [llength $args] >= 2 } { + switch [dg-process-target [lindex $args 1]] { + "S" { } + "N" { return } + "F" { setup_xfail "*-*-*" } + "P" { } + } + } + upvar 2 name name verbose "name: $name" From patchwork Sat Jan 13 13:57:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 187905 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp769919dyc; Sat, 13 Jan 2024 05:58:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGN/Dy87VlcJ3y72cWQnW/RifnTuWFv1xmlDxfBXQ5Zzq8dkgi0Te0nC2iKUPWDKfP0AESl X-Received: by 2002:a05:6214:2427:b0:681:35b:ff6f with SMTP id gy7-20020a056214242700b00681035bff6fmr3596831qvb.29.1705154323153; Sat, 13 Jan 2024 05:58:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705154323; cv=pass; d=google.com; s=arc-20160816; b=ZQC+X//7IWD7izS9+PofMUuBemftF5TVkyIalPDnvLM7jwUG7Jjnhj0xT5iiSGrpaw sECk0bX1xlB6xqTASKQBkXfa3Mx7ub/2X8KwQYB/GVxzmsjJYmMG/0rb7DMGh4qQYj4J DaXVvqFFRf8HLlVeRw0XeXdCOgrl6lPJVgnyjtKriKWdLujrryOmLn/SCr2yMn9Rk4U2 3sfl1Ie1IRnynktHBQTeNC3hp9niDDYEYu3FQbB3il/XzVB91jSAENlyQ6VeCtWJV2pr gldqpcilAKo/K5hbWg5JNQgo7iQ6fhUgMuNnjb+m04zi+dawZ+bWduOdVTuSBf7r/rla +FUw== 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-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=1vDyQ8D2OeLcfNf5c8zPee+y4u5ONdwYZSuu4WMfMmM=; fh=hquFfmNSiHACMF06VYcgSDOPZqbHeYlOOHoweb40YaM=; b=gk7dgRenZDmbUteDolSqVVgdC4xAhXBP9WSKdOApzmobw8HPJiFbEkcWmJzvGlzney 9RudC3AlISzzNm0ODD1uPhfqhGk711t3XJ+8Qp4wWVsAs2CS7E2wGQhZbiQB6LZLljzx rLhE/Hfl+xlednaHyxPdrY1kTlrEJENwjbdrDAYMTG6wtFYNWOFdUTHLMvMPsj1Q/nbp Dni+iF/siEIY+fC2iGVPbQ+c0q2eM0adskGQ5912JR3RNOAlEo86p0sYaWkCu/RNL7OK 8ONH2fihEYsFlbIUbK/k+42p4ZFIWfHLyjsutZ3uNLKBgx/NN4CzVxZlFm60xsIhOI7i ZZDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bec7IMDj; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id y9-20020a0cc549000000b0068096de9f54si4690816qvi.348.2024.01.13.05.58.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Jan 2024 05:58:43 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bec7IMDj; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A5D96385801F for ; Sat, 13 Jan 2024 13:58:42 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by sourceware.org (Postfix) with ESMTPS id 0A7F53858C53 for ; Sat, 13 Jan 2024 13:57:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0A7F53858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0A7F53858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154258; cv=none; b=QeP2JOLRUBeADVO4BZsinZM143oILlX+Hr0CHhg0hMS/wAVhbEi1Y9SYGCbFGqyk6LEEubLi8NdTuJ3LMgpu3ILKvvKLZsrAOAV+UIaw/funuuSDwSQaH0TbGhyitAEPhgyNwEs3+LwT381eqInVD8WKdU+e1q5wBQqwuaZzZPg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705154258; c=relaxed/simple; bh=lrxHoqRz6Fzj2jk5DoxJW/yeGLfSecCmvWP/b5GmloE=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=ueOGi7JqGoqeoMpe2ggdUpyJmsY3wo2pYKT1wqhRk8Q6VWIhgyJeaP6gVHCcoytEOhc9x1D0gIp2fCTGygdPH7YESovXXwiZJ5nxQQuccF8+9hoeLM6mNsBoZMk/oE0UVHqbrHEXnHdO/fs/eMomTFcgrhllv5megaZ8QuMFJtI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-3366e78d872so7455597f8f.3 for ; Sat, 13 Jan 2024 05:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705154255; x=1705759055; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1vDyQ8D2OeLcfNf5c8zPee+y4u5ONdwYZSuu4WMfMmM=; b=bec7IMDjNWjSlxqj9haLSoMCqkzUVmtZTYTCJZvm/BjE7NLlPl4Yrc4IdYH5MYNbw0 vYl6Rxp2KM8M/lCDP0weLeFVnc1QZ4Xpo2Z5tZOf/E6iIbgo7fb5Nli6ydjIvzbqX9t/ ndF3dBvc1LQgzfnrO5bwcKjJ9kziat1J5Map2qBEGpDc0v9BuSRliby26dMYjpvmuPlW /OMXVa1BGdPQQHk7vSjFGqwtCGV/hWySuz70qws5p+i8AubSnCwE19n2jIPeVuj6XN1u bPWtyz9jaCNcq+GQi3yyl7HCoEB2ui/2slhpQn+BRgRzPcgZJQxEQy5K4c8E7kvdLlhW nurw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705154255; x=1705759055; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=1vDyQ8D2OeLcfNf5c8zPee+y4u5ONdwYZSuu4WMfMmM=; b=ALHxX+Rz5AAyehaNM2yCwJqAUsvb0mXrYMtGgD33y1AoU9MFgn7BzCVoqwwa+e2UOn bIEb8TMka4vgrhMPJxh8F41VDY/7y58Oe0YGTZhW2MhCfPXdoS8UB0EzEpHgjQ852+zF A2CteFLUznWg90YHXImwlW6c2oZ6nnYacOx4ELMmVYjShUW1gD78edyIjE6EYuDomola 0WXQvNRyB71jKcDkiYwg8UKOw14T0QEaoDDvB7vocJc76SO34qslUfDgi2MYGkahHy2y eLqUJrEE+6ACGm3B/tn89BJzcD21vadoomUz5a8SKsKFnTTc+gWKjBbbNUtQFr+WRsYk oHwA== X-Gm-Message-State: AOJu0Yw84ujo4qT7z0Fa3uIfuynD9OKsvoZ4AGAuc3dBIwlAtCb8Sv/f 7Kiimpshz3TJjkQdOE2GiOGIW7TWZRM= X-Received: by 2002:adf:e7c4:0:b0:337:6322:f4e3 with SMTP id e4-20020adfe7c4000000b003376322f4e3mr713373wrn.192.1705154254581; Sat, 13 Jan 2024 05:57:34 -0800 (PST) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id h7-20020adff4c7000000b0033677aae2e2sm6807083wrp.107.2024.01.13.05.57.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 13 Jan 2024 05:57:34 -0800 (PST) From: Iain Sandoe X-Google-Original-From: Iain Sandoe To: dmalcolm@redhat.com, gcc-patches@gcc.gnu.org Subject: [PATCH 4/4] testsuite,jit: Handle Darwin/Mach-O in assembler tests. Date: Sat, 13 Jan 2024 13:57:18 +0000 Message-Id: <20240113135718.57643-5-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20240113135718.57643-4-iain@sandoe.co.uk> References: <20240113135718.57643-1-iain@sandoe.co.uk> <20240113135718.57643-2-iain@sandoe.co.uk> <20240113135718.57643-3-iain@sandoe.co.uk> <20240113135718.57643-4-iain@sandoe.co.uk> MIME-Version: 1.0 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: , Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787983899540089666 X-GMAIL-MSGID: 1787983899540089666 Several of the jit tests check for assembler-specific output which differs on Mach-O from ELF. This patch uses the facility to make the scans targer-dependent and adds handling for darwin. gcc/testsuite/ChangeLog: * jit.dg/test-always_inline-attribute.c: Handle Darwin in jit-verify-assembler-output. * jit.dg/test-noinline-attribute.c: Likewise. * jit.dg/test-setting-alignment.c: Likewise. * jit.dg/test-used-attribute.c: Likewise. * jit.dg/test-variable-attribute.c: Likewise. * jit.dg/test-weak-attribute.c: Likewise. Signed-off-by: Iain Sandoe --- gcc/testsuite/jit.dg/test-always_inline-attribute.c | 10 +++++++--- gcc/testsuite/jit.dg/test-noinline-attribute.c | 10 +++++++--- gcc/testsuite/jit.dg/test-setting-alignment.c | 3 ++- gcc/testsuite/jit.dg/test-used-attribute.c | 10 +++++++--- gcc/testsuite/jit.dg/test-variable-attribute.c | 10 ++++++---- gcc/testsuite/jit.dg/test-weak-attribute.c | 3 ++- 6 files changed, 31 insertions(+), 15 deletions(-) diff --git a/gcc/testsuite/jit.dg/test-always_inline-attribute.c b/gcc/testsuite/jit.dg/test-always_inline-attribute.c index 5c3f386663f..f7201a17140 100644 --- a/gcc/testsuite/jit.dg/test-always_inline-attribute.c +++ b/gcc/testsuite/jit.dg/test-always_inline-attribute.c @@ -148,6 +148,10 @@ int foo () { /* { dg-final { jit-verify-output-file-was-created "" } } */ /* Check that the "removed" function was inlined, but not the others */ -/* { dg-final { jit-verify-assembler-output-not ".type\\s+removed,\\s+@function" } } */ -/* { dg-final { jit-verify-assembler-output ".type\\s+not_removed,\\s+@function" } } */ -/* { dg-final { jit-verify-assembler-output ".type\\s+foo,\\s+@function" } } */ +/* { dg-final { jit-verify-assembler-output-not ".type\\s+removed,\\s+@function" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".type\\s+not_removed,\\s+@function" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".type\\s+foo,\\s+@function" { target { ! *-*-darwin* } } } } */ + +/* { dg-final { jit-verify-assembler-output-not "\\n_removed:" { target *-*-darwin* } } } */ +/* { dg-final { jit-verify-assembler-output "\\n_not_removed:" { target *-*-darwin* } } } */ +/* { dg-final { jit-verify-assembler-output "\\n_foo:" { target *-*-darwin* } } } */ diff --git a/gcc/testsuite/jit.dg/test-noinline-attribute.c b/gcc/testsuite/jit.dg/test-noinline-attribute.c index eac6cae6b6a..acfea8fc55e 100644 --- a/gcc/testsuite/jit.dg/test-noinline-attribute.c +++ b/gcc/testsuite/jit.dg/test-noinline-attribute.c @@ -114,6 +114,10 @@ int foo () { /* { dg-final { jit-verify-output-file-was-created "" } } */ /* Check that the "removed" function was inlined, but not the others */ -/* { dg-final { jit-verify-assembler-output-not ".type\\s+removed.isra.0,\\s+@function" } } */ -/* { dg-final { jit-verify-assembler-output ".type\\s+not_removed.isra.0,\\s+@function" } } */ -/* { dg-final { jit-verify-assembler-output ".type\\s+foo,\\s+@function" } } */ +/* { dg-final { jit-verify-assembler-output-not ".type\\s+removed.isra.0,\\s+@function" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".type\\s+not_removed.isra.0,\\s+@function" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".type\\s+foo,\\s+@function" { target { ! *-*-darwin* } } } } */ + +/* { dg-final { jit-verify-assembler-output-not "\\n_removed.isra.0:" { target *-*-darwin* } } } */ +/* { dg-final { jit-verify-assembler-output "\\n_not_removed.isra.0:" { target *-*-darwin* } } } */ +/* { dg-final { jit-verify-assembler-output "\\n_foo:" { target *-*-darwin* } } } */ diff --git a/gcc/testsuite/jit.dg/test-setting-alignment.c b/gcc/testsuite/jit.dg/test-setting-alignment.c index 8489df9c6b9..14edc723f61 100644 --- a/gcc/testsuite/jit.dg/test-setting-alignment.c +++ b/gcc/testsuite/jit.dg/test-setting-alignment.c @@ -62,5 +62,6 @@ create_code (gcc_jit_context *ctxt, void *user_data) } /* { dg-final { jit-verify-output-file-was-created "" } } */ -/* { dg-final { jit-verify-assembler-output ".comm foo,4,8" } } */ +/* { dg-final { jit-verify-assembler-output ".comm foo,4,8" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".comm\\s_foo,4,3" { target *-*-darwin* } } } */ /* { dg-final { jit-verify-assembler-output "movl -16\\\(%rbp\\\), %eax" } } */ diff --git a/gcc/testsuite/jit.dg/test-used-attribute.c b/gcc/testsuite/jit.dg/test-used-attribute.c index cb20952c687..446c5c5c31b 100644 --- a/gcc/testsuite/jit.dg/test-used-attribute.c +++ b/gcc/testsuite/jit.dg/test-used-attribute.c @@ -107,6 +107,10 @@ int foo() { /* { dg-final { jit-verify-output-file-was-created "" } } */ /* Check that the "removed" function was inlined, but not the others */ -/* { dg-final { jit-verify-assembler-output-not ".type\\s+removed,\\s+@function" } } */ -/* { dg-final { jit-verify-assembler-output ".type\\s+not_removed,\\s+@function" } } */ -/* { dg-final { jit-verify-assembler-output ".type\\s+foo,\\s+@function" } } */ +/* { dg-final { jit-verify-assembler-output-not ".type\\s+removed,\\s+@function" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".type\\s+not_removed,\\s+@function" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".type\\s+foo,\\s+@function" { target { ! *-*-darwin* } } } } */ + +/* { dg-final { jit-verify-assembler-output-not "\\n_removed:" { target *-*-darwin* } } } */ +/* { dg-final { jit-verify-assembler-output "\\n_not_removed:" { target *-*-darwin* } } } */ +/* { dg-final { jit-verify-assembler-output "\\n_foo:" { target *-*-darwin* } } } */ diff --git a/gcc/testsuite/jit.dg/test-variable-attribute.c b/gcc/testsuite/jit.dg/test-variable-attribute.c index ea854ff4a9f..219a47d8817 100644 --- a/gcc/testsuite/jit.dg/test-variable-attribute.c +++ b/gcc/testsuite/jit.dg/test-variable-attribute.c @@ -40,7 +40,9 @@ int PUBLIC = 12; /* { dg-final { jit-verify-output-file-was-created "" } } */ /* Check that the attribute was applied correctly */ -/* { dg-final { jit-verify-assembler-output ".hidden\\s+PRIVATE" } } */ -/* { dg-final { jit-verify-assembler-output ".globl\\s+PRIVATE" } } */ -/* { dg-final { jit-verify-assembler-output-not ".hidden\\s+PUBLIC" } } */ -/* { dg-final { jit-verify-assembler-output ".globl\\s+PUBLIC" } } */ +/* { dg-final { jit-verify-assembler-output ".hidden\\s+PRIVATE" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".private_extern\\s+_PRIVATE" { target *-*-darwin* } } } */ +/* { dg-final { jit-verify-assembler-output ".globl\\s+_?PRIVATE" } } */ +/* { dg-final { jit-verify-assembler-output-not ".hidden\\s+PUBLIC" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output-not ".private_extern\\s+_PUBLIC" { target *-*-darwin* } } } */ +/* { dg-final { jit-verify-assembler-output ".globl\\s+_?PUBLIC" } } */ diff --git a/gcc/testsuite/jit.dg/test-weak-attribute.c b/gcc/testsuite/jit.dg/test-weak-attribute.c index 546ade1c3c4..3ca9485bf41 100644 --- a/gcc/testsuite/jit.dg/test-weak-attribute.c +++ b/gcc/testsuite/jit.dg/test-weak-attribute.c @@ -38,4 +38,5 @@ void f () {} /* { dg-final { jit-verify-output-file-was-created "" } } */ /* Check that the attribute was applied correctly */ -/* { dg-final { jit-verify-assembler-output ".weak\\s+f" } } */ +/* { dg-final { jit-verify-assembler-output ".weak\\s+f" { target { ! *-*-darwin* } } } } */ +/* { dg-final { jit-verify-assembler-output ".weak_definition\\s+_f" { target *-*-darwin* } } } */