[PATCH] D120926: [Mips] support "sp" named register

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 11:24:08 PST 2022


nickdesaulniers created this revision.
nickdesaulniers added reviewers: atanasyan, sstankovic, vmedic, dsanders.
Herald added subscribers: jrtc27, hiraditya, arichardson, sdardis.
Herald added a project: All.
nickdesaulniers requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

After Linux kernel commit
commit 200ed341b864 ("mips: Implement "current_stack_pointer"")
We observe the following build error when compiling the Linux kernel
targeting Mips:
fatal error: error in backend: Invalid register name global variable

Fixes: https://github.com/llvm/llvm-project/issues/54174
Link: https://github.com/ClangBuiltLinux/linux/issues/1608


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120926

Files:
  llvm/lib/Target/Mips/MipsISelLowering.cpp
  llvm/test/CodeGen/Mips/named-register-n32.ll
  llvm/test/CodeGen/Mips/named-register-n64.ll
  llvm/test/CodeGen/Mips/named-register-o32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120926.412783.patch
Type: text/x-patch
Size: 5150 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220303/0eae4d23/attachment.bin>


More information about the llvm-commits mailing list