aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/InstSelectSimple.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-04-13 18:27:46 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-04-13 18:27:46 +0000
commit3d11e8a6d383ad625e0878e1fe21891c3b448ee0 (patch)
tree1d404394449211eb9f1067289df37a59799b5437 /lib/Target/Sparc/InstSelectSimple.cpp
parent07b2c46ae3f9f8da0524fca52056e399b6ce4c07 (diff)
I started working on casts, but I don't have anything compilable yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/InstSelectSimple.cpp')
-rw-r--r--lib/Target/Sparc/InstSelectSimple.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Target/Sparc/InstSelectSimple.cpp b/lib/Target/Sparc/InstSelectSimple.cpp
index f8b8a887af..d75d4d3d4e 100644
--- a/lib/Target/Sparc/InstSelectSimple.cpp
+++ b/lib/Target/Sparc/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));