diff options
author | Xi Ruoyao <xry111@xry111.site> | 2022-06-28 16:00:14 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2022-06-28 19:04:44 +0800 |
commit | 8e230a3c02641792d87252bff7f7554e46da2c25 (patch) | |
tree | 3d93ffe10e3a6940a5bd5fd797de458b506d93b5 /libgomp | |
parent | 81c832f9d552b50274c51fbefadf5a38c0d60e8e (diff) |
loongarch: exclude LARCH_PROLOGUE_TEMP from SIBCALL_REGS [PR 106096]
The epilogue may clobber LARCH_PROLOGUE_TEMP ($r13/$t1), so it cannot be
used for sibcalls.
gcc/ChangeLog:
PR target/106096
* config/loongarch/loongarch.h (REG_CLASS_CONTENTS): Exclude
$r13 from SIBCALL_REGS.
* config/loongarch/loongarch.cc (loongarch_regno_to_class):
Change $r13 to JIRL_REGS.
gcc/testsuite/ChangeLog:
PR target/106096
* g++.target/loongarch/loongarch.exp: New test support file.
* g++.target/loongarch/pr106096.C: New test.
(cherry picked from commit 020b7d98589bbc928b5a66b1ed56b42af8791355)
Diffstat (limited to 'libgomp')
0 files changed, 0 insertions, 0 deletions