-
由 Hongchen Zhang 提交于
LoongArch inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5OHOB -------------------------------- From gcc commit 3f13154553f8 ("df-scan: remove ad-hoc handling of global regs in asms"), global registers will no longer be forced to add to the def-use chain for the following inline asm : __asm("" : "=r"(a) : "0"(c)); /* the case for RELOC_HIDE */ __asm("" : "=r"(b)); So we change to use $r21 $tp $sp as local registers,this way they can be forced to add to the def-use chain. Signed-off-by: NHongchen Zhang <zhanghongchen@loongson.cn> Signed-off-by: NXing Li <lixing@loongson.cn> Change-Id: I8ab88684ba8093f5ab84dec837d10594128ee16b
06a2c55f