mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
[SystemZ] Add patterns to load a constant into a high word (IIHF)
Similar to low words, we can use the shorter LLIHL and LLIHH if it turns out that the other half of the GR64 isn't live. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191750 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -82,6 +82,12 @@ void SystemZAsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
||||
.addImm(MI->getOperand(2).getImm());
|
||||
break;
|
||||
|
||||
case SystemZ::IIHF64:
|
||||
LoweredMI = MCInstBuilder(SystemZ::IIHF)
|
||||
.addReg(SystemZMC::getRegAsGRH32(MI->getOperand(0).getReg()))
|
||||
.addImm(MI->getOperand(2).getImm());
|
||||
break;
|
||||
|
||||
case SystemZ::RISBHH:
|
||||
case SystemZ::RISBHL:
|
||||
LoweredMI = lowerRIEfLow(MI, SystemZ::RISBHG);
|
||||
|
Reference in New Issue
Block a user