[llvm] [clang] [RISCV] Add Ssqosid support to -march. (PR #80747)

Yingwei Zheng via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 5 19:56:38 PST 2024


================
@@ -1612,6 +1613,14 @@
 // RUN:   -o - | FileCheck --check-prefix=CHECK-SUPM-EXT %s
 // CHECK-SUPM-EXT: __riscv_supm 8000{{$}}
 
+// RUN: %clang --target=riscv32 -menable-experimental-extensions \
+// RUN:   -march=rv32i_ssqosid1p0 -E -dM %s \
+// RUN:   -o - | FileCheck --check-prefix=CHECK-SSQOSID-EXT %s
+// RUN: %clang --target=riscv64 \
+// RUN:   -march=rv64i_ssqosid1p0 -E -dM %s -menable-experimental-extensions \
----------------
dtcxzyw wrote:

It is required for clang when using experimental RISC-V extensions.
> def menable_experimental_extensions : Flag<["-"], "menable-experimental-extensions">, Group<m_Group>,
  HelpText<"Enable use of experimental RISC-V extensions.">;


https://github.com/llvm/llvm-project/pull/80747


More information about the cfe-commits mailing list