On Wednesday, 11 March 2020 at 22:18:04 UTC, kdevel wrote:
On Thursday, 27 February 2020 at 19:24:39 UTC, Johan wrote:
LDC will work fine if told what processor you have: https://d.godbolt.org/z/5hrzgm
-m32 -mcpu=pentium3   (-mcpu=native should also work).

When I "cross compile" on an AMD 64 Bit machine for pentium3

   [AMD 64 bit] $ ldc2 -m32 -mcpu=pentium3 --linker=bfd vec.d

If you run
`ldc2 -m32 -mcpu=pentium3 --linker=bfd vec.d --output-s`
you should get file `vec.s` with the assembly that LDC generated. I'd be _very_ surprised if it contained SSE2 instructions (i.e. the "movsd xmm0" instruction). Are you sure that the druntime you are linking with was also built with -m32 -mcpu=pentium3?

Thanks,
  Johan


Reply via email to