Author Topic: Test results needed: CPU and instruction set detection  (Read 590 times)

Gunther

  • Member
  • *****
  • Posts: 4147
  • Forgive your enemies, but never forget their names
Test results needed: CPU and instruction set detection
« on: June 02, 2022, 10:55:41 AM »
The program is a pure Real Mode application and should run under many possible configurations. It examines the CPU as well as the FPU and detects the supported instruction sets.
In addition, special instructions are also searched, which are supported by the hardware as well.

DOSBox emulates only an 80486. That's why the output there looks like this:
Code: [Select]
CPU Strings
-----------

Processor Vendor String isn't available.
Processor Brand String isn't available.


Instruction Sets supported by CPU
---------------------------------

80486
FPU is an 80387.

Although it wouldn't be a problem, this program doesn't check
for AVX, AVX2 and AVX512. In principle, it is possible to use
AVX, for example. But that works only under plain DOS. However,
special actions are then required for this.

It follows a screen with a selection of further instructions
that this CPU also supports.


Press any key to continue...

Further properties and instructions of this CPU
-----------------------------------------------

FPU and CPU are on the same chip.


Press any key to end the program...
On the same machine under plain DOS:
Code: [Select]
CPU Strings
-----------

Processor Vendor String: GenuineIntel
Processor Brand String:  Intel(R)Core(TM)i7-7820XCPU@3.60GHz

Instruction Sets supported by CPU
---------------------------------

MMX  SSE  SSE2  SSE3  SSSE3  SSE4.1  SSE4.2
FPU is an 80387.

Although it wouldn't be a problem, this program doesn't check
for AVX, AVX2 and AVX512. In principle, it is possible to use
AVX, for example. But that works only under plain DOS. However,
special actions are then required for this.

It follows a screen with a selection of further instructions
that this CPU also supports.


Press any key to continue...

Further properties and instructions of this CPU
-----------------------------------------------

FPU and CPU are on the same chip.

RDTSC
RDTSCP
MOVBE
POPCNT
RDRAND
RDSEED

Press any key to end the program...
Under VirtualBox the output is identical.

I appreciate test results with different configurations.
You have to know the facts before you can distort them.

FORTRANS

  • Member
  • *****
  • Posts: 1226
Re: Test results needed: CPU and instruction set detection
« Reply #1 on: June 03, 2022, 12:42:06 AM »
Hi,

   Four runs of your program on three systems.

Code: [Select]
2 June 2022, P-III Windows 2000.

This program examines CPU, FPU, and the supported Instruction Sets.
The information collected in the process, will be printed on the
screen. It's a lean and handy real mode application in the small
memory model. From 25 KB of source code, 700 lines of code (LOC)
with a file size of 3 KB are then created for the running EXE.

In order to run the program under as many different configurations
as possible, the hardware is not programmed directly at any point.
All inputs and outputs were realized via DOS or BIOS Services.


Press any key to continue...
CPU Strings
-----------

Processor Vendor String: GenuineIntel
Processor Brand String isn't available.


Instruction Sets supported by CPU
---------------------------------

MMX  SSE
FPU is an 80387.

Although it wouldn't be a problem, this program doesn't check
for AVX, AVX2 and AVX512. In principle, it is possible to use
AVX, for example. But that works only under plain DOS. However,
special actions are then required for this.

It follows a screen with a selection of further instructions
that this CPU also supports.


Press any key to continue...
Further properties and instructions of this CPU
-----------------------------------------------

FPU and CPU are on the same chip.

RDTSC

Press any key to end the program...

P-III OS/2.

This program examines CPU, FPU, and the supported Instruction Sets.
The information collected in the process, will be printed on the
screen. It's a lean and handy real mode application in the small
memory model. From 25 KB of source code, 700 lines of code (LOC)
with a file size of 3 KB are then created for the running EXE.

In order to run the program under as many different configurations
as possible, the hardware is not programmed directly at any point.
All inputs and outputs were realized via DOS or BIOS Services.


Press any key to continue...
CPU Strings
-----------

Processor Vendor String: GenuineIntel
Processor Brand String isn't available.


Instruction Sets supported by CPU
---------------------------------

MMX  SSE
FPU is an 80387.

Although it wouldn't be a problem, this program doesn't check
for AVX, AVX2 and AVX512. In principle, it is possible to use
AVX, for example. But that works only under plain DOS. However,
special actions are then required for this.

It follows a screen with a selection of further instructions
that this CPU also supports.


Press any key to continue...
Further properties and instructions of this CPU
-----------------------------------------------

FPU and CPU are on the same chip.

RDTSC

Press any key to end the program...

Pentium M, Windows XP.

This program examines CPU, FPU, and the supported Instruction Sets.
The information collected in the process, will be printed on the
screen. It's a lean and handy real mode application in the small
memory model. From 25 KB of source code, 700 lines of code (LOC)
with a file size of 3 KB are then created for the running EXE.

In order to run the program under as many different configurations
as possible, the hardware is not programmed directly at any point.
All inputs and outputs were realized via DOS or BIOS Services.


Press any key to continue...
CPU Strings
-----------

Processor Vendor String: GenuineIntel
Processor Brand String:  Intel(R)Pentium(R)Mprocessor1.70GHz

Instruction Sets supported by CPU
---------------------------------

MMX  SSE  SSE2
FPU is an 80387.

Although it wouldn't be a problem, this program doesn't check
for AVX, AVX2 and AVX512. In principle, it is possible to use
AVX, for example. But that works only under plain DOS. However,
special actions are then required for this.

It follows a screen with a selection of further instructions
that this CPU also supports.


Press any key to continue...
Further properties and instructions of this CPU
-----------------------------------------------

FPU and CPU are on the same chip.

RDTSC

Press any key to end the program...

Windows XP

This program examines CPU, FPU, and the supported Instruction Sets.
The information collected in the process, will be printed on the
screen. It's a lean and handy real mode application in the small
memory model. From 25 KB of source code, 700 lines of code (LOC)
with a file size of 3 KB are then created for the running EXE.

In order to run the program under as many different configurations
as possible, the hardware is not programmed directly at any point.
All inputs and outputs were realized via DOS or BIOS Services.


Press any key to continue...

CPU Strings
-----------

Processor Vendor String: GenuineIntel
Processor Brand String:  GenuineIntel(R)CPUT2400@1.83GHz

Instruction Sets supported by CPU
---------------------------------

MMX  SSE  SSE2  SSE3
FPU is an 80387.

Although it wouldn't be a problem, this program doesn't check
for AVX, AVX2 and AVX512. In principle, it is possible to use
AVX, for example. But that works only under plain DOS. However,
special actions are then required for this.

It follows a screen with a selection of further instructions
that this CPU also supports.


Press any key to continue...
Further properties and instructions of this CPU
-----------------------------------------------

FPU and CPU are on the same chip.

RDTSC

Press any key to end the program...

HTH,

Steve

Gunther

  • Member
  • *****
  • Posts: 4147
  • Forgive your enemies, but never forget their names
Re: Test results needed: CPU and instruction set detection
« Reply #2 on: June 03, 2022, 12:58:10 AM »
Steve,

   Four runs of your program on three systems.
HTH,

yes, that's a great help. Thank you.  :thumbsup:
You have to know the facts before you can distort them.