https://github.com/yetingk created https://github.com/llvm/llvm-project/pull/91324
PR #89727 added the two test cases to verify `.option arch` should only work when having -menable-experimental-extensions. And the test idea could be splitted to 1. When having menable-experimental-extensions, clang passes +experimental. 2. `.option arch` only enabled when +experimental enabled. And we already had the two kind of tests. >From fa7808f0b05395dbcb5515f7f6752c6fe81e342a Mon Sep 17 00:00:00 2001 From: Yeting Kuo <yeting....@sifive.com> Date: Tue, 7 May 2024 05:56:12 -0700 Subject: [PATCH] [RISCV][NFC] Remove redundant test cases. PR #89727 added the two test cases to verify `.option arch` should only work when having -menable-experimental-extensions. And the test idea could be splitted to 1. When having menable-experimental-extensions, clang passes +experimental. 2. `.option arch` only enabled when +experimental enabled. And we already had the two kind of test. --- clang/test/Driver/riscv-option-arch.c | 8 -------- clang/test/Driver/riscv-option-arch.s | 6 ------ 2 files changed, 14 deletions(-) delete mode 100644 clang/test/Driver/riscv-option-arch.c delete mode 100644 clang/test/Driver/riscv-option-arch.s diff --git a/clang/test/Driver/riscv-option-arch.c b/clang/test/Driver/riscv-option-arch.c deleted file mode 100644 index 9f0e037cd12e0..0000000000000 --- a/clang/test/Driver/riscv-option-arch.c +++ /dev/null @@ -1,8 +0,0 @@ -// REQUIRES: riscv-registered-target -// RUN: %clang --target=riscv64 -menable-experimental-extensions -c -o /dev/null %s -// RUN: ! %clang --target=riscv64 -c -o /dev/null %s 2>&1 | FileCheck -check-prefixes=CHECK-ERR %s - -void foo() { - asm volatile (".option arch, +zicfiss"); - // CHECK-ERR: Unexpected experimental extensions. -} diff --git a/clang/test/Driver/riscv-option-arch.s b/clang/test/Driver/riscv-option-arch.s deleted file mode 100644 index c4ca4aa459ce2..0000000000000 --- a/clang/test/Driver/riscv-option-arch.s +++ /dev/null @@ -1,6 +0,0 @@ -# REQUIRES: riscv-registered-target -# RUN: %clang --target=riscv64 -menable-experimental-extensions -c -o /dev/null %s -# RUN: ! %clang --target=riscv64 -c -o /dev/null %s 2>&1 | FileCheck -check-prefixes=CHECK-ERR %s - -.option arch, +zicfiss -# CHECK-ERR: Unexpected experimental extensions. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits