mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-17 18:10:31 +00:00
Eliminate some uses of immAllOnes, just use -1, it does
the same thing and is more efficient for the matcher. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96712 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0a42c5e5bf
commit
9f036412ac
@ -366,7 +366,7 @@ def ADDE8 : XOForm_1<31, 138, 0, (outs G8RC:$rT), (ins G8RC:$rA, G8RC:$rB),
|
||||
[(set G8RC:$rT, (adde G8RC:$rA, G8RC:$rB))]>;
|
||||
def ADDME8 : XOForm_3<31, 234, 0, (outs G8RC:$rT), (ins G8RC:$rA),
|
||||
"addme $rT, $rA", IntGeneral,
|
||||
[(set G8RC:$rT, (adde G8RC:$rA, immAllOnes))]>;
|
||||
[(set G8RC:$rT, (adde G8RC:$rA, -1))]>;
|
||||
def ADDZE8 : XOForm_3<31, 202, 0, (outs G8RC:$rT), (ins G8RC:$rA),
|
||||
"addze $rT, $rA", IntGeneral,
|
||||
[(set G8RC:$rT, (adde G8RC:$rA, 0))]>;
|
||||
@ -375,7 +375,7 @@ def SUBFE8 : XOForm_1<31, 136, 0, (outs G8RC:$rT), (ins G8RC:$rA, G8RC:$rB),
|
||||
[(set G8RC:$rT, (sube G8RC:$rB, G8RC:$rA))]>;
|
||||
def SUBFME8 : XOForm_3<31, 232, 0, (outs G8RC:$rT), (ins G8RC:$rA),
|
||||
"subfme $rT, $rA", IntGeneral,
|
||||
[(set G8RC:$rT, (sube immAllOnes, G8RC:$rA))]>;
|
||||
[(set G8RC:$rT, (sube -1, G8RC:$rA))]>;
|
||||
def SUBFZE8 : XOForm_3<31, 200, 0, (outs G8RC:$rT), (ins G8RC:$rA),
|
||||
"subfze $rT, $rA", IntGeneral,
|
||||
[(set G8RC:$rT, (sube 0, G8RC:$rA))]>;
|
||||
|
@ -1215,7 +1215,7 @@ def ADDE : XOForm_1<31, 138, 0, (outs GPRC:$rT), (ins GPRC:$rA, GPRC:$rB),
|
||||
[(set GPRC:$rT, (adde GPRC:$rA, GPRC:$rB))]>;
|
||||
def ADDME : XOForm_3<31, 234, 0, (outs GPRC:$rT), (ins GPRC:$rA),
|
||||
"addme $rT, $rA", IntGeneral,
|
||||
[(set GPRC:$rT, (adde GPRC:$rA, immAllOnes))]>;
|
||||
[(set GPRC:$rT, (adde GPRC:$rA, -1))]>;
|
||||
def ADDZE : XOForm_3<31, 202, 0, (outs GPRC:$rT), (ins GPRC:$rA),
|
||||
"addze $rT, $rA", IntGeneral,
|
||||
[(set GPRC:$rT, (adde GPRC:$rA, 0))]>;
|
||||
@ -1224,7 +1224,7 @@ def SUBFE : XOForm_1<31, 136, 0, (outs GPRC:$rT), (ins GPRC:$rA, GPRC:$rB),
|
||||
[(set GPRC:$rT, (sube GPRC:$rB, GPRC:$rA))]>;
|
||||
def SUBFME : XOForm_3<31, 232, 0, (outs GPRC:$rT), (ins GPRC:$rA),
|
||||
"subfme $rT, $rA", IntGeneral,
|
||||
[(set GPRC:$rT, (sube immAllOnes, GPRC:$rA))]>;
|
||||
[(set GPRC:$rT, (sube -1, GPRC:$rA))]>;
|
||||
def SUBFZE : XOForm_3<31, 200, 0, (outs GPRC:$rT), (ins GPRC:$rA),
|
||||
"subfze $rT, $rA", IntGeneral,
|
||||
[(set GPRC:$rT, (sube 0, GPRC:$rA))]>;
|
||||
|
Loading…
Reference in New Issue
Block a user