diff options
| author | Akira Hatanaka <ahatanaka@mips.com> | 2012-01-04 03:09:26 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-01-04 03:09:26 +0000 |
| commit | 3b775b8cc34365fdf9ace8ab45dd0539ddf0771d (patch) | |
| tree | 1b721223885ab68ed2b5e4558aa27f90aae47dba /llvm | |
| parent | b89a4bfe4123581ba0435e4fdbf4c39638f71276 (diff) | |
| download | bcm5719-llvm-3b775b8cc34365fdf9ace8ab45dd0539ddf0771d.tar.gz bcm5719-llvm-3b775b8cc34365fdf9ace8ab45dd0539ddf0771d.zip | |
Rename immLUiOpnd.
llvm-svn: 147519
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/Mips/Mips64InstrInfo.td | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/Mips/MipsInstrInfo.td | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/Mips64InstrInfo.td b/llvm/lib/Target/Mips/Mips64InstrInfo.td index 8e7c1689f91..fb1cea58fd0 100644 --- a/llvm/lib/Target/Mips/Mips64InstrInfo.td +++ b/llvm/lib/Target/Mips/Mips64InstrInfo.td @@ -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 diff --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td index 318b5ff63d9..9aca566895e 100644 --- a/llvm/lib/Target/Mips/MipsInstrInfo.td +++ b/llvm/lib/Target/Mips/MipsInstrInfo.td @@ -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 |

