2010-08-13 00:41:57 -04:00
|
|
|
IN: cpu.x86.tests
|
2014-12-08 16:39:35 -05:00
|
|
|
USING: compiler.cfg.debugger compiler.cfg.instructions
|
|
|
|
compiler.codegen.gc-maps compiler.codegen.relocation cpu.architecture
|
|
|
|
cpu.x86.features kernel kernel.private make math math.libm namespaces sequences
|
|
|
|
tools.test ;
|
2010-08-13 00:41:57 -04:00
|
|
|
|
2014-12-08 16:39:35 -05:00
|
|
|
{ } [
|
2010-08-13 00:41:57 -04:00
|
|
|
[ { float } declare fsqrt ]
|
|
|
|
[ ##sqrt? ] contains-insn?
|
|
|
|
sse2?
|
|
|
|
assert=
|
|
|
|
] unit-test
|
2014-12-08 16:39:35 -05:00
|
|
|
|
|
|
|
! %call-gc
|
|
|
|
{ V{ } } [
|
|
|
|
init-relocation init-gc-maps
|
|
|
|
[ T{ gc-map { scrub-d V{ } } } %call-gc ] B{ } make drop
|
|
|
|
gc-maps get
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
{ 1 } [
|
|
|
|
init-relocation init-gc-maps
|
|
|
|
[ T{ gc-map { scrub-d V{ 0 0 } } } %call-gc ] B{ } make drop
|
|
|
|
gc-maps get length
|
|
|
|
] unit-test
|
|
|
|
|
|
|
|
! %alien-invoke
|
|
|
|
{ 1 } [
|
|
|
|
init-relocation init-gc-maps [
|
|
|
|
{ } { } { } { } 0 0 { } "dll" T{ gc-map { scrub-d V{ 0 } } } %alien-invoke
|
|
|
|
] B{ } make drop
|
|
|
|
gc-maps get length
|
|
|
|
] unit-test
|