1 USING: compiler.cfg.linear-scan.resolve tools.test kernel namespaces
4 compiler.cfg.instructions cpu.architecture make sequences
5 compiler.cfg.linear-scan.allocation.state ;
6 IN: compiler.cfg.linear-scan.resolve.tests
10 { { T{ spill-slot f 0 } int-rep } { 1 int-rep } }
14 0 <spill-slot> 1 int-rep add-mapping
20 T{ _reload { dst 1 } { rep int-rep } { n 0 } }
24 { T{ spill-slot f 0 } int-rep } { 1 int-rep } >insn
30 T{ _spill { src 1 } { rep int-rep } { n 0 } }
34 { 1 int-rep } { T{ spill-slot f 0 } int-rep } >insn
40 T{ ##copy { src 1 } { dst 2 } { rep int-rep } }
44 { 1 int-rep } { 2 int-rep } >insn
48 cfg new 8 >>spill-area-size cfg set
49 H{ } clone spill-temps set
54 { { { 0 int-rep } { 1 int-rep } } { { 1 int-rep } { 0 int-rep } } }
55 mapping-instructions {
57 T{ _spill { src 0 } { rep int-rep } { n 8 } }
58 T{ ##copy { dst 0 } { src 1 } { rep int-rep } }
59 T{ _reload { dst 1 } { rep int-rep } { n 8 } }
62 T{ _spill { src 1 } { rep int-rep } { n 8 } }
63 T{ ##copy { dst 1 } { src 0 } { rep int-rep } }
64 T{ _reload { dst 0 } { rep int-rep } { n 8 } }