On AIX, the system assembler does not support the extended mnemonics
dcbtt and dcbtstt. This patch stops them from being emitted on
AIX and emits the base mnemonics instead, dcbt X, X, 16 and
dcbtstt X, X, 16 respectively.
Details
Details
- Reviewers
nemanjai jsji - Group Reviewers
Restricted Project - Commits
- rGb4b9f9b4b3cf: [PowerPC] Emit dcbt and dcbtst in place of their extended mnemonics on AIX
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
1,520 ms | x64 debian > AddressSanitizer-x86_64-linux.TestCases::strcmp.c |
Event Timeline
Comment Actions
Thanks for working on this.
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp | ||
---|---|---|
161 | What do you mean by still requires dcbtt and dcbtstt implementation? | |
164 | I think it is better to use the same condition as ModernAs Predicate , so that we may be able to enable it with feature bit if needed. (!TT.isOSAIX() || STI.getFeatureBits()[PPC::HasModernAIXAs]) |
Comment Actions
Please change the condition as Jinsong suggested and change the leading comment to:
// On AIX, only emit the extended mnemonics for dcbt and dcbtst if // the "modern assembler" is available.
Comment Actions
LGTM. This is already approved, but just wanted to indicate that I think the comments were addressed adequately.
What do you mean by still requires dcbtt and dcbtstt implementation?