mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
64-bit arbitrary immediate pattern.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144448 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c5d65202e
commit
deab22a556
@ -215,6 +215,10 @@ def : Pat<(i64 immSExt16:$in),
|
|||||||
def : Pat<(i64 immZExt16:$in),
|
def : Pat<(i64 immZExt16:$in),
|
||||||
(ORi64 ZERO_64, imm:$in)>;
|
(ORi64 ZERO_64, imm:$in)>;
|
||||||
|
|
||||||
|
// Arbitrary immediates
|
||||||
|
def : Pat<(i64 imm:$imm),
|
||||||
|
(ORi64 (LUi64 (HI16 imm:$imm)), (LO16 imm:$imm))>;
|
||||||
|
|
||||||
// zextloadi32_u
|
// zextloadi32_u
|
||||||
def : Pat<(zextloadi32_u addr:$a), (DSRL32 (DSLL32 (ULW64_P8 addr:$a), 0), 0)>,
|
def : Pat<(zextloadi32_u addr:$a), (DSRL32 (DSLL32 (ULW64_P8 addr:$a), 0), 0)>,
|
||||||
Requires<[IsN64]>;
|
Requires<[IsN64]>;
|
||||||
|
Loading…
Reference in New Issue
Block a user