Skip to content

[AArch64] Correct defs and uses on {PAC,AUT}I{A,B}171615 #123354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

kbeyls
Copy link
Collaborator

@kbeyls kbeyls commented Jan 17, 2025

I'm not adding tests for this, as I don't think we usually have tests to verify correct description of defs and uses in instructions?

This fix will be tested when #122304 lands, as one of the regression tests in that PR fails without this fix.

I'm not adding tests for this, as I don't think we usually have tests to verify
correct description of defs and uses in instructions?

This fix will be tested when llvm#122304 lands, as one of the regression tests in
that PR fails without this fix.
@llvmbot
Copy link
Member

llvmbot commented Jan 17, 2025

@llvm/pr-subscribers-backend-aarch64

Author: Kristof Beyls (kbeyls)

Changes

I'm not adding tests for this, as I don't think we usually have tests to verify correct description of defs and uses in instructions?

This fix will be tested when #122304 lands, as one of the regression tests in that PR fails without this fix.


Full diff: https://github.com/llvm/llvm-project/pull/123354.diff

1 Files Affected:

  • (modified) llvm/lib/Target/AArch64/AArch64InstrInfo.td (+2)
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.td b/llvm/lib/Target/AArch64/AArch64InstrInfo.td
index 8215f3a4fdae1e..40a6b8e4c8e640 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.td
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.td
@@ -2030,6 +2030,8 @@ let Predicates = [HasPAuthLR] in {
     //                              opcode2, opcode,   asm
     def AUTIASPPCr : SignAuthOneReg<0b00001, 0b100100, "autiasppcr">;
     def AUTIBSPPCr : SignAuthOneReg<0b00001, 0b100101, "autibsppcr">;
+  }
+  let Defs = [X17], Uses = [X15, X16, X17] in {
     //                                  opcode2, opcode,   asm
     def PACIA171615 : SignAuthFixedRegs<0b00001, 0b100010, "pacia171615">;
     def PACIB171615 : SignAuthFixedRegs<0b00001, 0b100011, "pacib171615">;

Copy link
Contributor

@tmatheson-arm tmatheson-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for catching this.

@kbeyls kbeyls merged commit 10cfd54 into llvm:main Jan 18, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants