factor/basis/cpu/x86/features/features-tests.factor

13 lines
365 B
Factor
Raw Normal View History

USING: cpu.x86.features tools.test kernel sequences math math.order
strings system io.binary ;
IN: cpu.x86.features.tests
[ t ] [ sse-version 0 42 between? ] unit-test
[ t ] [ [ 10000 [ ] times ] count-instructions integer? ] unit-test
2012-09-19 11:48:14 -04:00
{ t }
[
0 cpuid [ 4 >le ] map { 1 3 2 } swap nths concat >string
{ "GenuineIntel" "AuthenticAMD" } member?
] unit-test