Skip to content

Commit 632ca76

Browse files
committed
[BOLT] Add all PSign/PAuth variants
1 parent cea4801 commit 632ca76

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,10 +905,28 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
905905
return false;
906906
}
907907
bool isPAuth(MCInst &Inst) const override {
908-
return Inst.getOpcode() == AArch64::AUTIASP;
908+
return Inst.getOpcode() == AArch64::AUTIA ||
909+
Inst.getOpcode() == AArch64::AUTIB ||
910+
Inst.getOpcode() == AArch64::AUTIA1716 ||
911+
Inst.getOpcode() == AArch64::AUTIB1716 ||
912+
Inst.getOpcode() == AArch64::AUTIASP ||
913+
Inst.getOpcode() == AArch64::AUTIBSP ||
914+
Inst.getOpcode() == AArch64::AUTIAZ ||
915+
Inst.getOpcode() == AArch64::AUTIBZ ||
916+
Inst.getOpcode() == AArch64::AUTIZA ||
917+
Inst.getOpcode() == AArch64::AUTIZB;
909918
}
910919
bool isPSign(MCInst &Inst) const override {
911-
return Inst.getOpcode() == AArch64::PACIASP;
920+
return Inst.getOpcode() == AArch64::PACIA ||
921+
Inst.getOpcode() == AArch64::PACIB ||
922+
Inst.getOpcode() == AArch64::PACIA1716 ||
923+
Inst.getOpcode() == AArch64::PACIB1716 ||
924+
Inst.getOpcode() == AArch64::PACIASP ||
925+
Inst.getOpcode() == AArch64::PACIBSP ||
926+
Inst.getOpcode() == AArch64::PACIAZ ||
927+
Inst.getOpcode() == AArch64::PACIBZ ||
928+
Inst.getOpcode() == AArch64::PACIZA ||
929+
Inst.getOpcode() == AArch64::PACIZB;
912930
}
913931

914932
bool isRegToRegMove(const MCInst &Inst, MCPhysReg &From,

0 commit comments

Comments
 (0)