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