From patchwork Tue Jun 11 18:03:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick O'Neill X-Patchwork-Id: 1946477 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=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=K/BLKe1h; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4VzGlY21Y8z20Pb for ; Wed, 12 Jun 2024 04:04:25 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E677B386181F for ; Tue, 11 Jun 2024 18:04:22 +0000 (GMT) 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 A4DFC385DDC0 for ; Tue, 11 Jun 2024 18:03:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A4DFC385DDC0 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A4DFC385DDC0 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::535 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718129041; cv=none; b=DqZKixJYt0ekpH2pahi89jI5VtYdddJLtbyRC9GhbxZkMHj/ilOcwIAODuseOYTIwcZke3BU/5NqpOjH2pOyEAn8HbFaiJS7CvOMjM8Yl9Qy0azlDY/uVrmBcXEYklwhyP46rZ4WpzgnWY6Ll2+9luTEy6rvUEiXoH5toy8r+U0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718129041; c=relaxed/simple; bh=+RtPN9/Hq9m2yudqvIzh962zH57RijKfXFXxZXGg86o=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ajAtDi0CRUVTMJnY6VkUtdnqPmDcS3MrXgvQPh7auvwkqOiZ3aE+4mz1F2yR4iBoVygqO8tGkbu3MwLAAjnnkTCombyXbxIrlQ98gQTkGbplrhsI8EnpXgHla3fOJye+wQ5+nu27rfWpW84p1MrvMizTAWuTkzPvyU3mmJ3nn78= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-681bc7f50d0so76385a12.0 for ; Tue, 11 Jun 2024 11:03:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718129034; x=1718733834; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aR+Q2dRnEDgZC/+IGkGW0olQ/28bW+CPtyjGmS6Sq9M=; b=K/BLKe1haXlbWu74+VH6ikmoiNdnkoqz64eI7LyRRb+7QPLnnhjNYXAAOXN41+/mzQ yhtu2CkBKnkovOdHVJ8ZrpLAfBZegP8K8lje+a4dmEB63vpdj2x80q0iXL3Pl7AMJQlv xSoeAU3xXvRkh0JxNQuuMIfviE7EUWCBzH2+JAoSEdpOSIx7nFptIY9hApxazdxK5DoS GvTFd8YnvIcnlGes1uRUce3uCpisB+Fpp8liTra2Cpb6q5AfdQkTbJWT34OrBUj3dZI+ m0ca4sn/xjBy8HEZnIMHvhTzOATRJlkup8DFoPk8kYujICx436J2+UADQtOldRN5vvIu i7eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718129034; x=1718733834; 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=aR+Q2dRnEDgZC/+IGkGW0olQ/28bW+CPtyjGmS6Sq9M=; b=gGdwiTo96DI1uPL8UUekCZJRTpdcLOFRHHMmAKRa/9402tl3csUNa27qaAAtkPrHuB QcBLGY2m/BM/39O6ASK2Jotk2QOY7qlRRuGMkwj5HWozN6zMubam1n9xMWfgE+YASadV ARr/zK5ovkuHBo4U6Ze0/FgCbVlAFGjnedTVmcXrE+24P3jd8/6irhuRPEB3TAFkcaJd /MvcmJaElAUQH4LfWBWRrPX0RNrkL0Zln9NiE0um4QViXZzfDIFZuUuIvJplMtCDGZiO gRlwH0wEMFO0pktJSYx8SfroFQBr1pryeU6JOs6uga3Lrj9sZKRpmdCQW2IB3OeVBW9T nXZg== X-Gm-Message-State: AOJu0YwGrRhTcN6yzA5jZ5tFBzWQFmMFi5qFsJG1mZCVJzPi1qpqDK2l BhcnGqG+5eFAMs7KczHitkmTp23dMwy2d0gkFWnrekHnn9VN+mfNEs/RvmfXRWcGjMChqCL4U7K Q X-Google-Smtp-Source: AGHT+IGjuNzC4hVnVigFQ5MikzM61RbgHxuZVwbawMwE6pxxcEcClhhjPivkvBdifyxoF5Hvi2kFAw== X-Received: by 2002:a17:902:fc87:b0:1f7:18cf:a70f with SMTP id d9443c01a7336-1f72892e44fmr45177015ad.34.1718129033375; Tue, 11 Jun 2024 11:03:53 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hq.rivosinc.com ([50.145.13.30]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd7d614dsm105631655ad.152.2024.06.11.11.03.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:03:52 -0700 (PDT) From: Patrick O'Neill To: gcc-patches@gcc.gnu.org Cc: jeffreyalaw@gmail.com, kito.cheng@gmail.com, gnu-toolchain@rivosinc.com, Patrick O'Neill Subject: [PATCH 1/3] RISC-V: Move amo tests into subfolder Date: Tue, 11 Jun 2024 11:03:40 -0700 Message-ID: <20240611180342.2420602-2-patrick@rivosinc.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240611180342.2420602-1-patrick@rivosinc.com> References: <20240611180342.2420602-1-patrick@rivosinc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, 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: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org There's a large number of atomic related testcases in the riscv folder. Move them into a subfolder similar to what was done for rvv testcases. gcc/testsuite/ChangeLog: * gcc.target/riscv/amo-table-a-6-amo-add-1.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c: ...here. * gcc.target/riscv/amo-table-a-6-amo-add-2.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c: ...here. * gcc.target/riscv/amo-table-a-6-amo-add-3.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c: ...here. * gcc.target/riscv/amo-table-a-6-amo-add-4.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c: ...here. * gcc.target/riscv/amo-table-a-6-amo-add-5.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c: ...here. * gcc.target/riscv/amo-table-a-6-compare-exchange-1.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-compare-exchange-1.c: ...here. * gcc.target/riscv/amo-table-a-6-compare-exchange-2.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-compare-exchange-2.c: ...here. * gcc.target/riscv/amo-table-a-6-compare-exchange-3.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-compare-exchange-3.c: ...here. * gcc.target/riscv/amo-table-a-6-compare-exchange-4.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-compare-exchange-4.c: ...here. * gcc.target/riscv/amo-table-a-6-compare-exchange-5.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-compare-exchange-5.c: ...here. * gcc.target/riscv/amo-table-a-6-compare-exchange-6.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-compare-exchange-6.c: ...here. * gcc.target/riscv/amo-table-a-6-compare-exchange-7.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-compare-exchange-7.c: ...here. * gcc.target/riscv/amo-table-a-6-fence-1.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-fence-1.c: ...here. * gcc.target/riscv/amo-table-a-6-fence-2.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-fence-2.c: ...here. * gcc.target/riscv/amo-table-a-6-fence-3.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-fence-3.c: ...here. * gcc.target/riscv/amo-table-a-6-fence-4.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-fence-4.c: ...here. * gcc.target/riscv/amo-table-a-6-fence-5.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-fence-5.c: ...here. * gcc.target/riscv/amo-table-a-6-load-1.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-load-1.c: ...here. * gcc.target/riscv/amo-table-a-6-load-2.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-load-2.c: ...here. * gcc.target/riscv/amo-table-a-6-load-3.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-load-3.c: ...here. * gcc.target/riscv/amo-table-a-6-store-1.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-store-1.c: ...here. * gcc.target/riscv/amo-table-a-6-store-2.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-store-2.c: ...here. * gcc.target/riscv/amo-table-a-6-store-compat-3.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c: ...here. * gcc.target/riscv/amo-table-a-6-subword-amo-add-1.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c: ...here. * gcc.target/riscv/amo-table-a-6-subword-amo-add-2.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c: ...here. * gcc.target/riscv/amo-table-a-6-subword-amo-add-3.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c: ...here. * gcc.target/riscv/amo-table-a-6-subword-amo-add-4.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c: ...here. * gcc.target/riscv/amo-table-a-6-subword-amo-add-5.c: Move to... * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c: ...here. * gcc.target/riscv/amo-table-ztso-amo-add-1.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c: ...here. * gcc.target/riscv/amo-table-ztso-amo-add-2.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c: ...here. * gcc.target/riscv/amo-table-ztso-amo-add-3.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c: ...here. * gcc.target/riscv/amo-table-ztso-amo-add-4.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c: ...here. * gcc.target/riscv/amo-table-ztso-amo-add-5.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c: ...here. * gcc.target/riscv/amo-table-ztso-compare-exchange-1.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-compare-exchange-1.c: ...here. * gcc.target/riscv/amo-table-ztso-compare-exchange-2.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-compare-exchange-2.c: ...here. * gcc.target/riscv/amo-table-ztso-compare-exchange-3.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-compare-exchange-3.c: ...here. * gcc.target/riscv/amo-table-ztso-compare-exchange-4.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-compare-exchange-4.c: ...here. * gcc.target/riscv/amo-table-ztso-compare-exchange-5.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-compare-exchange-5.c: ...here. * gcc.target/riscv/amo-table-ztso-compare-exchange-6.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-compare-exchange-6.c: ...here. * gcc.target/riscv/amo-table-ztso-compare-exchange-7.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-compare-exchange-7.c: ...here. * gcc.target/riscv/amo-table-ztso-fence-1.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-fence-1.c: ...here. * gcc.target/riscv/amo-table-ztso-fence-2.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-fence-2.c: ...here. * gcc.target/riscv/amo-table-ztso-fence-3.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-fence-3.c: ...here. * gcc.target/riscv/amo-table-ztso-fence-4.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-fence-4.c: ...here. * gcc.target/riscv/amo-table-ztso-fence-5.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-fence-5.c: ...here. * gcc.target/riscv/amo-table-ztso-load-1.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-load-1.c: ...here. * gcc.target/riscv/amo-table-ztso-load-2.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-load-2.c: ...here. * gcc.target/riscv/amo-table-ztso-load-3.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-load-3.c: ...here. * gcc.target/riscv/amo-table-ztso-store-1.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-store-1.c: ...here. * gcc.target/riscv/amo-table-ztso-store-2.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-store-2.c: ...here. * gcc.target/riscv/amo-table-ztso-store-3.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-store-3.c: ...here. * gcc.target/riscv/amo-table-ztso-subword-amo-add-1.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c: ...here. * gcc.target/riscv/amo-table-ztso-subword-amo-add-2.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c: ...here. * gcc.target/riscv/amo-table-ztso-subword-amo-add-3.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c: ...here. * gcc.target/riscv/amo-table-ztso-subword-amo-add-4.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c: ...here. * gcc.target/riscv/amo-table-ztso-subword-amo-add-5.c: Move to... * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c: ...here. * gcc.target/riscv/amo-zaamo-preferred-over-zalrsc.c: Move to... * gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c: ...here. * gcc.target/riscv/amo-zalrsc-amo-add-1.c: Move to... * gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c: ...here. * gcc.target/riscv/amo-zalrsc-amo-add-2.c: Move to... * gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c: ...here. * gcc.target/riscv/amo-zalrsc-amo-add-3.c: Move to... * gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c: ...here. * gcc.target/riscv/amo-zalrsc-amo-add-4.c: Move to... * gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c: ...here. * gcc.target/riscv/amo-zalrsc-amo-add-5.c: Move to... * gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c: ...here. * gcc.target/riscv/inline-atomics-1.c: Move to... * gcc.target/riscv/amo/inline-atomics-1.c: ...here. * gcc.target/riscv/inline-atomics-2.c: Move to... * gcc.target/riscv/amo/inline-atomics-2.c: ...here. * gcc.target/riscv/inline-atomics-3.c: Move to... * gcc.target/riscv/amo/inline-atomics-3.c: ...here. * gcc.target/riscv/inline-atomics-4.c: Move to... * gcc.target/riscv/amo/inline-atomics-4.c: ...here. * gcc.target/riscv/inline-atomics-5.c: Move to... * gcc.target/riscv/amo/inline-atomics-5.c: ...here. * gcc.target/riscv/inline-atomics-6.c: Move to... * gcc.target/riscv/amo/inline-atomics-6.c: ...here. * gcc.target/riscv/inline-atomics-7.c: Move to... * gcc.target/riscv/amo/inline-atomics-7.c: ...here. * gcc.target/riscv/inline-atomics-8.c: Move to... * gcc.target/riscv/amo/inline-atomics-8.c: ...here. * gcc.target/riscv/pr114130.c: Move to... * gcc.target/riscv/amo/pr114130.c: ...here. * gcc.target/riscv/pr89835.c: Move to... * gcc.target/riscv/amo/pr89835.c: ...here. * gcc.target/riscv/amo/amo.exp: New file. Signed-off-by: Patrick O'Neill --- amo.exp is based off h8300.exp and I referenced a few other *.exp files. I tested by ensuring an edited testcase fails but I'd appreciate a close look at that file since dejagnu is still a bit of a mystery to me. --- .../riscv/{ => amo}/amo-table-a-6-amo-add-1.c | 0 .../riscv/{ => amo}/amo-table-a-6-amo-add-2.c | 0 .../riscv/{ => amo}/amo-table-a-6-amo-add-3.c | 0 .../riscv/{ => amo}/amo-table-a-6-amo-add-4.c | 0 .../riscv/{ => amo}/amo-table-a-6-amo-add-5.c | 0 .../amo-table-a-6-compare-exchange-1.c | 0 .../amo-table-a-6-compare-exchange-2.c | 0 .../amo-table-a-6-compare-exchange-3.c | 0 .../amo-table-a-6-compare-exchange-4.c | 0 .../amo-table-a-6-compare-exchange-5.c | 0 .../amo-table-a-6-compare-exchange-6.c | 0 .../amo-table-a-6-compare-exchange-7.c | 0 .../riscv/{ => amo}/amo-table-a-6-fence-1.c | 0 .../riscv/{ => amo}/amo-table-a-6-fence-2.c | 0 .../riscv/{ => amo}/amo-table-a-6-fence-3.c | 0 .../riscv/{ => amo}/amo-table-a-6-fence-4.c | 0 .../riscv/{ => amo}/amo-table-a-6-fence-5.c | 0 .../riscv/{ => amo}/amo-table-a-6-load-1.c | 0 .../riscv/{ => amo}/amo-table-a-6-load-2.c | 0 .../riscv/{ => amo}/amo-table-a-6-load-3.c | 0 .../riscv/{ => amo}/amo-table-a-6-store-1.c | 0 .../riscv/{ => amo}/amo-table-a-6-store-2.c | 0 .../{ => amo}/amo-table-a-6-store-compat-3.c | 0 .../amo-table-a-6-subword-amo-add-1.c | 0 .../amo-table-a-6-subword-amo-add-2.c | 0 .../amo-table-a-6-subword-amo-add-3.c | 0 .../amo-table-a-6-subword-amo-add-4.c | 0 .../amo-table-a-6-subword-amo-add-5.c | 0 .../{ => amo}/amo-table-ztso-amo-add-1.c | 0 .../{ => amo}/amo-table-ztso-amo-add-2.c | 0 .../{ => amo}/amo-table-ztso-amo-add-3.c | 0 .../{ => amo}/amo-table-ztso-amo-add-4.c | 0 .../{ => amo}/amo-table-ztso-amo-add-5.c | 0 .../amo-table-ztso-compare-exchange-1.c | 0 .../amo-table-ztso-compare-exchange-2.c | 0 .../amo-table-ztso-compare-exchange-3.c | 0 .../amo-table-ztso-compare-exchange-4.c | 0 .../amo-table-ztso-compare-exchange-5.c | 0 .../amo-table-ztso-compare-exchange-6.c | 0 .../amo-table-ztso-compare-exchange-7.c | 0 .../riscv/{ => amo}/amo-table-ztso-fence-1.c | 0 .../riscv/{ => amo}/amo-table-ztso-fence-2.c | 0 .../riscv/{ => amo}/amo-table-ztso-fence-3.c | 0 .../riscv/{ => amo}/amo-table-ztso-fence-4.c | 0 .../riscv/{ => amo}/amo-table-ztso-fence-5.c | 0 .../riscv/{ => amo}/amo-table-ztso-load-1.c | 0 .../riscv/{ => amo}/amo-table-ztso-load-2.c | 0 .../riscv/{ => amo}/amo-table-ztso-load-3.c | 0 .../riscv/{ => amo}/amo-table-ztso-store-1.c | 0 .../riscv/{ => amo}/amo-table-ztso-store-2.c | 0 .../riscv/{ => amo}/amo-table-ztso-store-3.c | 0 .../amo-table-ztso-subword-amo-add-1.c | 0 .../amo-table-ztso-subword-amo-add-2.c | 0 .../amo-table-ztso-subword-amo-add-3.c | 0 .../amo-table-ztso-subword-amo-add-4.c | 0 .../amo-table-ztso-subword-amo-add-5.c | 0 .../amo-zaamo-preferred-over-zalrsc.c | 0 .../riscv/{ => amo}/amo-zalrsc-amo-add-1.c | 0 .../riscv/{ => amo}/amo-zalrsc-amo-add-2.c | 0 .../riscv/{ => amo}/amo-zalrsc-amo-add-3.c | 0 .../riscv/{ => amo}/amo-zalrsc-amo-add-4.c | 0 .../riscv/{ => amo}/amo-zalrsc-amo-add-5.c | 0 gcc/testsuite/gcc.target/riscv/amo/amo.exp | 41 +++++++++++++++++++ .../riscv/{ => amo}/inline-atomics-1.c | 0 .../riscv/{ => amo}/inline-atomics-2.c | 0 .../riscv/{ => amo}/inline-atomics-3.c | 0 .../riscv/{ => amo}/inline-atomics-4.c | 0 .../riscv/{ => amo}/inline-atomics-5.c | 0 .../riscv/{ => amo}/inline-atomics-6.c | 0 .../riscv/{ => amo}/inline-atomics-7.c | 0 .../riscv/{ => amo}/inline-atomics-8.c | 0 .../gcc.target/riscv/{ => amo}/pr114130.c | 0 .../gcc.target/riscv/{ => amo}/pr89835.c | 0 73 files changed, 41 insertions(+) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-amo-add-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-amo-add-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-amo-add-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-amo-add-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-amo-add-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-compare-exchange-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-compare-exchange-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-compare-exchange-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-compare-exchange-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-compare-exchange-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-compare-exchange-6.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-compare-exchange-7.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-fence-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-fence-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-fence-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-fence-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-fence-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-load-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-load-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-load-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-store-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-store-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-store-compat-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-subword-amo-add-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-subword-amo-add-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-subword-amo-add-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-subword-amo-add-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-a-6-subword-amo-add-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-amo-add-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-amo-add-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-amo-add-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-amo-add-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-amo-add-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-compare-exchange-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-compare-exchange-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-compare-exchange-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-compare-exchange-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-compare-exchange-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-compare-exchange-6.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-compare-exchange-7.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-fence-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-fence-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-fence-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-fence-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-fence-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-load-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-load-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-load-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-store-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-store-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-store-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-subword-amo-add-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-subword-amo-add-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-subword-amo-add-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-subword-amo-add-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-table-ztso-subword-amo-add-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-zaamo-preferred-over-zalrsc.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-zalrsc-amo-add-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-zalrsc-amo-add-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-zalrsc-amo-add-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-zalrsc-amo-add-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/amo-zalrsc-amo-add-5.c (100%) create mode 100644 gcc/testsuite/gcc.target/riscv/amo/amo.exp rename gcc/testsuite/gcc.target/riscv/{ => amo}/inline-atomics-1.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/inline-atomics-2.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/inline-atomics-3.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/inline-atomics-4.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/inline-atomics-5.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/inline-atomics-6.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/inline-atomics-7.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/inline-atomics-8.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/pr114130.c (100%) rename gcc/testsuite/gcc.target/riscv/{ => amo}/pr89835.c (100%) -- 2.34.1 diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-amo-add-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-6.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-6.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-6.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-6.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-7.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-7.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-compare-exchange-7.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-compare-exchange-7.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-fence-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-fence-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-load-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-load-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-load-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-load-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-load-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-load-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-store-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-store-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-store-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-store-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-store-compat-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-store-compat-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-a-6-subword-amo-add-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-amo-add-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-6.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-6.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-6.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-6.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-7.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-7.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-compare-exchange-7.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-compare-exchange-7.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-fence-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-fence-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-load-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-store-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-table-ztso-subword-amo-add-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-zaamo-preferred-over-zalrsc.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-zaamo-preferred-over-zalrsc.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-1.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-2.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-3.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-4.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c diff --git a/gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/amo-zalrsc-amo-add-5.c rename to gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo.exp b/gcc/testsuite/gcc.target/riscv/amo/amo.exp new file mode 100644 index 00000000000..2806f4bda7a --- /dev/null +++ b/gcc/testsuite/gcc.target/riscv/amo/amo.exp @@ -0,0 +1,41 @@ +# Copyright (C) 2024-2024 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GCC; see the file COPYING3. If not see +# . + +# GCC testsuite that uses the `dg.exp' driver. + +# Exit immediately if this isn't a RISC-V target. +if ![istarget riscv*-*-*] then { + return +} + +# Load support procs. +load_lib gcc-dg.exp + +# If a testcase doesn't have special options, use these. +global DEFAULT_CFLAGS +if ![info exists DEFAULT_CFLAGS] then { + set DEFAULT_CFLAGS " -ansi -pedantic-errors" +} + +# Initialize `dg'. +dg-init + +# Main loop. +dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] \ + "" $DEFAULT_CFLAGS + +# All done. +dg-finish diff --git a/gcc/testsuite/gcc.target/riscv/inline-atomics-1.c b/gcc/testsuite/gcc.target/riscv/amo/inline-atomics-1.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/inline-atomics-1.c rename to gcc/testsuite/gcc.target/riscv/amo/inline-atomics-1.c diff --git a/gcc/testsuite/gcc.target/riscv/inline-atomics-2.c b/gcc/testsuite/gcc.target/riscv/amo/inline-atomics-2.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/inline-atomics-2.c rename to gcc/testsuite/gcc.target/riscv/amo/inline-atomics-2.c diff --git a/gcc/testsuite/gcc.target/riscv/inline-atomics-3.c b/gcc/testsuite/gcc.target/riscv/amo/inline-atomics-3.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/inline-atomics-3.c rename to gcc/testsuite/gcc.target/riscv/amo/inline-atomics-3.c diff --git a/gcc/testsuite/gcc.target/riscv/inline-atomics-4.c b/gcc/testsuite/gcc.target/riscv/amo/inline-atomics-4.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/inline-atomics-4.c rename to gcc/testsuite/gcc.target/riscv/amo/inline-atomics-4.c diff --git a/gcc/testsuite/gcc.target/riscv/inline-atomics-5.c b/gcc/testsuite/gcc.target/riscv/amo/inline-atomics-5.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/inline-atomics-5.c rename to gcc/testsuite/gcc.target/riscv/amo/inline-atomics-5.c diff --git a/gcc/testsuite/gcc.target/riscv/inline-atomics-6.c b/gcc/testsuite/gcc.target/riscv/amo/inline-atomics-6.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/inline-atomics-6.c rename to gcc/testsuite/gcc.target/riscv/amo/inline-atomics-6.c diff --git a/gcc/testsuite/gcc.target/riscv/inline-atomics-7.c b/gcc/testsuite/gcc.target/riscv/amo/inline-atomics-7.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/inline-atomics-7.c rename to gcc/testsuite/gcc.target/riscv/amo/inline-atomics-7.c diff --git a/gcc/testsuite/gcc.target/riscv/inline-atomics-8.c b/gcc/testsuite/gcc.target/riscv/amo/inline-atomics-8.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/inline-atomics-8.c rename to gcc/testsuite/gcc.target/riscv/amo/inline-atomics-8.c diff --git a/gcc/testsuite/gcc.target/riscv/pr114130.c b/gcc/testsuite/gcc.target/riscv/amo/pr114130.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/pr114130.c rename to gcc/testsuite/gcc.target/riscv/amo/pr114130.c diff --git a/gcc/testsuite/gcc.target/riscv/pr89835.c b/gcc/testsuite/gcc.target/riscv/amo/pr89835.c similarity index 100% rename from gcc/testsuite/gcc.target/riscv/pr89835.c rename to gcc/testsuite/gcc.target/riscv/amo/pr89835.c From patchwork Tue Jun 11 18:03:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick O'Neill X-Patchwork-Id: 1946476 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=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=pHU97G0u; 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 4VzGlW6zGhz20Pb for ; Wed, 12 Jun 2024 04:04:23 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3F5D6385E827 for ; Tue, 11 Jun 2024 18:04:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id 7EEA8385DDF5 for ; Tue, 11 Jun 2024 18:03:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7EEA8385DDF5 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7EEA8385DDF5 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718129041; cv=none; b=BtsEDml2lHPkwg6/h1i4yWLK/sPUtpWvpbliZ1eBBw+blDX2+YaawdTOYKyk39QY/rHkR5/Xi0w4GRAwHeXEssN6Vo5A3Om+wNs+jCup3V7gHwpQoq9rRyZuvRDstxUNWrihBVPYVd47hZcrJAmJ8xqIlqbBGDlcJb0cce2BR+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718129041; c=relaxed/simple; bh=XO+zlxPpNcofffMIP0wxGp18Q8P4t6XrDjlJehGwKf0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UIueq1l73Rp83L62VePD2xXPFoatI+gd/hSkAhkaFNMbTw8AHArg39HI6Hs7hQnwHiWh7kg57Hbt4tVnIzVY8SbzNMRZIeVwbiWxi2nAvIyjVNxKfBncejL7cFA8lPPrUwO3bEs1Hku+dNwS+OkdJQAphBV7ynQrth2hDTlY9yc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-681953ad4f2so4552746a12.2 for ; Tue, 11 Jun 2024 11:03:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718129036; x=1718733836; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QSiQuSs7JyqFsb73nIjQ7fbKNZUqsU9RkJqFw9cTYSM=; b=pHU97G0uBFOP4FR7YWXWFCAf0iGFRJ5d3V0+HV/SJ4cz0vf7yhEt10HrDZbkImWsrw vRGuwbY0OynMXOVxef6AZ68ENoE0Y5Fq+yqRMV5UQNPPy8bLsf0zDjkuZB9Y/5PjB9Qa AQp4cXbFCigHQugrYaxe5AUzsndvRHlMBKz087pWBpen/IDqDQBWptYPdde5eH2yMzEB FvT3XGBZvIfzF9Cpc7HAcIkzQrVV1fhKJnpTlDf8o48ESQ+ZWir4/GT4twqRPre+n92s 9ejcAwcDrKJqTSyoGZPgTQlkU4ewVQLJuXjUtldjzA/PXEhLlG9kRjFoeE4iasEwctkw 9rOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718129036; x=1718733836; 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=QSiQuSs7JyqFsb73nIjQ7fbKNZUqsU9RkJqFw9cTYSM=; b=wYICx+9sYQhSIiUUHdZxDP54jPTYXk2aOKO6FghgVm07frLXSsMfOXN9hMhJkog8ig SdozXz0YJhaXqZTgmCqP2hQ/GBdBHG1C8r3fFUOseCRydi5WYB7tHN4GYTCef4+ri2lU TEY/xEmxK47mvYKhS3pN63mfF7srr4TNIBccndLEdl2+wZ23bg6yv5a1wlCUjgyUuRs2 zCqxsTbtKjIf6lx+FlPVYY8gQjzTTQ2RsqmNZ+66EI2AvjtlrK26z8gu498nIjLQHTS+ 3YUlRYiQfZrPMNi//R6I0rq0kR70h6PP20u7nGM0Tt8FMuYydk2+PkeoD3Bl0Siuod2o dGUw== X-Gm-Message-State: AOJu0YwitZ9ZkRdLbYnCDwYw/lzVHCwKDBp1vX29mrBcQ6Ve32tDM1Nv P1knvq6+kq3zYLX6hjfHB5UwkSFIQ+AsWGlJBI1TPqImnVPOGkZDv0wv/FSTK3+LTlhFHST4x4v P X-Google-Smtp-Source: AGHT+IGTjoasi/gPrIutPa0Ea0YYgfjo4VVnBUnahnpKZ71xJHsVso7v1tDhjJbyU63ERVyX39za0Q== X-Received: by 2002:a17:903:1cf:b0:1f6:6a94:76be with SMTP id d9443c01a7336-1f6d0377644mr163574195ad.46.1718129035280; Tue, 11 Jun 2024 11:03:55 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hq.rivosinc.com ([50.145.13.30]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd7d614dsm105631655ad.152.2024.06.11.11.03.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:03:54 -0700 (PDT) From: Patrick O'Neill To: gcc-patches@gcc.gnu.org Cc: jeffreyalaw@gmail.com, kito.cheng@gmail.com, gnu-toolchain@rivosinc.com, Patrick O'Neill Subject: [PATCH 2/3] RISC-V: Fix amoadd call arguments Date: Tue, 11 Jun 2024 11:03:41 -0700 Message-ID: <20240611180342.2420602-3-patrick@rivosinc.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240611180342.2420602-1-patrick@rivosinc.com> References: <20240611180342.2420602-1-patrick@rivosinc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SCC_10_SHORT_WORD_LINES, SCC_5_SHORT_WORD_LINES, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Update __atomic_add_fetch arguments to be a pointer and value rather than two pointers. gcc/testsuite/ChangeLog: * gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c: Update __atomic_add_fetch args. * gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c: Ditto. * gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c: Ditto. * gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c: Ditto. * gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c: Ditto. * gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c: Ditto. * gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c: Ditto. * gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c: Ditto. Signed-off-by: Patrick O'Neill --- Related: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115441 --- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c | 2 +- .../gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c | 2 +- .../gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c | 2 +- .../gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c | 2 +- .../gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c | 2 +- .../gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c | 2 +- .../gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c | 2 +- .../gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c | 2 +- .../gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c | 2 +- .../gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c | 2 +- .../gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c | 2 +- .../gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c | 2 +- gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) -- 2.34.1 diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c index 9c2ba39789a..2e53abf28aa 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-1.c @@ -10,7 +10,7 @@ ** amoadd\.w\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELAXED); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c index b7682a5bab4..14d6b7e4b1b 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-2.c @@ -10,7 +10,7 @@ ** amoadd\.w\.aq\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c index c8776872d91..937a00daf4c 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-3.c @@ -10,7 +10,7 @@ ** amoadd\.w\.rl\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELEASE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c index b37c4c3f242..7d7f4e11dd4 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-4.c @@ -10,7 +10,7 @@ ** amoadd\.w\.aqrl\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c index 8d45ca7a347..e5cf1e2e9cf 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-amo-add-5.c @@ -10,7 +10,7 @@ ** amoadd\.w\.aqrl\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c index 4174fdee352..348b9c8db9c 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-1.c @@ -4,7 +4,7 @@ /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELAXED); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c index 4c06c90b558..31011580684 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-2.c @@ -4,7 +4,7 @@ /* { dg-final { scan-assembler-times "lr.w.aq\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c index 7e791c901b6..38bedcd6b41 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-3.c @@ -4,7 +4,7 @@ /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELEASE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c index 76f3be27110..d69610e2d9e 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-4.c @@ -4,7 +4,7 @@ /* { dg-final { scan-assembler-times "lr.w.aq\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c index 8dbfa9c4fc8..976f8909bdd 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-subword-amo-add-5.c @@ -4,7 +4,7 @@ /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c index 82169390925..000407a2583 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-1.c @@ -11,7 +11,7 @@ ** amoadd\.w\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELAXED); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c index a238c6f4403..3e441cadbf3 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-2.c @@ -11,7 +11,7 @@ ** amoadd\.w\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c index c97bf467c63..8af1a2f79a4 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-3.c @@ -11,7 +11,7 @@ ** amoadd\.w\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELEASE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c index 14e632ba2f2..0b3a7e59689 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-4.c @@ -11,7 +11,7 @@ ** amoadd\.w\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c index 74d8df99ddc..f189827d6cf 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-amo-add-5.c @@ -11,7 +11,7 @@ ** amoadd\.w\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c index 5c0a8b8f6e9..a44d6980ece 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-1.c @@ -5,7 +5,7 @@ /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELAXED); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c index 551078186ec..8d28569c79c 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-2.c @@ -5,7 +5,7 @@ /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c index 5f0f7870721..fb803ab9cbf 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-3.c @@ -5,7 +5,7 @@ /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELEASE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c index 24f4f02dcea..a88e409063a 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-4.c @@ -5,7 +5,7 @@ /* { dg-final { scan-assembler-times "lr.w\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c index 405e498fb40..d851e5e5944 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-subword-amo-add-5.c @@ -5,7 +5,7 @@ /* { dg-final { scan-assembler-times "lr.w.aqrl\t" 1 } } */ /* { dg-final { scan-assembler-times "sc.w.rl\t" 1 } } */ -void foo (short* bar, short* baz) +void foo (short* bar, short baz) { __atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c index 1c124c2b8b1..dae30c32e01 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zaamo-preferred-over-zalrsc.c @@ -11,7 +11,7 @@ ** amoadd\.w\tzero,a1,0\(a0\) ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELAXED); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c index 3fa74332433..49c1a181d69 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-1.c @@ -13,7 +13,7 @@ ** bnez\t[atx][0-9]+, 1b ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELAXED); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c index af0a2d50d38..af93c9a182b 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-2.c @@ -13,7 +13,7 @@ ** bnez\t[atx][0-9]+, 1b ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQUIRE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c index 521869b2165..ce68af841ea 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-3.c @@ -13,7 +13,7 @@ ** bnez\t[atx][0-9]+, 1b ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_RELEASE); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c index 8b6e7579f6f..be9f847782e 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-4.c @@ -13,7 +13,7 @@ ** bnez\t[atx][0-9]+, 1b ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_ACQ_REL); } diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c index 0bdc47d5c46..b31170c15db 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-zalrsc-amo-add-5.c @@ -13,7 +13,7 @@ ** bnez\t[atx][0-9]+, 1b ** ret */ -void foo (int* bar, int* baz) +void foo (int* bar, int baz) { __atomic_add_fetch(bar, baz, __ATOMIC_SEQ_CST); } From patchwork Tue Jun 11 18:03:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick O'Neill X-Patchwork-Id: 1946478 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=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=VXaH7JzW; 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 4VzGmm2HBPz1ydW for ; Wed, 12 Jun 2024 04:05:28 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 94C16385E836 for ; Tue, 11 Jun 2024 18:05:26 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 4B57F385DDE3 for ; Tue, 11 Jun 2024 18:03:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4B57F385DDE3 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4B57F385DDE3 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718129042; cv=none; b=Dc9jbLTc1Q7gxpBrE/++9dm914J89CnkSittmxYbtyo4agYZwXoPwwvuIAWknwquoxZpvISvITLz57WTk7fV5h7rn8zF2QYWRty1UJ7y97HnDDwvPIzs3B+2pUIyhvqSG7+ey2ZvPoDV5drmsQv3RQnSQqR00Rq1hEvf5txnJFw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718129042; c=relaxed/simple; bh=3DyNOLbwgrese2u6XR9gU6oBkgI55l2MMQFY9vHyjZo=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RJ2KzwNKAzkLO7lDZatMEVEgTrbeSEp/KJ5wjmmaCNZA4wfzwtbg90nmib+b2ju8tH/LpiT3YRQgarwQ3uVsrmSjHq+/WOJJy2yH5HRoC/ExeNe3TsGFqm+NwspCtIzSjWFoL19sL3vpX6z5wKuC67xvaYp1V6fo2dc9IeFRuos= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1f6559668e1so10584105ad.3 for ; Tue, 11 Jun 2024 11:03:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1718129037; x=1718733837; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1KJ0GSUQMxb6uXa8WGWl6+jZN6NyVHTRlb7hW8t8UI8=; b=VXaH7JzWluO7Em/yQqloypU7IWaFaJpaYxq/ILTNOJq7F6kXExu1oltCjR3JIRmafI yRZ1kD6hcDy4NNIv191XUZK26tLQodoyZd+xFaOEaSbKR8JuHnGPkUa0YqQFE+cyjFCP hOIDNzZXs3kk/K3G3XDHemOavRtnIam8yGT+O+JqgCZJ5nfuXnN+mirVfURyi//46rO4 55bEUyN2LAkY2Gg0kfCESj7Ac4qLvYc9YtOtw41sfI6qDwYx43XN3UoPBBmicAbdOJHL VFPYl5EnVlUjbBGDDeFlT1qALsF797Upl4Qm6bCO+Zb5z94n4CEX6uM6ACxuKdh/zbSY 2NSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718129037; x=1718733837; 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=1KJ0GSUQMxb6uXa8WGWl6+jZN6NyVHTRlb7hW8t8UI8=; b=D+wyYHbbVH0S6pK1CYW0EOjjPFURynTzJX/OBW7egyrUXQTVSdDiEjxBaI4tcZF+z4 irliZtm/2U2AKBGCtmtbV5tREbjmMbykUeA5XzgVx4t9jGa/WeMCPZbRClOMmq0P/KQ/ S5AvAmi+Os5ItsNLKl8EzWQEfWm3vE3KURSccTmSH8T26Ea2XYpf6n7kNSv8E3Xo6IPu ddjfDNVeee5eSA3xoQg0/Hb0qRXJ6Ata8xBJwM7u/VHK2Lmi3eeyzESZvlNGLqBCKJAS VDvd2K5a9XMGvcwk4TuwCDI9dsTLTPUu/JL4pwEe+ZChZl0eFJueeDrf8utBABgL6sqm TiRg== X-Gm-Message-State: AOJu0YySQA/qPVI9MYQE1N8vFVLdkjMIBI/9xpNZCj/Uv2TRrjEJQlBx SXkoUvIkTrapDzEWu5OVVz1zcw0UC3SDWcKz3kGKaymttfqWvSL9MQYW/RTTvADhANJXi0gdg0p K X-Google-Smtp-Source: AGHT+IEP6+YMk0XlqtTmSVYMy0qqPvVRHHNAkiJoyMi697hz60195Wkh/ncDtUWstckpZns3f3g6DQ== X-Received: by 2002:a17:902:da81:b0:1f7:c33:aa85 with SMTP id d9443c01a7336-1f70c33adeemr79733115ad.44.1718129036618; Tue, 11 Jun 2024 11:03:56 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hq.rivosinc.com ([50.145.13.30]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f6bd7d614dsm105631655ad.152.2024.06.11.11.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 11:03:56 -0700 (PDT) From: Patrick O'Neill To: gcc-patches@gcc.gnu.org Cc: jeffreyalaw@gmail.com, kito.cheng@gmail.com, gnu-toolchain@rivosinc.com, Patrick O'Neill Subject: [PATCH 3/3] RISC-V: Allow any temp register to be used in amo tests Date: Tue, 11 Jun 2024 11:03:42 -0700 Message-ID: <20240611180342.2420602-4-patrick@rivosinc.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240611180342.2420602-1-patrick@rivosinc.com> References: <20240611180342.2420602-1-patrick@rivosinc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, 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: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org We artifically restrict the temp registers to be a[0-9]+ when other registers like t[0-9]+ are valid too. Update to make the regex accept any register for the temp value. gcc/testsuite/ChangeLog: * gcc.target/riscv/amo/amo-table-a-6-load-1.c: Update temp register regex. * gcc.target/riscv/amo/amo-table-a-6-load-2.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-load-3.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-store-1.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-store-2.c: Ditto. * gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-load-1.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-load-2.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-load-3.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-store-1.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-store-2.c: Ditto. * gcc.target/riscv/amo/amo-table-ztso-store-3.c: Ditto. Signed-off-by: Patrick O'Neill --- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-1.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-2.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-3.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-1.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-2.c | 4 ++-- .../gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-1.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-2.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-3.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-1.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-2.c | 4 ++-- gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-3.c | 4 ++-- 12 files changed, 24 insertions(+), 24 deletions(-) -- 2.34.1 diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-1.c index 3c79035e46d..53dd5234452 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-1.c @@ -6,8 +6,8 @@ /* ** foo: -** lw\ta[0-9]+,0\(a0\) -** sw\ta[0-9]+,0\(a1\) +** lw\t[atx][0-9]+,0\(a0\) +** sw\t[atx][0-9]+,0\(a1\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-2.c index 7d74841846f..dda0f541515 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-2.c @@ -6,9 +6,9 @@ /* ** foo: -** lw\ta[0-9]+,0\(a0\) +** lw\t[atx][0-9]+,0\(a0\) ** fence\tr,rw -** sw\ta[0-9]+,0\(a1\) +** sw\t[atx][0-9]+,0\(a1\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-3.c index ab95fa660d2..3279557fa4a 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-load-3.c @@ -7,9 +7,9 @@ /* ** foo: ** fence\trw,rw -** lw\ta[0-9]+,0\(a0\) +** lw\t[atx][0-9]+,0\(a0\) ** fence\tr,rw -** sw\ta[0-9]+,0\(a1\) +** sw\t[atx][0-9]+,0\(a1\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-1.c index d852fddf03d..6b05429520b 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-1.c @@ -6,8 +6,8 @@ /* ** foo: -** lw\ta[0-9]+,0\(a1\) -** sw\ta[0-9]+,0\(a0\) +** lw\t[atx][0-9]+,0\(a1\) +** sw\t[atx][0-9]+,0\(a0\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-2.c index ccb5e2af7cc..1ad7dede931 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-2.c @@ -6,9 +6,9 @@ /* ** foo: -** lw\ta[0-9]+,0\(a1\) +** lw\t[atx][0-9]+,0\(a1\) ** fence\trw,w -** sw\ta[0-9]+,0\(a0\) +** sw\t[atx][0-9]+,0\(a0\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c index 761889f18cf..b16b2058413 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-a-6-store-compat-3.c @@ -6,9 +6,9 @@ /* ** foo: -** lw\ta[0-9]+,0\(a1\) +** lw\t[atx][0-9]+,0\(a1\) ** fence\trw,w -** sw\ta[0-9]+,0\(a0\) +** sw\t[atx][0-9]+,0\(a0\) ** fence\trw,rw ** ret */ diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-1.c index 631977985bd..ebb0a2e1d38 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-1.c @@ -7,8 +7,8 @@ /* ** foo: -** lw\ta[0-9]+,0\(a0\) -** sw\ta[0-9]+,0\(a1\) +** lw\t[atx][0-9]+,0\(a0\) +** sw\t[atx][0-9]+,0\(a1\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-2.c index 2c24f10fb44..c88c4be5aea 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-2.c @@ -7,8 +7,8 @@ /* ** foo: -** lw\ta[0-9]+,0\(a0\) -** sw\ta[0-9]+,0\(a1\) +** lw\t[atx][0-9]+,0\(a0\) +** sw\t[atx][0-9]+,0\(a1\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-3.c index 7d2166d29c0..8713729c378 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-load-3.c @@ -8,8 +8,8 @@ /* ** foo: ** fence\trw,rw -** lw\ta[0-9]+,0\(a0\) -** sw\ta[0-9]+,0\(a1\) +** lw\t[atx][0-9]+,0\(a0\) +** sw\t[atx][0-9]+,0\(a1\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-1.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-1.c index 29a770285ef..ca8d5ed7515 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-1.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-1.c @@ -7,8 +7,8 @@ /* ** foo: -** lw\ta[0-9]+,0\(a1\) -** sw\ta[0-9]+,0\(a0\) +** lw\t[atx][0-9]+,0\(a1\) +** sw\t[atx][0-9]+,0\(a0\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-2.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-2.c index fb82360ad33..23957198cfb 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-2.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-2.c @@ -7,8 +7,8 @@ /* ** foo: -** lw\ta[0-9]+,0\(a1\) -** sw\ta[0-9]+,0\(a0\) +** lw\t[atx][0-9]+,0\(a1\) +** sw\t[atx][0-9]+,0\(a0\) ** ret */ void foo (int* bar, int* baz) diff --git a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-3.c b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-3.c index 88d8432d8c9..11c12f0ca1a 100644 --- a/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-3.c +++ b/gcc/testsuite/gcc.target/riscv/amo/amo-table-ztso-store-3.c @@ -7,8 +7,8 @@ /* ** foo: -** lw\ta[0-9]+,0\(a1\) -** sw\ta[0-9]+,0\(a0\) +** lw\t[atx][0-9]+,0\(a1\) +** sw\t[atx][0-9]+,0\(a0\) ** fence\trw,rw ** ret */