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