Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,776 of 4,675    |
|    dmitri.golubentsev@nospicedham.gmai to All    |
|    What is the best way to load immediate 6    |
|    27 Jan 19 20:24:47    |
      Hi,              I'm trying to minimise memory hits so loading immediate constants in probably       better than loading them from memory pointer.              I can't find anything that would do it directly. vpbroadcastq works with       either memory address or GPR.              The best I see now is this:        6: 48 b8 d0 72 4c 5f c4 movabs $0x9b8c45f4c72d0,%rax        d: b8 09 00        10: 62 f2 fd 28 7c e8 vpbroadcastq %rax,%ymm5              Perhaps someone knows a better way of achieving this?              Kind regards,       Dmitri.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca