[Issue 22657] New: AVX SIMD Instructions are decoded correctly but printed badly.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 8 03:02:36 UTC 2022


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

          Issue ID: 22657
           Summary: AVX SIMD Instructions are decoded correctly but
                    printed badly.
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: maxhaton at gmail.com

```
extern(C)
void p51mustang()
{
    asm {
    naked;
        vmovaps    XMM2, [RIP+3678000];
        vmaxpd     XMM0, XMM3, [RAX];
        vpunpcklbw XMM0, XMM1, XMM2;
        vpalignr   XMM0, XMM5, [RAX+RBX], 3;
    }
}
```
yields:

```
p51mustang:
0000:   C5 F8 28 15 30 1F 38 00 tvmovapstXMM2,[0381F30h][RIP]
0008:   C5 E1 5F 00       tvmaxpdtXMM0,XMM3,[RAX]
000c:   C5 F1 60 C2       tvunpcklbwtXMM0,XMM1,XMM2
0010:   C4 E3 51 0F 04 18 03 tvpalignrtXMM0,XMM5,[RBX][RAX],3
```

The instructions are in a t...t sandwich, and there is no whitespace following
the opcode.

--


More information about the Digitalmars-d-bugs mailing list