flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > SSE4 (topic is not only about implementing) POPCNT answered |
Author |
|
MazeGen 09 Jan 2008, 11:40
There's a difference: although JMPE employs 0FB8, POPCNT is F30FB8. Wikipedia seems to be wrong here.
|
|||
09 Jan 2008, 11:40 |
|
Madis731 09 Jan 2008, 11:43
Hmm and we all rest assured! Thanks for clearing this...
|
|||
09 Jan 2008, 11:43 |
|
f0dder 09 Jan 2008, 12:20
Personally I wouldn't worry about JMPE/POPCNT overlay unless you know your app is going to run on itanium...
But since you ought to check for very late-and-breaking-news instructions such as POPCNT and choose your code paths accordingly, I don't think it'd ever end up being a problem - Itanium CPUs obviously wouldn't support POPCNT |
|||
09 Jan 2008, 12:20 |
|
MazeGen 09 Jan 2008, 12:40
f0dder wrote: Itanium CPUs obviously wouldn't support POPCNT Why not? |
|||
09 Jan 2008, 12:40 |
|
f0dder 09 Jan 2008, 12:42
MazeGen wrote:
Because of the opcode overlaying issue... now, they might support it in native mode, but probably not for emulation. (And x86 hardware emulation on itanium is slower than software emulation, oh well). Is intel still working on Itanium btw., or have they stopped after Itanium-2? _________________ - carpe noctem |
|||
09 Jan 2008, 12:42 |
|
MazeGen 09 Jan 2008, 12:48
Since POPCNT uses F3 "prefix", I don't think it really overlays JMPE, as I wrote above. Colision with some older code, which would encode JMPE as F30FB8, is very unlikely.
|
|||
09 Jan 2008, 12:48 |
|
Madis731 09 Jan 2008, 13:05
I think its pretty clear now - its one of those errors where people think that "assume makes an ass out of U and me"
Assuming really has made me that, but the U in this context is Wikipedia, which I trusted in so blindly, ... oh well :S I think that when JMPE equ 0FB8 and POPCNT equ F30FB8 means compatibility problems then its as serious as say: MOV EAX,90909090h clash with NOPs ^o) OR: Maybe the answer hides in the fact that you do JMPE to escape from IA-32 and then you do POPCNT when actually its the very same instruction!!! You don't need JMPE (escape from IA-32) in IA-64 mode, do you? You need POPCNT. Maybe its pure ingeniousness (if that's a word). Last edited by Madis731 on 09 Jan 2008, 13:08; edited 1 time in total |
|||
09 Jan 2008, 13:05 |
|
f0dder 09 Jan 2008, 13:08
Madis731 wrote:
I've made that mistake a number of times in the past as well, and will probably do it some times in the future too. We should chant to ourselves: "wikiepedia should only be used as a starting point giving hints to where our real research must be done" _________________ - carpe noctem |
|||
09 Jan 2008, 13:08 |
|
Raedwulf 02 May 2008, 11:25
Madis731 wrote: Maybe its pure ingeniousness (if that's a word). No, but i think you meant "ingenuity". _________________ Raedwulf |
|||
02 May 2008, 11:25 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.