mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
now that tblgen is smarter, use integers directly. This should help Andrew too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23818 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5d5a056092
commit
f6cd147471
@ -18,8 +18,6 @@ include "PPCInstrFormats.td"
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// PowerPC specific transformation functions and pattern fragments.
|
// PowerPC specific transformation functions and pattern fragments.
|
||||||
//
|
//
|
||||||
def GET_ZERO : SDNodeXForm<add, [{return getI32Imm(0);}]>; // HACK
|
|
||||||
def GET_32 : SDNodeXForm<add, [{ return getI32Imm(32);}]>; // HACK
|
|
||||||
|
|
||||||
def LO16 : SDNodeXForm<imm, [{
|
def LO16 : SDNodeXForm<imm, [{
|
||||||
// Transformation function: get the low 16 bits.
|
// Transformation function: get the low 16 bits.
|
||||||
@ -712,8 +710,7 @@ def : Pat<(xor GPRC:$in, imm:$imm),
|
|||||||
(XORIS (XORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>;
|
(XORIS (XORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>;
|
||||||
|
|
||||||
def : Pat<(zext GPRC:$in),
|
def : Pat<(zext GPRC:$in),
|
||||||
(RLDICL (OR4To8 GPRC:$in, GPRC:$in), (GET_ZERO imm:$in),
|
(RLDICL (OR4To8 GPRC:$in, GPRC:$in), 0, 32)>;
|
||||||
(GET_32 imm:$in))>;
|
|
||||||
def : Pat<(anyext GPRC:$in),
|
def : Pat<(anyext GPRC:$in),
|
||||||
(OR4To8 GPRC:$in, GPRC:$in)>;
|
(OR4To8 GPRC:$in, GPRC:$in)>;
|
||||||
def : Pat<(trunc G8RC:$in),
|
def : Pat<(trunc G8RC:$in),
|
||||||
|
Loading…
Reference in New Issue
Block a user