2009-07-28 08:41:41 -04:00
|
|
|
IN: compiler.cfg.linear-scan.resolve.tests
|
|
|
|
USING: compiler.cfg.linear-scan.resolve tools.test kernel namespaces
|
2009-08-07 18:44:50 -04:00
|
|
|
accessors
|
|
|
|
compiler.cfg
|
2009-07-29 08:04:52 -04:00
|
|
|
compiler.cfg.instructions cpu.architecture make sequences
|
2009-07-28 08:41:41 -04:00
|
|
|
compiler.cfg.linear-scan.allocation.state ;
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
2009-08-07 18:44:50 -04:00
|
|
|
{ { T{ spill-slot f 0 } int-rep } { 1 int-rep } }
|
2009-07-28 08:41:41 -04:00
|
|
|
}
|
|
|
|
] [
|
|
|
|
[
|
2009-08-07 18:44:50 -04:00
|
|
|
0 <spill-slot> 1 int-rep add-mapping
|
2009-07-28 08:41:41 -04:00
|
|
|
] { } make
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
2009-08-07 18:44:50 -04:00
|
|
|
T{ _reload { dst 1 } { rep int-rep } { n 0 } }
|
2009-07-28 08:41:41 -04:00
|
|
|
}
|
|
|
|
] [
|
|
|
|
[
|
2009-08-07 18:44:50 -04:00
|
|
|
{ T{ spill-slot f 0 } int-rep } { 1 int-rep } >insn
|
2009-07-28 08:41:41 -04:00
|
|
|
] { } make
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
2009-08-07 18:44:50 -04:00
|
|
|
T{ _spill { src 1 } { rep int-rep } { n 0 } }
|
2009-07-28 08:41:41 -04:00
|
|
|
}
|
|
|
|
] [
|
|
|
|
[
|
2009-08-07 18:44:50 -04:00
|
|
|
{ 1 int-rep } { T{ spill-slot f 0 } int-rep } >insn
|
2009-07-28 08:41:41 -04:00
|
|
|
] { } make
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
2009-08-07 18:44:50 -04:00
|
|
|
T{ ##copy { src 1 } { dst 2 } { rep int-rep } }
|
2009-07-28 08:41:41 -04:00
|
|
|
}
|
|
|
|
] [
|
|
|
|
[
|
2009-08-07 18:44:50 -04:00
|
|
|
{ 1 int-rep } { 2 int-rep } >insn
|
2009-07-28 08:41:41 -04:00
|
|
|
] { } make
|
|
|
|
] unit-test
|
|
|
|
|
2009-08-07 18:44:50 -04:00
|
|
|
cfg new 8 >>spill-area-size cfg set
|
2009-07-28 08:41:41 -04:00
|
|
|
H{ } clone spill-temps set
|
|
|
|
|
|
|
|
[
|
2009-07-29 07:48:01 -04:00
|
|
|
t
|
2009-07-28 08:41:41 -04:00
|
|
|
] [
|
2009-08-07 18:44:50 -04:00
|
|
|
{ { { 0 int-rep } { 1 int-rep } } { { 1 int-rep } { 0 int-rep } } }
|
2009-07-29 07:48:01 -04:00
|
|
|
mapping-instructions {
|
|
|
|
{
|
2009-08-07 18:44:50 -04:00
|
|
|
T{ _spill { src 0 } { rep int-rep } { n 8 } }
|
|
|
|
T{ ##copy { dst 0 } { src 1 } { rep int-rep } }
|
|
|
|
T{ _reload { dst 1 } { rep int-rep } { n 8 } }
|
2009-07-29 07:48:01 -04:00
|
|
|
}
|
|
|
|
{
|
2009-08-07 18:44:50 -04:00
|
|
|
T{ _spill { src 1 } { rep int-rep } { n 8 } }
|
|
|
|
T{ ##copy { dst 1 } { src 0 } { rep int-rep } }
|
|
|
|
T{ _reload { dst 0 } { rep int-rep } { n 8 } }
|
2009-07-29 07:48:01 -04:00
|
|
|
}
|
|
|
|
} member?
|
2009-07-28 08:41:41 -04:00
|
|
|
] unit-test
|