CellDotNet doesn't supports double data type

0 views
Skip to first unread message

Nick

unread,
Oct 8, 2008, 6:18:37 AM10/8/08
to CellDotNet
Hi !

I think that CellDotNet doesn't support doubles:

public class DoubleTest {
private delegate double DoubleDel ( );
public static void Main ( String[] args ) {
DoubleDel dfun = doubleFunction;
double result = 0.0;
Thread t1 = new Thread ( delegate ( object obj) { result = (double)
SpeContext.RunProgram ( dfun );});
t1.Start();
t1.Join();
Console.WriteLine ( "result = " + result );
}
public static double doubleFunction ( ) {
return 0.0;
}
}

[user002@cell8i-3 DoubleTest]$ mono DoubleTest.exe

Unhandled Exception: System.NotImplementedException: Instruction
selection encountered 1 IR instructions which are not currently
supported, or their operand types are not supported.
The instructions opcodes are:
ldc.r8.
at CellDotNet.Spe.RecursiveInstructionSelector.GenerateCode
(System.Collections.Generic.List`1 basicBlocks,
System.Collections.ObjectModel.ReadOnlyCollection`1 parameters,
CellDotNet.Spe.SpuInstructionWriter writer) [0x00000]
at CellDotNet.Spe.MethodCompiler.PerformInstructionSelection ()
[0x00000]
at CellDotNet.Spe.MethodCompiler.PerformProcessing
(MethodCompileState targetState) [0x00000]
at CellDotNet.CompileContext.PerformInstructionSelection ()
[0x00000]
at CellDotNet.CompileContext.PerformProcessing (CompileContextState
targetState) [0x00000]
at CellDotNet.SpeContext.RunProgram (System.Delegate delegateToRun,
System.Object[] arguments) [0x00000]
at SimpleTest+<>c__CompilerGenerated1.<Main>c__2 (System.Object obj)
[0x00000]

Is it true ?

Nick.
Reply all
Reply to author
Forward
0 new messages