Skip to content

Commit 21279d3

Browse files
committed
[BOLT] Add all PSign/PAuth variants
1 parent fd75099 commit 21279d3

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
@@ -896,10 +896,28 @@ class AArch64MCPlusBuilder : public MCPlusBuilder {
896896
return false;
897897
}
898898
bool isPAuth(MCInst &Inst) const override {
899-
return Inst.getOpcode() == AArch64::AUTIASP;
899+
return Inst.getOpcode() == AArch64::AUTIA ||
900+
Inst.getOpcode() == AArch64::AUTIB ||
901+
Inst.getOpcode() == AArch64::AUTIA1716 ||
902+
Inst.getOpcode() == AArch64::AUTIB1716 ||
903+
Inst.getOpcode() == AArch64::AUTIASP ||
904+
Inst.getOpcode() == AArch64::AUTIBSP ||
905+
Inst.getOpcode() == AArch64::AUTIAZ ||
906+
Inst.getOpcode() == AArch64::AUTIBZ ||
907+
Inst.getOpcode() == AArch64::AUTIZA ||
908+
Inst.getOpcode() == AArch64::AUTIZB;
900909
}
901910
bool isPSign(MCInst &Inst) const override {
902-
return Inst.getOpcode() == AArch64::PACIASP;
911+
return Inst.getOpcode() == AArch64::PACIA ||
912+
Inst.getOpcode() == AArch64::PACIB ||
913+
Inst.getOpcode() == AArch64::PACIA1716 ||
914+
Inst.getOpcode() == AArch64::PACIB1716 ||
915+
Inst.getOpcode() == AArch64::PACIASP ||
916+
Inst.getOpcode() == AArch64::PACIBSP ||
917+
Inst.getOpcode() == AArch64::PACIAZ ||
918+
Inst.getOpcode() == AArch64::PACIBZ ||
919+
Inst.getOpcode() == AArch64::PACIZA ||
920+
Inst.getOpcode() == AArch64::PACIZB;
903921
}
904922

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

0 commit comments

Comments
 (0)