cpu.x86.tests: more tests
parent
52d3affeb8
commit
ba6accb983
|
@ -1,10 +1,33 @@
|
||||||
IN: cpu.x86.tests
|
IN: cpu.x86.tests
|
||||||
USING: cpu.x86.features tools.test math.libm kernel.private math
|
USING: compiler.cfg.debugger compiler.cfg.instructions
|
||||||
compiler.cfg.instructions compiler.cfg.debugger kernel ;
|
compiler.codegen.gc-maps compiler.codegen.relocation cpu.architecture
|
||||||
|
cpu.x86.features kernel kernel.private make math math.libm namespaces sequences
|
||||||
|
tools.test ;
|
||||||
|
|
||||||
[ ] [
|
{ } [
|
||||||
[ { float } declare fsqrt ]
|
[ { float } declare fsqrt ]
|
||||||
[ ##sqrt? ] contains-insn?
|
[ ##sqrt? ] contains-insn?
|
||||||
sse2?
|
sse2?
|
||||||
assert=
|
assert=
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
|
! %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
|
||||||
|
|
Loading…
Reference in New Issue