[clang] 1318230 - [RISCV][NFC] Remove redundant test cases. (#91324)

via cfe-commits cfe-commits at lists.llvm.org
Tue May 7 09:40:21 PDT 2024


Author: Yeting Kuo
Date: 2024-05-08T00:40:18+08:00
New Revision: 1318230587c30acb82324f851734a40341847a50

URL: https://github.com/llvm/llvm-project/commit/1318230587c30acb82324f851734a40341847a50
DIFF: https://github.com/llvm/llvm-project/commit/1318230587c30acb82324f851734a40341847a50.diff

LOG: [RISCV][NFC] Remove redundant test cases. (#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.

Added: 
    

Modified: 
    

Removed: 
    clang/test/Driver/riscv-option-arch.c
    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 9f0e037cd12e01..00000000000000
--- 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 c4ca4aa459ce2e..00000000000000
--- 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.


        


More information about the cfe-commits mailing list