================ @@ -1763,10 +1823,14 @@ void X86TargetInfo::fillValidTuneCPUList(SmallVectorImpl<StringRef> &Values) con } ArrayRef<const char *> X86TargetInfo::getGCCRegNames() const { + if (HasEGPR) + return llvm::ArrayRef(ExtendedGCCRegNames); return llvm::ArrayRef(GCCRegNames); ---------------- FreddyLeaf wrote:
I noticed gcc did so. it reports error without -mapxf when compiling `r16`. reasonable to me. https://github.com/llvm/llvm-project/pull/91323 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits