[PATCH] D94282: [PowerPC] Support ppc-asm-full-reg-names for AIX
Qiu Chaofan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 7 19:14:26 PST 2021
qiucf created this revision.
qiucf added reviewers: PowerPC, nemanjai, steven.zhang, jsji, joerg.
Herald added subscribers: shchenz, kbarton, hiraditya.
qiucf requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This restriction was introduced in D39016 <https://reviews.llvm.org/D39016>.
https://reviews.llvm.org/D94282
Files:
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
llvm/test/CodeGen/PowerPC/reg-names.ll
Index: llvm/test/CodeGen/PowerPC/reg-names.ll
===================================================================
--- llvm/test/CodeGen/PowerPC/reg-names.ll
+++ llvm/test/CodeGen/PowerPC/reg-names.ll
@@ -1,5 +1,6 @@
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -ppc-asm-full-reg-names < %s | FileCheck -check-prefix=CHECK-FN %s
+; RUN: llc -verify-machineinstrs -mtriple=powerpc64-ibm-aix-xcoff -ppc-asm-full-reg-names < %s | FileCheck -check-prefix=CHECK-FN %s
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu -ppc-reg-with-percent-prefix < %s | FileCheck -check-prefix=CHECK-PN %s
define i64 @test1(i64 %a, i64 %b) {
Index: llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
===================================================================
--- llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
+++ llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
@@ -596,8 +596,6 @@
// showRegistersWithPrefix - This method determines whether registers
// should be number-only or include the prefix.
bool PPCInstPrinter::showRegistersWithPrefix() const {
- if (TT.getOS() == Triple::AIX)
- return false;
return TT.isOSDarwin() || FullRegNamesWithPercent || FullRegNames;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94282.315287.patch
Type: text/x-patch
Size: 1336 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210108/a1593c8b/attachment.bin>
More information about the llvm-commits
mailing list