summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-03-27 13:20:52 +0000
committerHal Finkel <hfinkel@anl.gov>2013-03-27 13:20:52 +0000
commit687143557df6cae498df95cd3bc41020106af2cd (patch)
tree0b61b66b4eb4e8e8989361b684d6d4f8dded92e4 /llvm/lib
parentd3490dc06a1881828bc21a167010fa7caf9552b2 (diff)
downloadbcm5719-llvm-687143557df6cae498df95cd3bc41020106af2cd.tar.gz
bcm5719-llvm-687143557df6cae498df95cd3bc41020106af2cd.zip
Print PPC ZERO as 0 (not r0) even on Darwin
It seems that the Darwin PPC assembler requires r0 to be written as 0 when it means 0 (at least in lwarx/stwcx.). Fixes PR15605. llvm-svn: 178142
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCRegisterInfo.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.td b/llvm/lib/Target/PowerPC/PPCRegisterInfo.td
index aa5584ee3c7..57a25f5143f 100644
--- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCRegisterInfo.td
@@ -87,8 +87,8 @@ foreach Index = 0-31 in {
}
// The reprsentation of r0 when treated as the constant 0.
-def ZERO : GPR<0, "r0">;
-def ZERO8 : GP8<ZERO, "r0">;
+def ZERO : GPR<0, "0">;
+def ZERO8 : GP8<ZERO, "0">;
// Representations of the frame pointer used by ISD::FRAMEADDR.
def FP : GPR<0 /* arbitrary */, "**FRAME POINTER**">;
OpenPOWER on IntegriCloud