Hi,

how can I address m32 source operand in inline assembler instruction like :

asm
  ...
  VBROADCASTSS m32, %xmm1;
  ...
end;

if I would like broadcast to %xmm10 single 32bit value at given memory location in:

const SI:single=0.1;
or
var SI:single=0.1;

Now I do it by (it works):
asm
  ...
  mov $SI, %rax;
  vbroadcastss (%rax), %xmm10;
  ...
end;

000000010020C4CF 48b8b043270001000000     movabs $0x1002743b0,%rax
000000010020C4D9 c462791810               vbroadcastss (%rax),%xmm10

Is there shorter - one liner - way? Something like:
  vbroadcastss SI, %xmm10; // compiles, but causes A/V when executed, because only low 32bit of address is taken (x86_64):

000000010020C4D9 c46279181425b0432700     vbroadcastss 0x2743b0,%xmm10

Thanks

-Laco.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to