Author Topic: CPUID Test piece for later Intel processors.  (Read 24114 times)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7537
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
CPUID Test piece for later Intel processors.
« on: June 02, 2012, 11:51:32 AM »
There appears to be some demand for the collection of CPUID algos in a variety of test pieces that were done a couple of years ago. This is one of mine that dealt exclusively with Intel hardware.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: CPUID Test piece for later Intel processors.
« Reply #1 on: June 02, 2012, 01:18:13 PM »
you had a couple others, too
one for memory available and one for disk space
also - all the ProStart / CG versions   :P

and - let's not forget QE and scripts

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7537
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPUID Test piece for later Intel processors.
« Reply #2 on: June 02, 2012, 08:37:15 PM »
What I was hoping was that some of the other folks who have written code of this type would also post their examples. I confess that the algos I have developed to use CPUID were targetted at recognising a particular range of processors to determine what instruction sets could be used, MMX, SSE/2/3/4 etc .....
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: CPUID Test piece for later Intel processors.
« Reply #3 on: June 02, 2012, 09:34:01 PM »
i have all the results from the one i wrote
many members ran it - so, i have a nice collection of info
i wanted to orginize it and "can" it into a single post or a text file attachment

Antariy

  • Member
  • ****
  • Posts: 551
Re: CPUID Test piece for later Intel processors.
« Reply #4 on: June 03, 2012, 12:56:48 PM »
There appears to be some demand for the collection of CPUID algos in a variety of test pieces that were done a couple of years ago. This is one of mine that dealt exclusively with Intel hardware.

This is my simple CPUID code on the old forum, but it also is Intel-oriented up to SSE4.2, like yours, Hutch.
« Last Edit: June 04, 2012, 10:39:04 AM by Antariy »

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7537
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPUID Test piece for later Intel processors.
« Reply #5 on: June 03, 2012, 01:28:21 PM »
Alex,

Repost the zip file(s), those links to the old UK site will not last forever.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

jj2007

  • Member
  • *****
  • Posts: 10543
  • Assembler is fun ;-)
    • MasmBasic
Re: CPUID Test piece for later Intel processors.
« Reply #6 on: June 03, 2012, 05:07:03 PM »
What I was hoping was that some of the other folks who have written code of this type would also post their examples.

Here is mine :biggrin:

include \masm32\MasmBasic\MasmBasic.inc   ; download
   Init
   PrintCpu
   Inkey "hit any key"
   Exit
end start

Code: [Select]
Intel(R) Celeron(R) M CPU        420  @ 1.60GHz (SSE3)

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7537
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPUID Test piece for later Intel processors.
« Reply #7 on: June 03, 2012, 05:19:18 PM »
 :biggrin:

Gee thanks, thats really useful.  :eusa_clap:
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: CPUID Test piece for later Intel processors.
« Reply #8 on: June 03, 2012, 11:03:53 PM »
...and short, too - lol

Antariy

  • Member
  • ****
  • Posts: 551
Re: CPUID Test piece for later Intel processors.
« Reply #9 on: June 04, 2012, 11:03:25 AM »
Alex,

Repost the zip file(s), those links to the old UK site will not last forever.

Fixed the post where were links before.

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 7537
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: CPUID Test piece for later Intel processors.
« Reply #10 on: June 04, 2012, 02:13:38 PM »
Alex,  :t
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :skrewy:

Zen

  • Member
  • ****
  • Posts: 962
  • slightly red-shifted
Re: CPUID Test piece for later Intel processors.
« Reply #11 on: June 07, 2012, 07:33:34 AM »
I have downloaded the zip files for a number of CPUID threads from the old MASM Forum.
Here is a list of zip attachments. I didn't actually write any of this code,...so, you'll notice that it generally works perfectly,...and, has absolutely NO BLOAT !!!
If you read through a number of high-quality Old MASM Forum threads, you will see that there are alot of variations and additional information available, including DAVE's old Signature file (which I can't seem to download from the original site). I was thinking of condensing and editing all this material into one directory or file (maybe a PDF file), and posting it here,...but, my internet access is currently severely restricted,...and, it would take me forever.

Zen

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: CPUID Test piece for later Intel processors.
« Reply #12 on: June 07, 2012, 09:41:56 AM »
the program of mine was not really intended to be used as a CPUID routine, per se
it was simply intended to test the CPUID instruction on a variety of machines, to gather information

Adamanteus

  • Member
  • **
  • Posts: 234
    • LLC "AMS"
Re: CPUID Test piece for later Intel processors.
« Reply #13 on: July 04, 2012, 07:45:09 PM »
Possible suggest more  :t algo for get_x86_instruction_sets, because it's more useful to get all processor abilities once, then if not discard records in program possible use MASK operator for easy get instructions sets. So, I've made a little changes in program :

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: CPUID Test piece for later Intel processors.
« Reply #14 on: July 04, 2012, 11:06:18 PM »
ouch - i lost SSE3   :(
Code: [Select]
Vendor String = GenuineIntel
CPU String    = Intel(R) Pentium(R) 4 CPU 3.00GHz

SSE4.2     NO
SSE4.1     NO
SSE3       NO
SSE2       YES
SSE        YES
MMX        YES

SSE3 is leaf 0000_0001, ECX bit 0