Skip to content

Commit

Permalink
fix Issue 16854 - Inline assembler has VMOVLHPS and VMOVHLPS swapped
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Nov 30, 2016
1 parent f571e67 commit 95c9e17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/backend/ptrntab.c
Original file line number Diff line number Diff line change
Expand Up @@ -5540,10 +5540,10 @@ PTRNTAB2 aptb2SHA256MSG2[] = /* SHA256MSG2 */ {
X("vmovddup", 2, (P) aptb2VMOVDDUP ) \
X("vmovdqa", 2, (P) aptb2VMOVDQA ) \
X("vmovdqu", 2, (P) aptb2VMOVDQU ) \
X("vmovhlps", 3, (P) aptb3VMOVLHPS ) \
X("vmovhlps", 3, (P) aptb3VMOVHLPS ) \
X("vmovhpd", ITopt | 3, (P) aptb3VMOVHPD ) \
X("vmovhps", ITopt | 3, (P) aptb3VMOVHPS ) \
X("vmovlhps", 3, (P) aptb3VMOVHLPS ) \
X("vmovlhps", 3, (P) aptb3VMOVLHPS ) \
X("vmovlpd", ITopt | 3, (P) aptb3VMOVLPD ) \
X("vmovlps", ITopt | 3, (P) aptb3VMOVLPS ) \
X("vmovmskpd", 2, (P) aptb2VMOVMSKPD ) \
Expand Down
6 changes: 3 additions & 3 deletions test/runnable/iasm64.d
Original file line number Diff line number Diff line change
Expand Up @@ -5186,8 +5186,8 @@ void test61()
0xC5, 0xFE, 0x6F, 0xC0, // vmovdqu YMM0, YMM0;
0xC5, 0xFE, 0x7F, 0x00, // vmovdqu [RAX],YMM0;

0xC5, 0xF8, 0x12, 0xC0, // vmovlhps XMM0, XMM0, XMM0;
0xC5, 0xF8, 0x16, 0xC0, // vmovhlps XMM0, XMM0, XMM0;
0xC5, 0xF8, 0x12, 0xC0, // vmovhlps XMM0, XMM0, XMM0;
0xC5, 0xF8, 0x16, 0xC0, // vmovlhps XMM0, XMM0, XMM0;

0xC5, 0xF9, 0x16, 0x00, // vmovhpd XMM0, XMM0, [RAX];
0xC5, 0xF9, 0x17, 0x00, // vmovhpd [RAX], XMM0;
Expand Down Expand Up @@ -5976,8 +5976,8 @@ void test61()
vmovdqu YMM0, YMM0;
vmovdqu [RAX],YMM0;

vmovlhps XMM0, XMM0, XMM0;
vmovhlps XMM0, XMM0, XMM0;
vmovlhps XMM0, XMM0, XMM0;

vmovhpd XMM0, XMM0, [RAX];
vmovhpd [RAX], XMM0;
Expand Down

0 comments on commit 95c9e17

Please sign in to comment.