News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

3DNow instructions?

Started by Glenn9999, February 05, 2011, 04:42:37 AM

Previous topic - Next topic

Glenn9999

I get the feeling that they aren't supported in MASM and that since they will be phased out, they might not have no future good, but I thought I'd ask this: What kind of experiences do people have with the AMD 3DNow instructions?  And what kinds of things might I find using them, or (as I guess since AMD phases them out) would I find much of this at all?   For that matter, how well is SSE implemented on the same processors that support 3DNow?

MichaelW

I have no experience with the 3DNow instructions, and currently nothing that they will run on, but even ML 6.14 appears to support the instruction set.

;====================================================================
    include \masm32\include\masm32rt.inc
    .K3D
;====================================================================
    .data
    .code
;====================================================================
start:
;====================================================================
    PF2ID mm0, mm1
    PFCMPEQ mm0, mm1
    PFADD mm0, mm1

    inkey "Press any key to exit..."
    exit
;====================================================================
end start

eschew obfuscation

dedndave

i have seen them used in code for stuff like AVI players
of course, only AMD processors support them   :P
i don't know about them being "phased out", though
i think the AMD version of AVX (aka SSE5) augment the 3DNow set
i guess they'll be viable as long as AMD makes processors

sinsi

From the font of knowledge
Quote from: wikiAs of August 2010 support for 3DNow! will be dropped in future AMD processors, except for two instructions.
Light travels faster than sound, that's why some people seem bright until you hear them.

dedndave

that's a surprise
it shouldn't break any code, really
any app that uses 3dnow, tests for it
i suppose they needed to make room for the AVX set

question, though
what is the "font of knowledge" ???
(arial bold - lol)

sinsi

Yeah, to use 3DNow you would test for it via CPUID, so nothing has changed.
Intel never implemented it and it was largely superceded by SSE3 (or maybe SSE2).
Probably why AMD are letting it die.

font/fount/fountain of knowledge/wisdom = wikipedia
Light travels faster than sound, that's why some people seem bright until you hear them.

jj2007

Quote from: sinsi on February 05, 2011, 08:05:42 AM
font/fount/fountain of knowledge/wisdom = wikipedia

Sinsi,
Quick, post something in the Colosseum before Hutch realises what you just wrote here!! ::)

sinsi

[sarcasm][/sarcasm] tags were implied, surely?
Light travels faster than sound, that's why some people seem bright until you hear them.

hutch--

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php