2009-08-08 05:02:18 -04:00
|
|
|
USING: kernel compiler.cfg.two-operand compiler.cfg.instructions
|
2009-07-27 23:28:29 -04:00
|
|
|
compiler.cfg.registers cpu.architecture namespaces tools.test ;
|
2009-08-13 20:21:44 -04:00
|
|
|
IN: compiler.cfg.two-operand.tests
|
2009-07-27 23:28:29 -04:00
|
|
|
|
|
|
|
3 vreg-counter set-global
|
|
|
|
|
|
|
|
[
|
|
|
|
V{
|
2009-08-08 05:02:18 -04:00
|
|
|
T{ ##copy f 1 2 int-rep }
|
|
|
|
T{ ##sub f 1 1 3 }
|
2009-07-27 23:28:29 -04:00
|
|
|
}
|
|
|
|
] [
|
2009-08-08 05:02:18 -04:00
|
|
|
H{
|
|
|
|
{ 1 int-rep }
|
|
|
|
{ 2 int-rep }
|
|
|
|
{ 3 int-rep }
|
|
|
|
} clone representations set
|
2009-07-27 23:28:29 -04:00
|
|
|
{
|
2009-08-08 05:02:18 -04:00
|
|
|
T{ ##sub f 1 2 3 }
|
2009-08-07 18:44:50 -04:00
|
|
|
} (convert-two-operand)
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
[
|
|
|
|
V{
|
2009-08-08 05:02:18 -04:00
|
|
|
T{ ##copy f 1 2 double-float-rep }
|
|
|
|
T{ ##sub-float f 1 1 3 }
|
2009-08-07 18:44:50 -04:00
|
|
|
}
|
|
|
|
] [
|
2009-08-08 05:02:18 -04:00
|
|
|
H{
|
|
|
|
{ 1 double-float-rep }
|
|
|
|
{ 2 double-float-rep }
|
|
|
|
{ 3 double-float-rep }
|
|
|
|
} clone representations set
|
2009-08-07 18:44:50 -04:00
|
|
|
{
|
2009-08-08 05:02:18 -04:00
|
|
|
T{ ##sub-float f 1 2 3 }
|
2009-07-27 23:28:29 -04:00
|
|
|
} (convert-two-operand)
|
|
|
|
] unit-test
|
2009-08-08 21:03:42 -04:00
|
|
|
|
|
|
|
[
|
|
|
|
V{
|
|
|
|
T{ ##copy f 1 2 double-float-rep }
|
|
|
|
T{ ##mul-float f 1 1 1 }
|
|
|
|
}
|
|
|
|
] [
|
|
|
|
H{
|
|
|
|
{ 1 double-float-rep }
|
|
|
|
{ 2 double-float-rep }
|
|
|
|
} clone representations set
|
|
|
|
{
|
|
|
|
T{ ##mul-float f 1 2 2 }
|
|
|
|
} (convert-two-operand)
|
|
|
|
] unit-test
|