blob: 9b2fce2c1a9623f45129f98e317d03193d914f38 [file] [log] [blame]
Andrew Lenharthaa38ce42005-09-02 18:46:02 +00001//===-- AlphaISelLowering.cpp - Alpha DAG Lowering Implementation ---------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Andrew Lenharth and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements the AlphaISelLowering class.
11//
12//===----------------------------------------------------------------------===//
13
14#include "AlphaISelLowering.h"
15#include "AlphaTargetMachine.h"
16#include "llvm/CodeGen/MachineFrameInfo.h"
17#include "llvm/CodeGen/MachineFunction.h"
18#include "llvm/CodeGen/MachineInstrBuilder.h"
19#include "llvm/CodeGen/SelectionDAG.h"
20#include "llvm/CodeGen/SSARegMap.h"
21#include "llvm/Constants.h"
22#include "llvm/Function.h"
23#include "llvm/Support/CommandLine.h"
24#include <iostream>
25
26using namespace llvm;
27
28namespace llvm {
29 extern cl::opt<bool> EnableAlphaIDIV;
Andrew Lenharthaa38ce42005-09-02 18:46:02 +000030 extern cl::opt<bool> EnableAlphaCount;
31 extern cl::opt<bool> EnableAlphaLSMark;
32}
33
34/// AddLiveIn - This helper function adds the specified physical register to the
35/// MachineFunction as a live in value. It also creates a corresponding virtual
36/// register for it.
37static unsigned AddLiveIn(MachineFunction &MF, unsigned PReg,
38 TargetRegisterClass *RC) {
39 assert(RC->contains(PReg) && "Not the correct regclass!");
40 unsigned VReg = MF.getSSARegMap()->createVirtualRegister(RC);
41 MF.addLiveIn(PReg, VReg);
42 return VReg;
43}
44
45AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) : TargetLowering(TM) {
46 // Set up the TargetLowering object.
47 //I am having problems with shr n ubyte 1
48 setShiftAmountType(MVT::i64);
49 setSetCCResultType(MVT::i64);
50 setSetCCResultContents(ZeroOrOneSetCCResult);
51
52 addRegisterClass(MVT::i64, Alpha::GPRCRegisterClass);
Andrew Lenharth5cefc5e2005-11-09 19:17:08 +000053 addRegisterClass(MVT::f64, Alpha::F8RCRegisterClass);
54 addRegisterClass(MVT::f32, Alpha::F4RCRegisterClass);
Andrew Lenharthaa38ce42005-09-02 18:46:02 +000055
56 setOperationAction(ISD::BRCONDTWOWAY, MVT::Other, Expand);
57 setOperationAction(ISD::BRTWOWAY_CC, MVT::Other, Expand);
58
59 setOperationAction(ISD::EXTLOAD, MVT::i1, Promote);
60 setOperationAction(ISD::EXTLOAD, MVT::f32, Expand);
61
62 setOperationAction(ISD::ZEXTLOAD, MVT::i1, Promote);
63 setOperationAction(ISD::ZEXTLOAD, MVT::i32, Expand);
64
65 setOperationAction(ISD::SEXTLOAD, MVT::i1, Promote);
66 setOperationAction(ISD::SEXTLOAD, MVT::i8, Expand);
67 setOperationAction(ISD::SEXTLOAD, MVT::i16, Expand);
68
Andrew Lenharthf3fb71b2005-10-06 16:54:29 +000069 setOperationAction(ISD::TRUNCSTORE, MVT::i1, Promote);
70
Chris Lattner3e2bafd2005-09-28 22:29:17 +000071 setOperationAction(ISD::FREM, MVT::f32, Expand);
72 setOperationAction(ISD::FREM, MVT::f64, Expand);
Andrew Lenharthaa38ce42005-09-02 18:46:02 +000073
74 setOperationAction(ISD::UINT_TO_FP, MVT::i64, Expand);
Andrew Lenharth7f0db912005-11-30 07:19:56 +000075 setOperationAction(ISD::SINT_TO_FP, MVT::i64, Custom);
Andrew Lenharthcd804962005-11-30 16:10:29 +000076 setOperationAction(ISD::FP_TO_UINT, MVT::i64, Expand);
77 setOperationAction(ISD::FP_TO_SINT, MVT::i64, Custom);
78
Andrew Lenharth120ab482005-09-29 22:54:56 +000079 if (!TM.getSubtarget<AlphaSubtarget>().hasCT()) {
Andrew Lenharthaa38ce42005-09-02 18:46:02 +000080 setOperationAction(ISD::CTPOP , MVT::i64 , Expand);
81 setOperationAction(ISD::CTTZ , MVT::i64 , Expand);
82 setOperationAction(ISD::CTLZ , MVT::i64 , Expand);
83 }
84
85 //If this didn't legalize into a div....
86 // setOperationAction(ISD::SREM , MVT::i64, Expand);
87 // setOperationAction(ISD::UREM , MVT::i64, Expand);
88
89 setOperationAction(ISD::MEMMOVE , MVT::Other, Expand);
90 setOperationAction(ISD::MEMSET , MVT::Other, Expand);
91 setOperationAction(ISD::MEMCPY , MVT::Other, Expand);
92
93 // We don't support sin/cos/sqrt
94 setOperationAction(ISD::FSIN , MVT::f64, Expand);
95 setOperationAction(ISD::FCOS , MVT::f64, Expand);
96 setOperationAction(ISD::FSQRT, MVT::f64, Expand);
97 setOperationAction(ISD::FSIN , MVT::f32, Expand);
98 setOperationAction(ISD::FCOS , MVT::f32, Expand);
99 setOperationAction(ISD::FSQRT, MVT::f32, Expand);
100
Andrew Lenharthb2156f92005-11-30 17:11:20 +0000101 setOperationAction(ISD::SETCC, MVT::f32, Promote);
Chris Lattnerf73bae12005-11-29 06:16:21 +0000102
103 // We don't have line number support yet.
104 setOperationAction(ISD::LOCATION, MVT::Other, Expand);
Jim Laskeye81aecb2005-12-21 20:51:37 +0000105 setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand);
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000106
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000107 addLegalFPImmediate(+0.0); //F31
108 addLegalFPImmediate(-0.0); //-F31
Andrew Lenharth7f0db912005-11-30 07:19:56 +0000109
110 computeRegisterProperties();
111
112 useITOF = TM.getSubtarget<AlphaSubtarget>().hasF2I();
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000113}
114
115
116//http://www.cs.arizona.edu/computer.help/policy/DIGITAL_unix/AA-PY8AC-TET1_html/callCH3.html#BLOCK21
117
118//For now, just use variable size stack frame format
119
120//In a standard call, the first six items are passed in registers $16
121//- $21 and/or registers $f16 - $f21. (See Section 4.1.2 for details
122//of argument-to-register correspondence.) The remaining items are
123//collected in a memory argument list that is a naturally aligned
124//array of quadwords. In a standard call, this list, if present, must
125//be passed at 0(SP).
126//7 ... n 0(SP) ... (n-7)*8(SP)
127
128// //#define FP $15
129// //#define RA $26
130// //#define PV $27
131// //#define GP $29
132// //#define SP $30
133
134std::vector<SDOperand>
135AlphaTargetLowering::LowerArguments(Function &F, SelectionDAG &DAG)
136{
137 MachineFunction &MF = DAG.getMachineFunction();
138 MachineFrameInfo *MFI = MF.getFrameInfo();
139 MachineBasicBlock& BB = MF.front();
140 std::vector<SDOperand> ArgValues;
141
Andrew Lenharthf71df332005-09-04 06:12:19 +0000142 unsigned args_int[] = {
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000143 Alpha::R16, Alpha::R17, Alpha::R18, Alpha::R19, Alpha::R20, Alpha::R21};
Andrew Lenharthf71df332005-09-04 06:12:19 +0000144 unsigned args_float[] = {
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000145 Alpha::F16, Alpha::F17, Alpha::F18, Alpha::F19, Alpha::F20, Alpha::F21};
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000146
147 int count = 0;
148
149 GP = AddLiveIn(MF, Alpha::R29, getRegClassFor(MVT::i64));
150 RA = AddLiveIn(MF, Alpha::R26, getRegClassFor(MVT::i64));
151
152 for (Function::arg_iterator I = F.arg_begin(), E = F.arg_end(); I != E; ++I)
153 {
154 SDOperand argt;
155 if (count < 6) {
156 unsigned Vreg;
157 MVT::ValueType VT = getValueType(I->getType());
158 switch (VT) {
159 default:
160 std::cerr << "Unknown Type " << VT << "\n";
161 abort();
162 case MVT::f64:
163 case MVT::f32:
Andrew Lenharthf71df332005-09-04 06:12:19 +0000164 args_float[count] = AddLiveIn(MF, args_float[count], getRegClassFor(VT));
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000165 argt = DAG.getCopyFromReg(DAG.getRoot(), args_float[count], VT);
166 DAG.setRoot(argt.getValue(1));
167 break;
168 case MVT::i1:
169 case MVT::i8:
170 case MVT::i16:
171 case MVT::i32:
172 case MVT::i64:
Andrew Lenharthf71df332005-09-04 06:12:19 +0000173 args_int[count] = AddLiveIn(MF, args_int[count], getRegClassFor(MVT::i64));
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000174 argt = DAG.getCopyFromReg(DAG.getRoot(), args_int[count], MVT::i64);
175 DAG.setRoot(argt.getValue(1));
176 if (VT != MVT::i64) {
177 unsigned AssertOp =
178 I->getType()->isSigned() ? ISD::AssertSext : ISD::AssertZext;
179 argt = DAG.getNode(AssertOp, MVT::i64, argt,
180 DAG.getValueType(VT));
181 argt = DAG.getNode(ISD::TRUNCATE, VT, argt);
182 }
183 break;
184 }
185 } else { //more args
186 // Create the frame index object for this incoming parameter...
187 int FI = MFI->CreateFixedObject(8, 8 * (count - 6));
188
189 // Create the SelectionDAG nodes corresponding to a load
190 //from this parameter
191 SDOperand FIN = DAG.getFrameIndex(FI, MVT::i64);
192 argt = DAG.getLoad(getValueType(I->getType()),
193 DAG.getEntryNode(), FIN, DAG.getSrcValue(NULL));
194 }
195 ++count;
196 ArgValues.push_back(argt);
197 }
198
199 // If the functions takes variable number of arguments, copy all regs to stack
200 if (F.isVarArg()) {
201 VarArgsOffset = count * 8;
202 std::vector<SDOperand> LS;
203 for (int i = 0; i < 6; ++i) {
Chris Lattnerf2cded72005-09-13 19:03:13 +0000204 if (MRegisterInfo::isPhysicalRegister(args_int[i]))
Andrew Lenharthf71df332005-09-04 06:12:19 +0000205 args_int[i] = AddLiveIn(MF, args_int[i], getRegClassFor(MVT::i64));
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000206 SDOperand argt = DAG.getCopyFromReg(DAG.getRoot(), args_int[i], MVT::i64);
207 int FI = MFI->CreateFixedObject(8, -8 * (6 - i));
208 if (i == 0) VarArgsBase = FI;
209 SDOperand SDFI = DAG.getFrameIndex(FI, MVT::i64);
210 LS.push_back(DAG.getNode(ISD::STORE, MVT::Other, DAG.getRoot(), argt,
211 SDFI, DAG.getSrcValue(NULL)));
212
Chris Lattnerf2cded72005-09-13 19:03:13 +0000213 if (MRegisterInfo::isPhysicalRegister(args_float[i]))
Andrew Lenharthf71df332005-09-04 06:12:19 +0000214 args_float[i] = AddLiveIn(MF, args_float[i], getRegClassFor(MVT::f64));
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000215 argt = DAG.getCopyFromReg(DAG.getRoot(), args_float[i], MVT::f64);
216 FI = MFI->CreateFixedObject(8, - 8 * (12 - i));
217 SDFI = DAG.getFrameIndex(FI, MVT::i64);
218 LS.push_back(DAG.getNode(ISD::STORE, MVT::Other, DAG.getRoot(), argt,
219 SDFI, DAG.getSrcValue(NULL)));
220 }
221
222 //Set up a token factor with all the stack traffic
223 DAG.setRoot(DAG.getNode(ISD::TokenFactor, MVT::Other, LS));
224 }
225
226 // Finally, inform the code generator which regs we return values in.
227 switch (getValueType(F.getReturnType())) {
228 default: assert(0 && "Unknown type!");
229 case MVT::isVoid: break;
230 case MVT::i1:
231 case MVT::i8:
232 case MVT::i16:
233 case MVT::i32:
234 case MVT::i64:
235 MF.addLiveOut(Alpha::R0);
236 break;
237 case MVT::f32:
238 case MVT::f64:
239 MF.addLiveOut(Alpha::F0);
240 break;
241 }
242
243 //return the arguments
244 return ArgValues;
245}
246
247std::pair<SDOperand, SDOperand>
248AlphaTargetLowering::LowerCallTo(SDOperand Chain,
249 const Type *RetTy, bool isVarArg,
250 unsigned CallingConv, bool isTailCall,
251 SDOperand Callee, ArgListTy &Args,
252 SelectionDAG &DAG) {
253 int NumBytes = 0;
254 if (Args.size() > 6)
255 NumBytes = (Args.size() - 6) * 8;
256
257 Chain = DAG.getNode(ISD::CALLSEQ_START, MVT::Other, Chain,
258 DAG.getConstant(NumBytes, getPointerTy()));
259 std::vector<SDOperand> args_to_use;
260 for (unsigned i = 0, e = Args.size(); i != e; ++i)
261 {
262 switch (getValueType(Args[i].second)) {
263 default: assert(0 && "Unexpected ValueType for argument!");
264 case MVT::i1:
265 case MVT::i8:
266 case MVT::i16:
267 case MVT::i32:
268 // Promote the integer to 64 bits. If the input type is signed use a
269 // sign extend, otherwise use a zero extend.
270 if (Args[i].second->isSigned())
271 Args[i].first = DAG.getNode(ISD::SIGN_EXTEND, MVT::i64, Args[i].first);
272 else
273 Args[i].first = DAG.getNode(ISD::ZERO_EXTEND, MVT::i64, Args[i].first);
274 break;
275 case MVT::i64:
276 case MVT::f64:
277 case MVT::f32:
278 break;
279 }
280 args_to_use.push_back(Args[i].first);
281 }
282
283 std::vector<MVT::ValueType> RetVals;
284 MVT::ValueType RetTyVT = getValueType(RetTy);
Andrew Lenharth46a776e2005-09-06 17:00:23 +0000285 MVT::ValueType ActualRetTyVT = RetTyVT;
286 if (RetTyVT >= MVT::i1 && RetTyVT <= MVT::i32)
287 ActualRetTyVT = MVT::i64;
288
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000289 if (RetTyVT != MVT::isVoid)
Andrew Lenharth46a776e2005-09-06 17:00:23 +0000290 RetVals.push_back(ActualRetTyVT);
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000291 RetVals.push_back(MVT::Other);
292
293 SDOperand TheCall = SDOperand(DAG.getCall(RetVals,
294 Chain, Callee, args_to_use), 0);
295 Chain = TheCall.getValue(RetTyVT != MVT::isVoid);
296 Chain = DAG.getNode(ISD::CALLSEQ_END, MVT::Other, Chain,
297 DAG.getConstant(NumBytes, getPointerTy()));
Andrew Lenharth46a776e2005-09-06 17:00:23 +0000298 SDOperand RetVal = TheCall;
299
300 if (RetTyVT != ActualRetTyVT) {
301 RetVal = DAG.getNode(RetTy->isSigned() ? ISD::AssertSext : ISD::AssertZext,
302 MVT::i64, RetVal, DAG.getValueType(RetTyVT));
303 RetVal = DAG.getNode(ISD::TRUNCATE, RetTyVT, RetVal);
304 }
305
306 return std::make_pair(RetVal, Chain);
Andrew Lenharthaa38ce42005-09-02 18:46:02 +0000307}
308
309SDOperand AlphaTargetLowering::LowerVAStart(SDOperand Chain, SDOperand VAListP,
310 Value *VAListV, SelectionDAG &DAG) {
311 // vastart stores the address of the VarArgsBase and VarArgsOffset
312 SDOperand FR = DAG.getFrameIndex(VarArgsBase, MVT::i64);
313 SDOperand S1 = DAG.getNode(ISD::STORE, MVT::Other, Chain, FR, VAListP,
314 DAG.getSrcValue(VAListV));
315 SDOperand SA2 = DAG.getNode(ISD::ADD, MVT::i64, VAListP,
316 DAG.getConstant(8, MVT::i64));
317 return DAG.getNode(ISD::TRUNCSTORE, MVT::Other, S1,
318 DAG.getConstant(VarArgsOffset, MVT::i64), SA2,
319 DAG.getSrcValue(VAListV, 8), DAG.getValueType(MVT::i32));
320}
321
322std::pair<SDOperand,SDOperand> AlphaTargetLowering::
323LowerVAArg(SDOperand Chain, SDOperand VAListP, Value *VAListV,
324 const Type *ArgTy, SelectionDAG &DAG) {
325 SDOperand Base = DAG.getLoad(MVT::i64, Chain, VAListP,
326 DAG.getSrcValue(VAListV));
327 SDOperand Tmp = DAG.getNode(ISD::ADD, MVT::i64, VAListP,
328 DAG.getConstant(8, MVT::i64));
329 SDOperand Offset = DAG.getExtLoad(ISD::SEXTLOAD, MVT::i64, Base.getValue(1),
330 Tmp, DAG.getSrcValue(VAListV, 8), MVT::i32);
331 SDOperand DataPtr = DAG.getNode(ISD::ADD, MVT::i64, Base, Offset);
332 if (ArgTy->isFloatingPoint())
333 {
334 //if fp && Offset < 6*8, then subtract 6*8 from DataPtr
335 SDOperand FPDataPtr = DAG.getNode(ISD::SUB, MVT::i64, DataPtr,
336 DAG.getConstant(8*6, MVT::i64));
337 SDOperand CC = DAG.getSetCC(MVT::i64, Offset,
338 DAG.getConstant(8*6, MVT::i64), ISD::SETLT);
339 DataPtr = DAG.getNode(ISD::SELECT, MVT::i64, CC, FPDataPtr, DataPtr);
340 }
341
342 SDOperand Result;
343 if (ArgTy == Type::IntTy)
344 Result = DAG.getExtLoad(ISD::SEXTLOAD, MVT::i64, Offset.getValue(1),
345 DataPtr, DAG.getSrcValue(NULL), MVT::i32);
346 else if (ArgTy == Type::UIntTy)
347 Result = DAG.getExtLoad(ISD::ZEXTLOAD, MVT::i64, Offset.getValue(1),
348 DataPtr, DAG.getSrcValue(NULL), MVT::i32);
349 else
350 Result = DAG.getLoad(getValueType(ArgTy), Offset.getValue(1), DataPtr,
351 DAG.getSrcValue(NULL));
352
353 SDOperand NewOffset = DAG.getNode(ISD::ADD, MVT::i64, Offset,
354 DAG.getConstant(8, MVT::i64));
355 SDOperand Update = DAG.getNode(ISD::TRUNCSTORE, MVT::Other,
356 Result.getValue(1), NewOffset,
357 Tmp, DAG.getSrcValue(VAListV, 8),
358 DAG.getValueType(MVT::i32));
359 Result = DAG.getNode(ISD::TRUNCATE, getValueType(ArgTy), Result);
360
361 return std::make_pair(Result, Update);
362}
363
364
365SDOperand AlphaTargetLowering::
366LowerVACopy(SDOperand Chain, SDOperand SrcP, Value *SrcV, SDOperand DestP,
367 Value *DestV, SelectionDAG &DAG) {
368 SDOperand Val = DAG.getLoad(getPointerTy(), Chain, SrcP,
369 DAG.getSrcValue(SrcV));
370 SDOperand Result = DAG.getNode(ISD::STORE, MVT::Other, Val.getValue(1),
371 Val, DestP, DAG.getSrcValue(DestV));
372 SDOperand NP = DAG.getNode(ISD::ADD, MVT::i64, SrcP,
373 DAG.getConstant(8, MVT::i64));
374 Val = DAG.getExtLoad(ISD::SEXTLOAD, MVT::i64, Result, NP,
375 DAG.getSrcValue(SrcV, 8), MVT::i32);
376 SDOperand NPD = DAG.getNode(ISD::ADD, MVT::i64, DestP,
377 DAG.getConstant(8, MVT::i64));
378 return DAG.getNode(ISD::TRUNCSTORE, MVT::Other, Val.getValue(1),
379 Val, NPD, DAG.getSrcValue(DestV, 8),
380 DAG.getValueType(MVT::i32));
381}
382
383void AlphaTargetLowering::restoreGP(MachineBasicBlock* BB)
384{
385 BuildMI(BB, Alpha::BIS, 2, Alpha::R29).addReg(GP).addReg(GP);
386}
387void AlphaTargetLowering::restoreRA(MachineBasicBlock* BB)
388{
389 BuildMI(BB, Alpha::BIS, 2, Alpha::R26).addReg(RA).addReg(RA);
390}
391
392
Andrew Lenharth7f0db912005-11-30 07:19:56 +0000393/// LowerOperation - Provide custom lowering hooks for some operations.
394///
395SDOperand AlphaTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
396 switch (Op.getOpcode()) {
397 default: assert(0 && "Wasn't expecting to be able to lower this!");
398 case ISD::SINT_TO_FP: {
399 assert(MVT::i64 == Op.getOperand(0).getValueType() &&
400 "Unhandled SINT_TO_FP type in custom expander!");
401 SDOperand LD;
402 bool isDouble = MVT::f64 == Op.getValueType();
403 if (useITOF) {
404 LD = DAG.getNode(AlphaISD::ITOFT_, MVT::f64, Op.getOperand(0));
405 } else {
406 int FrameIdx =
407 DAG.getMachineFunction().getFrameInfo()->CreateStackObject(8, 8);
408 SDOperand FI = DAG.getFrameIndex(FrameIdx, MVT::i64);
409 SDOperand ST = DAG.getNode(ISD::STORE, MVT::Other, DAG.getEntryNode(),
410 Op.getOperand(0), FI, DAG.getSrcValue(0));
411 LD = DAG.getLoad(MVT::f64, ST, FI, DAG.getSrcValue(0));
412 }
413 SDOperand FP = DAG.getNode(isDouble?AlphaISD::CVTQT_:AlphaISD::CVTQS_,
414 isDouble?MVT::f64:MVT::f32, LD);
415 return FP;
416 }
Andrew Lenharthcd804962005-11-30 16:10:29 +0000417 case ISD::FP_TO_SINT: {
418 bool isDouble = MVT::f64 == Op.getOperand(0).getValueType();
419 SDOperand src = Op.getOperand(0);
420
421 if (!isDouble) //Promote
422 src = DAG.getNode(ISD::FP_EXTEND, MVT::f64, src);
423
424 src = DAG.getNode(AlphaISD::CVTTQ_, MVT::f64, src);
425
426 if (useITOF) {
427 return DAG.getNode(AlphaISD::FTOIT_, MVT::i64, src);
428 } else {
429 int FrameIdx =
430 DAG.getMachineFunction().getFrameInfo()->CreateStackObject(8, 8);
431 SDOperand FI = DAG.getFrameIndex(FrameIdx, MVT::i64);
432 SDOperand ST = DAG.getNode(ISD::STORE, MVT::Other, DAG.getEntryNode(),
433 src, FI, DAG.getSrcValue(0));
434 return DAG.getLoad(MVT::i64, ST, FI, DAG.getSrcValue(0));
435 }
Andrew Lenharth7f0db912005-11-30 07:19:56 +0000436 }
Andrew Lenharthcd804962005-11-30 16:10:29 +0000437
438 }
439
Andrew Lenharth7f0db912005-11-30 07:19:56 +0000440 return SDOperand();
441}