[RFC v3] PowerPC asm parser

Ulrich Weigand Ulrich.Weigand at de.ibm.com
Fri Apr 26 08:57:41 PDT 2013


Hello,

while there's still two pre-requisite patches outstanding:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130422/172665.html
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130422/172778.html

I though it would be a good idea to post another iteration of the asm
parser patches.

The main differences to the previous revisions are:

- Enable for powerpc as well as powerpc64 targets
(Note that assembler still doesn't verify feature sets, so it will happily
assemble 64-bit instructions even when called in powerpc mode, and will
accept any instruction it understands even when called with a more
restrictive -march setting.)

- Support %r1 style register names (as requested by Roman)

- Add some test cases
The tests currently cover all instructions from the following PowerPC ISA
v2.06 Book I facilities: Branch, Fixed-point, Floating-Point, and Vector.
In addition, the tests cover all Book I extended mnemonics and the Book II
storage control instructions (including extended mnemonics).  Note that a
number of instructions are not yet supported by the back-end; I've added
them to the tests anyway, but commented out with a FIXME.

Also note that running the tests uncovered yet more instances of wrong
encodings; I've checked in fixes for those earlier today.


Any comments welcome!

Bye,
Ulrich


(See attached file: diff-llvm-asm-parser)
(See attached file: diff-llvm-asm-aliases)
(See attached file: diff-llvm-asm-inline)
(See attached file: diff-llvm-asm-variants)
(See attached file: diff-llvm-asm-dollar)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-llvm-asm-parser
Type: application/octet-stream
Size: 79874 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/574864e3/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-llvm-asm-aliases
Type: application/octet-stream
Size: 19536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/574864e3/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-llvm-asm-inline
Type: application/octet-stream
Size: 3374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/574864e3/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-llvm-asm-variants
Type: application/octet-stream
Size: 1659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/574864e3/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-llvm-asm-dollar
Type: application/octet-stream
Size: 664 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130426/574864e3/attachment-0004.obj>


More information about the llvm-commits mailing list