From fa18ade05b006cc7e170a0ee89962f990448a2f6 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 13 Dec 2002 10:43:09 +0000 Subject: [PATCH] Treat longs as ints => pretend they're all 32-bit values and squeeze them into 32-bit registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5008 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86RegisterInfo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/Target/X86/X86RegisterInfo.cpp b/lib/Target/X86/X86RegisterInfo.cpp index 8e049a2c09f..181cc471bb0 100644 --- a/lib/Target/X86/X86RegisterInfo.cpp +++ b/lib/Target/X86/X86RegisterInfo.cpp @@ -55,6 +55,8 @@ X86RegisterInfo::loadRegOffset2Reg(MachineBasicBlock *MBB, case 1: opcode = X86::MOVmr8; break; case 2: opcode = X86::MOVmr16; break; case 4: opcode = X86::MOVmr32; break; + // FIXME: longs handled as ints + case 8: opcode = X86::MOVmr32; break; default: assert(0 && "Invalid data size!"); } @@ -74,6 +76,8 @@ X86RegisterInfo::moveReg2Reg(MachineBasicBlock *MBB, case 1: opcode = X86::MOVrr8; break; case 2: opcode = X86::MOVrr16; break; case 4: opcode = X86::MOVrr32; break; + // FIXME: longs handled as ints + case 8: opcode = X86::MOVrr32; break; default: assert(0 && "Invalid data size!"); } @@ -92,6 +96,8 @@ X86RegisterInfo::moveImm2Reg(MachineBasicBlock *MBB, case 1: opcode = X86::MOVir8; break; case 2: opcode = X86::MOVir16; break; case 4: opcode = X86::MOVir32; break; + // FIXME: longs handled as ints + case 8: opcode = X86::MOVir32; break; default: assert(0 && "Invalid data size!"); } -- 2.34.1