]> gitweb.factorcode.org Git - factor.git/blob - basis/compiler/cfg/two-operand/two-operand-tests.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / basis / compiler / cfg / two-operand / two-operand-tests.factor
1 IN: compiler.cfg.two-operand.tests
2 USING: compiler.cfg.two-operand compiler.cfg.instructions
3 compiler.cfg.registers cpu.architecture namespaces tools.test ;
4
5 3 vreg-counter set-global
6
7 [
8     V{
9         T{ ##copy f V int-regs 1 V int-regs 2 }
10         T{ ##sub f V int-regs 1 V int-regs 1 V int-regs 3 }
11     }
12 ] [
13     {
14         T{ ##sub f V int-regs 1 V int-regs 2 V int-regs 3 }
15     } (convert-two-operand)
16 ] unit-test