From patchwork Mon Feb 19 16:13:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Andre Vieira (lists)" X-Patchwork-Id: 1901040 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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 4TdnfF1VvCz1yP6 for ; Tue, 20 Feb 2024 03:13:55 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6BD633858C5F for ; Mon, 19 Feb 2024 16:13:53 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 821C53858D20 for ; Mon, 19 Feb 2024 16:13:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 821C53858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 821C53858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708359213; cv=none; b=Si6G52qj4zJSy9hLRDag6uGhPr5vbHQveY/OINmlMDH9RiTdYZtpEZkcQ+WfK+3dVkyP6+xPjU66ix+cFng5DCd3YCRHbZ40dby8M2+VKy4cZaQ+QLZmQuW+hUCaUA0eM5NfVTsKzvIM8T9inf7sv3auKhDPXgQPWG1olBwNsko= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708359213; c=relaxed/simple; bh=4dIIXjB3yLGrafBZYlxLn6tM9jPAWHQ/7tx92m5/VXc=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=o3kqPnsoRKeQ3M5azbX+J6z1topl6OXBY3GzmugYSxwilvugAHOBlyKV7sKo4RnUnecoX6cm5nHGavfmrpdsWydv0Taoh4XB0CvrwGLuGpqpa3MOqQphEl7aZgTyRWPMYwU6/2a9/g801hFVlaOfO9YCACLBQNpr3NAOpcDMBHc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E44DCDA7; Mon, 19 Feb 2024 08:14:10 -0800 (PST) Received: from [10.57.66.27] (unknown [10.57.66.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C6E2F3F762; Mon, 19 Feb 2024 08:13:30 -0800 (PST) Message-ID: <1e0cb5d8-3f59-40a9-a9fc-1269b836a57c@arm.com> Date: Mon, 19 Feb 2024 16:13:29 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "gcc-patches@gcc.gnu.org" Cc: "jakub@redhat.com" From: "Andre Vieira (lists)" Subject: [comitted] bitint: Fix testism where __seg_gs was being used for all targets X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Replaced uses of __seg_gs with the MACRO SEG defined in the testcase to pick (if any) the right __seg_{gs,fs} keyword based on target. gcc/testsuite/ChangeLog: * gcc.dg/bitint-86.c (__seg_gs): Replace with SEG MACRO. diff --git a/gcc/testsuite/gcc.dg/bitint-86.c b/gcc/testsuite/gcc.dg/bitint-86.c index 4e5761a203bc39150540326df9c0d88544bb02ef..10a2392b6f530ae165252bdac750061e92d53131 100644 --- a/gcc/testsuite/gcc.dg/bitint-86.c +++ b/gcc/testsuite/gcc.dg/bitint-86.c @@ -15,14 +15,14 @@ struct T { struct S b[4]; }; #endif void -foo (__seg_gs struct T *p) +foo (SEG struct T *p) { struct S s; p->b[0] = s; } void -bar (__seg_gs struct T *p, _BitInt(710) x, int y, double z) +bar (SEG struct T *p, _BitInt(710) x, int y, double z) { p->b[0].a = x + 42; p->b[1].a = x << y; @@ -31,7 +31,7 @@ bar (__seg_gs struct T *p, _BitInt(710) x, int y, double z) } int -baz (__seg_gs struct T *p, _BitInt(710) x, _BitInt(710) y) +baz (SEG struct T *p, _BitInt(710) x, _BitInt(710) y) { return __builtin_add_overflow (x, y, &p->b[1].a); }