2015-03-19 13:03:49 -04:00
|
|
|
USING: alien.c-types compiler.cfg.builder.alien compiler.cfg.instructions
|
2015-03-26 18:46:37 -04:00
|
|
|
compiler.cfg.registers compiler.cfg.stacks.local compiler.test
|
2015-04-29 22:49:48 -04:00
|
|
|
cpu.architecture kernel make namespaces system tools.test ;
|
2015-03-19 13:03:49 -04:00
|
|
|
IN: compiler.cfg.builder.alien.tests
|
|
|
|
|
2015-04-29 22:49:48 -04:00
|
|
|
! unboxing ints is only needed on 32bit archs
|
|
|
|
cpu x86.32?
|
|
|
|
{
|
|
|
|
{ 2 4 }
|
|
|
|
{ { int-rep f f } { int-rep f f } }
|
|
|
|
V{
|
|
|
|
T{ ##unbox-any-c-ptr { dst 2 } { src 1 } }
|
|
|
|
T{ ##unbox
|
|
|
|
{ dst 4 }
|
|
|
|
{ src 3 }
|
|
|
|
{ unboxer "to_fixnum" }
|
|
|
|
{ rep int-rep }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-03-19 13:03:49 -04:00
|
|
|
{
|
|
|
|
{ 2 3 }
|
|
|
|
{ { int-rep f f } { int-rep f f } }
|
|
|
|
V{ T{ ##unbox-any-c-ptr { dst 2 } { src 1 } } }
|
2015-04-29 22:49:48 -04:00
|
|
|
} ? [
|
2015-03-19 13:03:49 -04:00
|
|
|
[ { c-string int } unbox-parameters ] V{ } make
|
2015-03-26 18:46:37 -04:00
|
|
|
] cfg-unit-test
|