mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Rename immLUiOpnd.
llvm-svn: 147519
This commit is contained in:
parent
1c63f32318
commit
4585b90e3b
@ -214,7 +214,7 @@ def : Pat<(i64 immSExt16:$in),
|
||||
(DADDiu ZERO_64, imm:$in)>;
|
||||
def : Pat<(i64 immZExt16:$in),
|
||||
(ORi64 ZERO_64, imm:$in)>;
|
||||
def : Pat<(i64 immLUiOpnd:$in),
|
||||
def : Pat<(i64 immLow16Zero:$in),
|
||||
(LUi64 (HI16 imm:$in))>;
|
||||
|
||||
// 32-bit immediates
|
||||
|
@ -220,7 +220,7 @@ def immZExt16 : PatLeaf<(imm), [{
|
||||
}], LO16>;
|
||||
|
||||
// Immediate can be loaded with LUi (32-bit int with lower 16-bit cleared).
|
||||
def immLUiOpnd : PatLeaf<(imm), [{
|
||||
def immLow16Zero : PatLeaf<(imm), [{
|
||||
int64_t Val = N->getSExtValue();
|
||||
return isInt<32>(Val) && !(Val & 0xffff);
|
||||
}]>;
|
||||
@ -940,7 +940,7 @@ def : Pat<(i32 immSExt16:$in),
|
||||
(ADDiu ZERO, imm:$in)>;
|
||||
def : Pat<(i32 immZExt16:$in),
|
||||
(ORi ZERO, imm:$in)>;
|
||||
def : Pat<(i32 immLUiOpnd:$in),
|
||||
def : Pat<(i32 immLow16Zero:$in),
|
||||
(LUi (HI16 imm:$in))>;
|
||||
|
||||
// Arbitrary immediates
|
||||
|
Loading…
Reference in New Issue
Block a user