[clang] [CIR][RISCV] Support XCValu builtins (PR #204935)

Sirui Mu via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 26 05:30:26 PDT 2026


================
@@ -0,0 +1,183 @@
+// RUN: %clang_cc1 -triple riscv32 -target-feature +xcvalu -fclangir -emit-cir %s -o - | FileCheck %s --check-prefix=CIR
+// RUN: %clang_cc1 -triple riscv32 -target-feature +xcvalu -fclangir -emit-llvm %s -o - | FileCheck %s --check-prefix=LLVM
+// RUN: %clang_cc1 -triple riscv32 -target-feature +xcvalu -emit-llvm %s -o - | FileCheck %s --check-prefix=OGCG
----------------
Lancern wrote:

It looks like that LLVM and OGCG checks in this file are all identical.

```suggestion
// RUN: %clang_cc1 -triple riscv32 -target-feature +xcvalu -emit-llvm %s -o - | FileCheck %s --check-prefix=LLVM
```

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


More information about the cfe-commits mailing list