Add PPC option for full register names in asm
authorHal Finkel <hfinkel@anl.gov>
Mon, 11 Nov 2013 14:58:40 +0000 (14:58 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 11 Nov 2013 14:58:40 +0000 (14:58 +0000)
commitf14beced2b3120f5f65d29e4553e478f3012345e
treeb7833bd35e3b5ab8508bf9c9a37d75e64bd8d0ee
parent877ca3418f8fcd8e966e80b7e7f1dcb944dbed59
Add PPC option for full register names in asm

On non-Darwin PPC systems, we currently strip off the register name prefix
prior to instruction printing. So instead of something like this:

  mr r3, r4

we print this:

  mr 3, 4

The first form is the default on Darwin, and is understood by binutils, but not
yet understood by our integrated assembler. Once our integrated-as understands
full register names as well, this temporary option will be replaced by tying
this functionality to the verbose-asm option. The numeric-only form is
compatible with legacy assemblers and tools, and is also gcc's default on most
PPC systems. On the other hand, it is harder to read, and there are some
analysis tools that expect full register names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194384 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
test/CodeGen/PowerPC/reg-names.ll [new file with mode: 0644]