[PowerPC] Emit dcbt and dcbtst in place of their extended mnemonics on AIX
authorAlbion Fung <albionapc@gmail.com>
Tue, 12 Oct 2021 20:47:44 +0000 (15:47 -0500)
committerAlbion Fung <albionapc@gmail.com>
Tue, 12 Oct 2021 20:47:57 +0000 (15:47 -0500)
commitb4b9f9b4b3cfaad369ad96dfbcdf43f73de4430b
tree12fe17e0bf57d9c9de599f6eaf780a13b305e233
parent2815ed57e3c99ab6c42399c3d0cf57cc118eb5df
[PowerPC] Emit dcbt and dcbtst in place of their extended mnemonics on AIX

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.

Differential revision: https://reviews.llvm.org/D111258
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-prefetch.ll