X86Implicit.cpp, X86Implicit.h: New files.
InstSelectSimple.cpp: Add some clarifications in visitCallInst comments.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke
2002-12-03 00:51:09 +00:00
parent 8562d4ec7c
commit bb25f2f08d
4 changed files with 111 additions and 2 deletions

View File

@@ -397,6 +397,8 @@ ISel::visitCallInst (CallInst & CI)
{
case cByte:
case cShort:
// Promote V to 32 bits wide, and move the result into EAX,
// then push EAX.
promote32 (X86::EAX, v);
BuildMI (BB, X86::PUSHr32, 1).addReg (X86::EAX);
break;
@@ -405,7 +407,7 @@ ISel::visitCallInst (CallInst & CI)
BuildMI (BB, X86::PUSHr32, 1).addReg (argReg);
break;
default:
// FIXME
// FIXME: long/ulong/double args not handled.
visitInstruction (CI);
break;
}