mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-25 00:33:15 +00:00
minor pattern shuffling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fab3728801
commit
30e21a46f0
@ -182,7 +182,6 @@ class Pattern<dag patternToMatch, list<dag> resultInstrs> {
|
|||||||
// not needing a full list.
|
// not needing a full list.
|
||||||
class Pat<dag pattern, dag result> : Pattern<pattern, [result]>;
|
class Pat<dag pattern, dag result> : Pattern<pattern, [result]>;
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// PowerPC specific transformation functions and pattern fragments.
|
// PowerPC specific transformation functions and pattern fragments.
|
||||||
//
|
//
|
||||||
@ -763,9 +762,9 @@ def RLDICR : MDForm_1<30, 1,
|
|||||||
// PowerPC Instruction Patterns
|
// PowerPC Instruction Patterns
|
||||||
//
|
//
|
||||||
|
|
||||||
// REDUNDANT WITH INSTRUCTION DEFINITION, ONLY FOR TESTING.
|
// Arbitrary immediate support. Implement in terms of LIS/ORI.
|
||||||
def : Pat<(sext_inreg GPRC:$in, i8),
|
def : Pat<(i32 imm:$imm),
|
||||||
(EXTSB GPRC:$in)>;
|
(ORI (LIS (HI16 imm:$imm)), (LO16 imm:$imm))>;
|
||||||
|
|
||||||
// or by an arbitrary immediate.
|
// or by an arbitrary immediate.
|
||||||
def : Pat<(or GPRC:$in, imm:$imm),
|
def : Pat<(or GPRC:$in, imm:$imm),
|
||||||
@ -774,10 +773,6 @@ def : Pat<(or GPRC:$in, imm:$imm),
|
|||||||
def : Pat<(xor GPRC:$in, imm:$imm),
|
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))>;
|
||||||
|
|
||||||
// Arbitrary immediate support.
|
|
||||||
def : Pat<(i32 imm:$imm),
|
|
||||||
(ORI (LIS (HI16 imm:$imm)), (LO16 imm:$imm))>;
|
|
||||||
|
|
||||||
|
|
||||||
// Same as above, but using a temporary. FIXME: implement temporaries :)
|
// Same as above, but using a temporary. FIXME: implement temporaries :)
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user