From 87a420a45902c76ae05959a6c661a82da98b25bf Mon Sep 17 00:00:00 2001 From: Mezone <20496112+Mez0ne@users.noreply.github.com> Date: Sun, 8 Sep 2024 19:18:26 +0800 Subject: [PATCH] update Mips CPU to Mips r6 --- llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp index 23299c58..71aa939a 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp @@ -44,9 +44,9 @@ using namespace llvm_ks; StringRef MIPS_MC::selectMipsCPU(const Triple &TT, StringRef CPU) { if (CPU.empty() || CPU == "generic") { if (TT.getArch() == Triple::mips || TT.getArch() == Triple::mipsel) - CPU = "mips32"; + CPU = "mips32r6"; else - CPU = "mips64"; + CPU = "mips64r6"; } return CPU; }