[ASM] Fill xmm register with single float

Started by
1 comment, last by Degra 17 years, 1 month ago
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
Advertisement
how about this:
movss xmm0, [val]
punpckldq xmm0, xmm0
punpckldq xmm0, xmm0
Cool, thanks a lot.

Degra

This topic is closed to new replies.

Advertisement