[Issue 19443] core.simd generates incorrect code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 28 10:07:39 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=19443

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
I corrected the line:

  writefln ("core.simd: %s", simd!(XMM.MOVHLPS) (a, b));

to:

  writefln ("core.simd: %s", __simd(XMM.MOVHLPS, a, b));

Compiled with master and ran it, and the output is:

  expected result: [5, 7, 4, 8]
  core.simd: [0, 0, 0, 64, 0, 0, 64, 64, 0, 0, 128, 64, 0, 0, 0, 65]
  asm: [5, 7, 4, 8]

which appears to be the expected behavior. Marking as resolved.

--


More information about the Digitalmars-d-bugs mailing list