From patchwork Thu Nov 25 04:18:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1559504 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=wMNttDmq; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (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 4J04Pq4mSJz9sVc for ; Thu, 25 Nov 2021 15:18:53 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A930D3857405 for ; Thu, 25 Nov 2021 04:18:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A930D3857405 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1637813929; bh=IJFLCENuL+gBDVCIp8NYpXF9cxcJt8kMmV4pjbtY3Z0=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wMNttDmq1kECmpXtFj3xQeNXmhidREXHTbTyP16WXZUJjBEL/Sc9IiAprrbeeUJL/ wCSsma8/EKLUTHHpPpooTjbc+nubb2Ijnq4eWvT3WpDdcs6bAi0dA73WR6GtTq6Gaj z8nZiWMOtVV8L/xLfyV9/hoj7G1uAaE7eEFPKZV4= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 3AEA73858403 for ; Thu, 25 Nov 2021 04:18:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3AEA73858403 Received: by mail-pg1-x535.google.com with SMTP id s137so4043020pgs.5 for ; Wed, 24 Nov 2021 20:18:29 -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:subject:date:message-id:mime-version :content-transfer-encoding; bh=IJFLCENuL+gBDVCIp8NYpXF9cxcJt8kMmV4pjbtY3Z0=; b=iYG33VL6/lS6NjF3VmA+KlMSd6J5uhXlmZf1lKcTqRTiGk6nBynSIIPCh4phDJ0H4q ydIKmed5KSLXrUsjXoM+GG9v3M5LVIsmnVLfzEa7/2rT2Yz7fuhS/nLyOLFNol/cV11t 8gZKGDvDQN5+vXA3U3/uA4T2f95IR1JiXaTKa6tsnSR3mdIM9/oyjDzLfJ8FY15OW+Lf /oxSlQ+DLtKgN6SndJvUIadC2Fi2IJKXdGRNdkQSzMahEypTzQSZ/L5fNUVPuz5ksboR Rt3cUodk/9ALvBw8ab/vQSdD88NzeWHWi8zTq7n1EA85v1M/ZwVgYIvUXv5qA3//JvrR UgXQ== X-Gm-Message-State: AOAM533GgMG/3sas8Iu6TnXOqtCIS1NTvBvwF2kEwnWnR2Oa3sfZ57gV SZU19YX1BI9J8h945c6mQ6PRhn+sJOQ= X-Google-Smtp-Source: ABdhPJx7UT1Dt+OEtX6otOVjZvAXFpxLu5SzZrA+7aE7KHk/d/2B1ewCw6zpQAUysRyMCdNfy+qHpQ== X-Received: by 2002:a62:8cc2:0:b0:480:ffe3:9eeb with SMTP id m185-20020a628cc2000000b00480ffe39eebmr11463385pfd.82.1637813908042; Wed, 24 Nov 2021 20:18:28 -0800 (PST) Received: from gnu-tgl-3.localdomain (71-222-78-46.lsv2.qwest.net. [71.222.78.46]) by smtp.gmail.com with ESMTPSA id c35sm900007pgm.67.2021.11.24.20.18.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Nov 2021 20:18:27 -0800 (PST) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 1730AC0B83 for ; Wed, 24 Nov 2021 20:18:27 -0800 (PST) To: gcc-patches@gcc.gnu.org Subject: [PATCH] pr103194-5.c: Replace long with int64_t Date: Wed, 24 Nov 2021 20:18:27 -0800 Message-Id: <20211125041827.34620-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3031.4 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: "H.J. Lu via Gcc-patches" From: "H.J. Lu" Reply-To: "H.J. Lu" Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Replace long with int64_t to work with -mx32. * gcc.target/i386/pr103194-5.c: Replace long with int64_t. --- gcc/testsuite/gcc.target/i386/pr103194-5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/pr103194-5.c b/gcc/testsuite/gcc.target/i386/pr103194-5.c index dfaddf0aa6e..2e335285c2f 100644 --- a/gcc/testsuite/gcc.target/i386/pr103194-5.c +++ b/gcc/testsuite/gcc.target/i386/pr103194-5.c @@ -2,6 +2,7 @@ /* { dg-options "-O2" } */ #include #include +#include #define FOO(RTYPE,TYPE) \ __attribute__((noinline,noclone)) RTYPE \ @@ -53,7 +54,7 @@ return __sync_fetch_and_and (a, ~mask) & mask; \ } \ -FOO(int, long); +FOO(int, int64_t); /* { dg-final { scan-assembler-times "lock;?\[ \t\]*bts" 2 } } */ /* { dg-final { scan-assembler-times "lock;?\[ \t\]*btc" 4 } } */