[all-commits] [llvm/llvm-project] 0bbf3d: [Clang][LoongArch] Add GPR alias handling without ...
Lu Weining via All-commits
all-commits at lists.llvm.org
Fri May 12 22:20:43 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0bbf3ddf5fea86e0eb0726142827e175aadaf53b
https://github.com/llvm/llvm-project/commit/0bbf3ddf5fea86e0eb0726142827e175aadaf53b
Author: Weining Lu <luweining at loongson.cn>
Date: 2023-05-13 (Sat, 13 May 2023)
Changed paths:
M clang/lib/Basic/Targets/LoongArch.cpp
M clang/test/CodeGen/LoongArch/inline-asm-gcc-regs-error.c
M clang/test/CodeGen/LoongArch/inline-asm-gcc-regs.c
Log Message:
-----------
[Clang][LoongArch] Add GPR alias handling without `$` prefix
Currenlty there is a mismatch between LoongArch gcc and clang about
handling register name in inlineasm, i.e. gcc allows both `$`-prefixed
and non-prefiexed names for GPRs while clang only allows `$`-prefixed
one. This patch fixes this mismatch by adding non-prefixed GPR names
in clang.
Take `$r4` for example. With this patch, clang accepts `$r4`, `r4`,
`$a0` and `a0` like what gcc does.
Reviewed By: xen0n
Differential Revision: https://reviews.llvm.org/D136436
More information about the All-commits
mailing list