Fix a minor bug (ORo didn't mark that it set CR0).
authorChris Lattner <sabre@nondot.org>
Mon, 11 Apr 2005 15:01:39 +0000 (15:01 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Apr 2005 15:01:39 +0000 (15:01 +0000)
commit26d4fdb968f14874e397c553a82834c75bce844e
tree7176d1584a553e4672de359a65d6ee0aea697140
parent21478e55dbd45c0aaa7c6c3e06f59516af79b624
Fix a minor bug (ORo didn't mark that it set CR0).

Refactor how . instructions are handled.  In particular, instead of passing
the RC flag all the way up the inheritance hierarchy, just make a new tblgen
class 'DOT' which can be added to an instruction definition.

For example, instead of this:

-def AND  : XForm_6<31,  28, 0, 0, 0, (ops GPRC:$rA, GPRC:$rS, GPRC:$rB),
-let Defs = [CR0] in
-def ANDo : XForm_6<31,  28, 1, 0, 0, (ops GPRC:$rA, GPRC:$rS, GPRC:$rB),
-                   "and. $rA, $rS, $rB">;

We now have this:

+def AND  : XForm_6<31,  28, 0, 0, (ops GPRC:$rA, GPRC:$rS, GPRC:$rB),
                    "and $rA, $rS, $rB">;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21225 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrFormats.td
lib/Target/PowerPC/PPCInstrInfo.td