From patchwork Fri Aug 9 12:25:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Stubbs X-Patchwork-Id: 1970922 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=OFjhp2Vf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WgNS05hsCz1ybS for ; Fri, 9 Aug 2024 22:26:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A594D385843B for ; Fri, 9 Aug 2024 12:26:03 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by sourceware.org (Postfix) with ESMTPS id F35C93858424 for ; Fri, 9 Aug 2024 12:25:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F35C93858424 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=baylibre.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F35C93858424 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::f2e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723206344; cv=none; b=FgUxDXAWPjqZ2CmjRzsLbYU6TtXHzKRi6a6oXkRI2prZlom6Tt3MMGw4RtAY6hjj2dC2wYdy0gpbgbNJ2e3teF505dnYUy1fXCWPKUMDtUYMaBoZFeMiMY79FeW7SPmBy3AH6V3nLabdwSmvk54MD52xW1ko3pn56ZhYTKkbOds= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1723206344; c=relaxed/simple; bh=c6Enqbw220nvubkLYsGgoW1OB6Q/jpXvzPzMIk5IFvc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=fJZxj0mQZMJI10EG6yyKxz6hXfWVDhRIUtL22wqba69JXLTHgmFABiD8AZR5BkcMfWEr5Kwa1U95Va4yL073OJdwEC8jHxiWztZrFXBt2B/YJH4t7yaURM6BflJdHL/fPEg9HqlbJb/+MYOhLWRnh+iF8/6STQFFL8V/f2xKjMA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-6bb687c3cceso11106516d6.0 for ; Fri, 09 Aug 2024 05:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1723206342; x=1723811142; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rFAzOs4jzfSSERe4Pz/fZFGBBL58fIAfOUQWBkkEy2s=; b=OFjhp2Vf5VwP4or0HafJ1luu4Vlv5dqD2DzAuR1k7PECwZt9Wi4nfccN28JYn75NfC XpvupC4Ox8atdAeLPW3Lnh50FL2T6bCbov7nMhCKFwcCQ3laWuDWpAJPtEPExRdUmjiz /VFQDzN/vJcCkKTYQLmrR3k05+TsE6Do1pIERfvYU8qVuQ2oyCu+KbqLTGLHlE2oG0cP zZXhwX2OoudOnH/y1I32fvCVaNz/llU72KfORq9igr+ouT3riccJ2EI2Z1rHLFwxN0XK NupCagOUThJjsLmQPAMXchfY0qlk2AqwnUMKAiv6nldOQRA0kSrrp0Yy5qlzBcrOZuio PFPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723206342; x=1723811142; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rFAzOs4jzfSSERe4Pz/fZFGBBL58fIAfOUQWBkkEy2s=; b=bYj60RZ/OXzwqsUmFFDXPQ8D0LaJw9r3T0aNjET0Msu6B95S2tIWcBylmcKSpsgy/Z epCTRgw7nTRBJXMkfRloE6B3lS7Wf7wqbhOJDYk+W6nMWL3CLUu7GVxaFJlz+2/WE30J U8TZvJ4HtPo7VRTJ1n83k0KR2aIUYrRsaOnrzbuXVmlfzSvNBrWmrHcl6L68tGJaVPxA cdWiZT7RXXCCCu3BlJfic1L7PBnVrPkvi6+lgjn6K+awQR4tuyBEfW3lBcVMiAAngiua qKZcBfcQdV2osJgKswanOS5JPH1jzrWdu+NTmGZQr0Mx/Dpi0P1ZvA+bUPGOpR1LL/+y ED+Q== X-Gm-Message-State: AOJu0YzNPz5YxOcyRffWavGWYeQo6SNeTKKDpbLFWgZQSeviVbwiLGKg cBplAFMFO9u5zrI5JKD1b4ulbiMgCDUhkCkS5ArT0Us8AyM1gj6ziSOYMZ2Ov3ym5hWlKylaacD XIBs= X-Google-Smtp-Source: AGHT+IFf4P8U8W8cXu3ghtYu+xX4WQ1naO8Q2Jt+RpFzKd3EeGYMDo7GHWlsmYg2xTsj3QypWDZY5w== X-Received: by 2002:a05:6214:3199:b0:6b0:9479:cdd7 with SMTP id 6a1803df08f44-6bd78e82f13mr15074846d6.54.1723206341669; Fri, 09 Aug 2024 05:25:41 -0700 (PDT) Received: from arnold.baylibre (88-127-129-70.subs.proxad.net. [88.127.129.70]) by smtp.googlemail.com with ESMTPSA id d75a77b69052e-451c87314b3sm21246881cf.42.2024.08.09.05.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Aug 2024 05:25:41 -0700 (PDT) From: Andrew Stubbs To: gcc-patches@gcc.gnu.org Cc: tschwinge@baylibre.com Subject: [commit] amdgcn: Add padding to trampoline Date: Fri, 9 Aug 2024 12:25:37 +0000 Message-ID: <20240809122537.159882-1-ams@baylibre.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP 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~incoming=patchwork.ozlabs.org@gcc.gnu.org This avoids a -Wpadded warning (testcase gcc.dg/20050607-1.c). gcc/ChangeLog: * config/gcn/gcn.cc (gcn_asm_trampoline_template): Add .align. * config/gcn/gcn.h (TRAMPOLINE_SIZE): Increase to 40. --- gcc/config/gcn/gcn.cc | 1 + gcc/config/gcn/gcn.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/config/gcn/gcn.cc b/gcc/config/gcn/gcn.cc index 0725d15c8ed..17316a7ddb8 100644 --- a/gcc/config/gcn/gcn.cc +++ b/gcc/config/gcn/gcn.cc @@ -3794,6 +3794,7 @@ gcn_asm_trampoline_template (FILE *f) asm_fprintf (f, "\ts_mov_b32\ts%i, 0xffff\n", CC_SAVE_REG); asm_fprintf (f, "\ts_mov_b32\ts%i, 0xffff\n", CC_SAVE_REG + 1); asm_fprintf (f, "\ts_setpc_b64\ts[%i:%i]\n", CC_SAVE_REG, CC_SAVE_REG + 1); + asm_fprintf (f, "\t.align 8\n"); } /* Implement TARGET_TRAMPOLINE_INIT. diff --git a/gcc/config/gcn/gcn.h b/gcc/config/gcn/gcn.h index e3bfd29c17d..bd2afa61c10 100644 --- a/gcc/config/gcn/gcn.h +++ b/gcc/config/gcn/gcn.h @@ -831,7 +831,7 @@ enum gcn_builtin_codes #define PROFILE_BEFORE_PROLOGUE 0 /* Trampolines */ -#define TRAMPOLINE_SIZE 36 +#define TRAMPOLINE_SIZE 40 /* 36 + 4 padding for alignment. */ #define TRAMPOLINE_ALIGNMENT 64 /* MD Optimization.