diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-13 18:27:46 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-04-13 18:27:46 +0000 |
| commit | 969795b4eaef22eeefceb2b966219c1a54d266f6 (patch) | |
| tree | 463093b4db7c1e4cdda14b20d231a73f793f8904 /llvm/lib/Target | |
| parent | bacab88d42804ed3b501b0554a5aa98bc3254f21 (diff) | |
| download | bcm5719-llvm-969795b4eaef22eeefceb2b966219c1a54d266f6.tar.gz bcm5719-llvm-969795b4eaef22eeefceb2b966219c1a54d266f6.zip | |
I started working on casts, but I don't have anything compilable yet.
llvm-svn: 12903
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/SparcV8/InstSelectSimple.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Target/SparcV8/InstSelectSimple.cpp b/llvm/lib/Target/SparcV8/InstSelectSimple.cpp index f8b8a887af0..d75d4d3d4e3 100644 --- a/llvm/lib/Target/SparcV8/InstSelectSimple.cpp +++ b/llvm/lib/Target/SparcV8/InstSelectSimple.cpp @@ -62,6 +62,7 @@ namespace { void visitSetCondInst(Instruction &I); void visitCallInst(CallInst &I); void visitReturnInst(ReturnInst &I); + void visitCastInst(CastInst &I); void visitLoadInst(LoadInst &I); void visitStoreInst(StoreInst &I); @@ -282,6 +283,16 @@ bool V8ISel::runOnFunction(Function &Fn) { return true; } +void V8ISel::visitCastInst(CastInst &I) { + unsigned SrcReg = getReg (I.getOperand (0)); + unsigned DestReg = getReg (I.getOperand (0)); + const Type *oldTy = I.getOperand (0)->getType (); + const Type *newTy = I.getType (); + + std::cerr << "Cast instruction not supported: " << I; + abort (); +} + void V8ISel::visitLoadInst(LoadInst &I) { unsigned DestReg = getReg (I); unsigned PtrReg = getReg (I.getOperand (0)); |

