[llvm] [RISCV] Fix typo zamo -> zaamo (PR #93792)

Jerry Zhang Jian via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 02:32:46 PDT 2024


https://github.com/jerryzj updated https://github.com/llvm/llvm-project/pull/93792

>From 766f4f60b844a287de90f748998bdb365eae69a8 Mon Sep 17 00:00:00 2001
From: Jerry Zhang Jian <jerryzj at users.noreply.github.com>
Date: Thu, 30 May 2024 17:29:22 +0800
Subject: [PATCH] [RISCV] Fix typo zamo -> zaamo

- The extension name should be zaamo

Signed-off-by: Jerry Zhang Jian <jerry.zhangjian at sifive.com>
---
 llvm/lib/TargetParser/RISCVISAInfo.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/TargetParser/RISCVISAInfo.cpp b/llvm/lib/TargetParser/RISCVISAInfo.cpp
index 01d0c71c25a92..4e0d07d39f9ba 100644
--- a/llvm/lib/TargetParser/RISCVISAInfo.cpp
+++ b/llvm/lib/TargetParser/RISCVISAInfo.cpp
@@ -839,12 +839,12 @@ Error RISCVISAInfo::checkDependency() {
     return createStringError(errc::invalid_argument,
                              "'zcf' is only supported for 'rv32'");
 
-  if (Exts.count("zacas") && !(Exts.count("a") || Exts.count("zamo")))
+  if (Exts.count("zacas") && !(Exts.count("a") || Exts.count("zaamo")))
     return createStringError(
         errc::invalid_argument,
         "'zacas' requires 'a' or 'zaamo' extension to also be specified");
 
-  if (Exts.count("zabha") && !(Exts.count("a") || Exts.count("zamo")))
+  if (Exts.count("zabha") && !(Exts.count("a") || Exts.count("zaamo")))
     return createStringError(
         errc::invalid_argument,
         "'zabha' requires 'a' or 'zaamo' extension to also be specified");



More information about the llvm-commits mailing list