[llvm] [RISCV] Add initial assembler/MC layer support for big-endian (PR #146534)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 30 08:45:50 PDT 2025


================
@@ -496,7 +496,8 @@ static ShadowMapping getShadowMapping(const Triple &TargetTriple, int LongSize,
   bool IsAArch64 = TargetTriple.getArch() == Triple::aarch64 ||
                    TargetTriple.getArch() == Triple::aarch64_be;
   bool IsLoongArch64 = TargetTriple.isLoongArch64();
-  bool IsRISCV64 = TargetTriple.getArch() == Triple::riscv64;
+  bool IsRISCV64 = TargetTriple.getArch() == Triple::riscv64 ||
+                   TargetTriple.getArch() == Triple::riscv64be;
----------------
lenary wrote:

Given you're not aiming to do codegen yet, maybe this change should wait for a later patch when it can be tested?

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


More information about the llvm-commits mailing list