1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[PowerPC][PC Rel] Implement option to omit Power10 instructions from stubs

Implemented the option to omit Power10 instructions from save stubs via the
option --no-power10-stubs or --power10-stubs=no on lld. --power10-stubs= will
override the other option. --power10-stubs=auto also exists to use the default
behaviour (ie allow Power10 instructions in stubs).

Differential Revision: https://reviews.llvm.org/D94627
This commit is contained in:
Albion Fung 2021-03-04 13:17:40 -05:00 committed by Albion Fung
parent f757e28e37
commit b3f28bf8f5

View File

@ -87,6 +87,9 @@ static inline Error createError(const Twine &Err) {
enum PPCInstrMasks : uint64_t {
PADDI_R12_NO_DISP = 0x0610000039800000,
ADDIS_R12_TO_R2_NO_DISP = 0x3D820000,
ADDI_R12_TO_R2_NO_DISP = 0x39820000,
ADDI_R12_TO_R12_NO_DISP = 0x398C0000,
PLD_R12_NO_DISP = 0x04100000E5800000,
MTCTR_R12 = 0x7D8903A6,
BCTR = 0x4E800420,