From patchwork Thu Jan 4 01:58:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: YunQiang Su X-Patchwork-Id: 184893 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5371675dyb; Wed, 3 Jan 2024 18:02:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGP1caubi5htuGHUwC4CqOzfw6dWf6j+hQIQOcg59Lu49dH6VFneRbslcKESRi6Z4Oddie8 X-Received: by 2002:a05:620a:22eb:b0:781:da7e:f6d2 with SMTP id p11-20020a05620a22eb00b00781da7ef6d2mr3362256qki.60.1704333766599; Wed, 03 Jan 2024 18:02:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704333766; cv=pass; d=google.com; s=arc-20160816; b=VMhdErqsv0ExCk3RdO8W/yQd0KG9bVSg1R++02NlHnmbfucc/sMwVqn2FIWhu/ukL6 Ci6mZmvVjNVoDmPynDmy3X+tQ1aTWhFS2sh8dwx1Q/BcIpHDmmN6W0yNjFeAmX6W+x0P df3BU2EY5ooXPVIfBAD8RaodW+Rd+O/NMLq3esAWCcjpGUh8jtcb8hrF/1+WvyCFNy61 Q0eMaoK45L0Ha+mdDqb+C02tCVovfzAnLasae8BU/pRGTGv0xppiBid6iQcli6e0WB3o ZHxTO4ORBJY4Sj9aYnQFuj9JbUpXPnHC8BnrAKDzwcFB0yJ0PTxB71OMRXbZp2UWiShg FiSw== 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:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:arc-filter:dmarc-filter:delivered-to:dkim-signature :dkim-filter; bh=msoAz+OT62+PjGBFaf76uG+AsPw0LFwnoK4HBLASHdg=; fh=Yb7vMu1xmO3w7lzcUJ3g87/936eZQp4GM8b6tTP+qWg=; b=wNRRs7uv0f7Exvv8BkUX6MNSoRZN7XW+oEFZKWfIJ+/iQ6EhT+cKDpE9eBgCmqpFWJ pt1bokX2zCM17OWW9gsoERQwSOnw+WAekt8+3J7ZSJtIaUBSSgxoJEF4njDshnvPN2zF Q6EIqxjRQs4CX3wa/Jy+U+EVa+xGSrgkBxpgMVn8ZWHokpI2dIzdke85tdBept7Pq6Ff UcIPKyx4ImECFIIjhnc9RrkFc/VqQeINw8ntCMU9ppo/FT+SbqYZ2GTEJ+RX4YsYb/GJ nOg2HnOiRFPGljT8eLj90SLURzHeHe/CfOb9Mcry2hDGpuK780ZZnHaIAABqdbj0073h O0qw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=lH8YS5uZ; 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=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id m8-20020a05620a24c800b00781e6c89120si2718584qkn.551.2024.01.03.18.02.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 18:02:46 -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=@gcc.gnu.org header.s=default header.b=lH8YS5uZ; 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=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 30EB4385828D for ; Thu, 4 Jan 2024 02:02:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30EB4385828D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704333766; bh=msoAz+OT62+PjGBFaf76uG+AsPw0LFwnoK4HBLASHdg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=lH8YS5uZmXBwz+vgPO/cA4GsBnMptk44lrxQBDe6XC18Ti4crRisqfh+axvczcZYW qpSKc/L61OlQUnRMdpBN5uY1G3t/P5ALYWEjSkK3iHzc7IveiP8pi3U8WIixYjYdWj Cbb/O4anXAvl8x0kAqVjVmhRkcDA3jlGhvZyrWX8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by sourceware.org (Postfix) with ESMTPS id 8F0BA3858286; Thu, 4 Jan 2024 01:58:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8F0BA3858286 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8F0BA3858286 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.214.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704333539; cv=none; b=hB3fgnRD8yr5huTLPtzFXe64zX62jiMBli+4UbCuXtLbqaiU/Wrs/Evtc8w1z8v0PwnLKpNA9Af0Lv7Pngf4zXe13l9coe11mwSV3h11twZcktyFhOd/9i+Wk9HKxDViZQwlwGcVAnfeAG6mSW4sVGvNj597NjxWj+hKC8HL5KM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704333539; c=relaxed/simple; bh=JIJdSEg031TMqIR6qRgUwEzPtNbtM+DQ6LAB/rba/JI=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=rsLcN/o3+USadGsUEPBD9bW7hIBLt9rrd2DnxRkH49u/cZm45D0RMbFIEtwX8XmmtpVgzE6ZC8MnIv+GNKC2fgdHRVwFbQp+0+tINbok/beimLKJ0DcQC6lwMZQTx8wGvaNpYQsPywG4D7Ge64+hpJBoDQ72B5hpDuBm8Y89XHM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d3e2972f65so88065ad.3; Wed, 03 Jan 2024 17:58:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704333534; x=1704938334; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=msoAz+OT62+PjGBFaf76uG+AsPw0LFwnoK4HBLASHdg=; b=Phq0A51+9V6Pq+rMXjOC4st6DBWg+BwNUEFOqJygAz60XpvvxmR7eO8t48sHkHTdSh 1VNl9UVt3HuRqQp8VcyUc8QNY6r4PNVIREVN4GfcwQWSV4929g2dCgNzfxn1tz6toIx6 sE4iUqKM0sXAx2glvRIcZylMLXehzaILR87nYzBNDs6VXXti7AuOZDgiVZypThzNLVf/ Vvli9zu3kE1vvvGMrM8STWXx9Z43h0UsuJqymPNPSMG/8XUsO7gE2zPyan+7qtcL//sv SyTMX4FFNx4wG6YXurDGxPHb/tuAKVV/d4WAkvFazmBE3866LAQOhVvn9MBeUImgIZ1s Y2OA== X-Gm-Message-State: AOJu0YxO41caCBqyv4Y4CKk+AZHCfNn1ivqNrHWd0xZbgnRKKb6R/CmV u7JTykZ6AfY89Tn6lNS/krM1CJIYsQ9GUw== X-Received: by 2002:a17:902:e5d2:b0:1d4:d3e9:79ad with SMTP id u18-20020a170902e5d200b001d4d3e979admr1359846plf.5.1704333533616; Wed, 03 Jan 2024 17:58:53 -0800 (PST) Received: from localhost.localdomain ([149.248.38.156]) by smtp.gmail.com with ESMTPSA id e6-20020a170902744600b001d4b0ae7052sm7028122plt.135.2024.01.03.17.58.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 17:58:52 -0800 (PST) From: YunQiang Su To: gcc-patches@gcc.gnu.org Cc: YunQiang Su Subject: [committed] MIPS/testsuite: Include stdio.h in mipscop tests Date: Thu, 4 Jan 2024 09:58:19 +0800 Message-Id: <20240104015819.353901-4-syq@gcc.gnu.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240104015819.353901-1-syq@gcc.gnu.org> References: <20240104015819.353901-1-syq@gcc.gnu.org> MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: 1787123483551158844 X-GMAIL-MSGID: 1787123483551158844 gcc/testsuite * gcc.c-torture/compile/mipscop-1.c: Include stdio.h. * gcc.c-torture/compile/mipscop-2.c: Ditto. * gcc.c-torture/compile/mipscop-3.c: Ditto. * gcc.c-torture/compile/mipscop-4.c: Ditto. --- gcc/testsuite/gcc.c-torture/compile/mipscop-1.c | 1 + gcc/testsuite/gcc.c-torture/compile/mipscop-2.c | 1 + gcc/testsuite/gcc.c-torture/compile/mipscop-3.c | 1 + gcc/testsuite/gcc.c-torture/compile/mipscop-4.c | 1 + 4 files changed, 4 insertions(+) diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c index 8a40ba1c6b7..2ba0ee79b8b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/mipscop-1.c @@ -1,5 +1,6 @@ /* { dg-do compile { target mips*-*-* } } */ +#include register unsigned int cp0count asm ("$c0r1"); int __attribute__ ((nomips16)) diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c index 94df41d65f9..6fffc8ec098 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/mipscop-2.c @@ -1,5 +1,6 @@ /* { dg-do compile { target mips*-*-* } } */ +#include register unsigned int c3r1 asm ("$c3r1"); extern unsigned int b, c; diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c index cb4bd4d3efb..03e30117bc1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c +++ b/gcc/testsuite/gcc.c-torture/compile/mipscop-3.c @@ -1,5 +1,6 @@ /* { dg-do compile { target mips*-*-* } } */ +#include register unsigned int c3r1 asm ("$c3r1"), c3r2 asm ("$c3r2"); extern unsigned int b, c; diff --git a/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c b/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c index 263fc5cacc1..7e000c1c68a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c +++ b/gcc/testsuite/gcc.c-torture/compile/mipscop-4.c @@ -1,5 +1,6 @@ /* { dg-do compile { target mips*-*-* } } */ +#include register unsigned long c3r1 asm ("$c3r1"), c3r2 asm ("$c3r2"); extern unsigned long b, c;