Sign in to follow this  
Degra

[ASM] Fill xmm register with single float

Recommended Posts

I'm trying to fill an xmm register with a float so it contains 4 copies. I can get it into the lo-loword and lo-hiword, but not the hi-loword and hi-hiwords of the register with movss xmm0, [val] movlhps xmm0, xmm0 Can anyone help? Degra

Share this post


Link to post
Share on other sites
how about this:
movss xmm0, [val]
punpckldq xmm0, xmm0
punpckldq xmm0, xmm0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this