| Author |
| Thread |
 |
|
Bargest
Joined: 09 Feb 2012
Posts: 45
Location: Russia
|
New instructions
Here (or here) I found "AMD64 Architecture Programmer's Manual Volume 3: General Purpose and System Instructions"
There are several instructions, that are not supported by FASM. For example: BLCMSK, BLCI, BLCIC, BLCFILL, BLSMSK, BLSFILL...
I hope one day they will be included in FASM.  [/url]
_________________ jmp $ ; Happy end!
|
14 Mar 2012, 13:08 |
|
Tomasz Grysztar
Assembly Artist
Joined: 16 Jun 2003
Posts: 5287
Location: Kraków, Poland
|
I consider it to be a "XOP2" extension, so I will implement it alongside the AVX2 instructions. So you should expect it in fasm 1.70.
|
14 Mar 2012, 13:21 |
|
rugxulo
Joined: 09 Aug 2005
Posts: 1931
Location: Usono (aka, USA)
|
Do any cpus have such instructions yet? Pardon my hubris, but it seems a bit silly to support instructions for a computer that hasn't even been manufactured, much less sold. Remember how everyone jumped on AMD's SSE5, and then it was dropped/changed incompatibly? Even AVX (shipped 2011) seems ultra new since almost nobody has it yet. Ah well, guess you can't keep bloat^H^H^H^H^H progress down. 
|
14 Mar 2012, 18:36 |
|
peter
Joined: 09 May 2006
Posts: 63
|
Rugxulo, there is an emulator that allows you to try AVX2 instructions without having a processor supporting them. YASM already generates the new instructions; it would nice if FASM supported them, too.
|
16 Mar 2012, 05:46 |
|
smiddy
Joined: 31 Oct 2004
Posts: 417
|
peter have you used this emulator? A quick glance it looks like a code inspector more than say a virtual machine. Is that correct?
|
16 Mar 2012, 11:03 |
|
|
|
An emulator and code inspector (see were the action is).
Should really do a bit more with detection but anyway, run on C2D cpu 32-bit OS.
Edit: and check syntax. My bad, thanks Tomasz.
| Description: |
|
| Filesize: |
21.07 KB |
| Viewed: |
1093 Time(s) |

|
|
Last edited by Alphonso on 16 Mar 2012, 14:52; edited 1 time in total
|
16 Mar 2012, 14:05 |
|
Tomasz Grysztar
Assembly Artist
Joined: 16 Jun 2003
Posts: 5287
Location: Kraków, Poland
|
"db 0f4h,0fh,0bdh,0d0h" is "lzcnt edx,eax", not "lzcnt eax,edx". Try how fasm assembles it.
|
16 Mar 2012, 14:22 |
|
revolution
When all else fails, read the source
Joined: 24 Aug 2004
Posts: 10796
Location: Galactic Sector ZZ9 Plural Z Alpha
|
My CPU supports lzcnt natively. No need for sde. Perhaps a better test would be with a BLC* instruction.
|
16 Mar 2012, 15:14 |
|
Tomasz Grysztar
Assembly Artist
Joined: 16 Jun 2003
Posts: 5287
Location: Kraków, Poland
|
Well, LZCNT was part of SSE4a, so AMD processors have it since long. But now Intel decided to adopt it.
|
16 Mar 2012, 15:17 |
|
|
|
Sigh, how about BZHI then. 
| Description: |
|
| Filesize: |
25.67 KB |
| Viewed: |
1049 Time(s) |

|
|
|
16 Mar 2012, 16:04 |
|
|
|
Forum Rules:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
|
|
|
|
Powered by phpBB © 2001-2005 phpBB Group.
|