-
Notifications
You must be signed in to change notification settings - Fork 14.4k
[NFC][X86] Reorg MC tests for APX promoted instrs #76697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,52 @@ | ||
# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT | ||
# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL | ||
|
||
## ldtilecfg | ||
|
||
# ATT: ldtilecfg 123(%rax,%rbx,4) | ||
# INTEL: ldtilecfg [rax + 4*rbx + 123] | ||
0x62,0xf2,0x7c,0x08,0x49,0x44,0x98,0x7b | ||
|
||
# ATT: ldtilecfg 291(%r28,%r29,4) | ||
# INTEL: ldtilecfg [r28 + 4*r29 + 291] | ||
0x62,0x9a,0x78,0x08,0x49,0x84,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## sttilecfg | ||
|
||
# ATT: sttilecfg 123(%rax,%rbx,4) | ||
# INTEL: sttilecfg [rax + 4*rbx + 123] | ||
0x62,0xf2,0x7d,0x08,0x49,0x44,0x98,0x7b | ||
|
||
# ATT: sttilecfg 291(%r28,%r29,4) | ||
# INTEL: sttilecfg [r28 + 4*r29 + 291] | ||
0x62,0x9a,0x79,0x08,0x49,0x84,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## tileloadd | ||
|
||
# ATT: tileloadd 123(%rax,%rbx,4), %tmm6 | ||
# INTEL: tileloadd tmm6, [rax + 4*rbx + 123] | ||
0x62,0xf2,0x7f,0x08,0x4b,0x74,0x98,0x7b | ||
|
||
# ATT: tileloadd 291(%r28,%r29,4), %tmm6 | ||
# INTEL: tileloadd tmm6, [r28 + 4*r29 + 291] | ||
0x62,0x9a,0x7b,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## tileloaddt1 | ||
|
||
# ATT: tileloaddt1 123(%rax,%rbx,4), %tmm6 | ||
# INTEL: tileloaddt1 tmm6, [rax + 4*rbx + 123] | ||
0x62,0xf2,0x7d,0x08,0x4b,0x74,0x98,0x7b | ||
|
||
# ATT: tileloaddt1 291(%r28,%r29,4), %tmm6 | ||
# INTEL: tileloaddt1 tmm6, [r28 + 4*r29 + 291] | ||
0x62,0x9a,0x79,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## tilestored | ||
|
||
# ATT: tilestored %tmm6, 123(%rax,%rbx,4) | ||
# INTEL: tilestored [rax + 4*rbx + 123], tmm6 | ||
0x62,0xf2,0x7e,0x08,0x4b,0x74,0x98,0x7b | ||
|
||
# ATT: tilestored %tmm6, 291(%r28,%r29,4) | ||
# INTEL: tilestored [r28 + 4*r29 + 291], tmm6 | ||
0x62,0x9a,0x7a,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,240 @@ | ||
# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT | ||
# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL | ||
|
||
## mulx | ||
|
||
# ATT: mulxl %ecx, %edx, %r10d | ||
# INTEL: mulx r10d, edx, ecx | ||
0x62,0x72,0x6f,0x08,0xf6,0xd1 | ||
|
||
# ATT: mulxq %r9, %r15, %r11 | ||
# INTEL: mulx r11, r15, r9 | ||
0x62,0x52,0x87,0x08,0xf6,0xd9 | ||
|
||
# ATT: mulxl 123(%rax,%rbx,4), %ecx, %edx | ||
# INTEL: mulx edx, ecx, dword ptr [rax + 4*rbx + 123] | ||
0x62,0xf2,0x77,0x08,0xf6,0x94,0x98,0x7b,0x00,0x00,0x00 | ||
|
||
# ATT: mulxq 123(%rax,%rbx,4), %r9, %r15 | ||
# INTEL: mulx r15, r9, qword ptr [rax + 4*rbx + 123] | ||
0x62,0x72,0xb7,0x08,0xf6,0xbc,0x98,0x7b,0x00,0x00,0x00 | ||
|
||
# ATT: mulxl %r18d, %r22d, %r26d | ||
# INTEL: mulx r26d, r22d, r18d | ||
0x62,0x6a,0x4f,0x00,0xf6,0xd2 | ||
|
||
# ATT: mulxq %r19, %r23, %r27 | ||
# INTEL: mulx r27, r23, r19 | ||
0x62,0x6a,0xc7,0x00,0xf6,0xdb | ||
|
||
# ATT: mulxl 291(%r28,%r29,4), %r18d, %r22d | ||
# INTEL: mulx r22d, r18d, dword ptr [r28 + 4*r29 + 291] | ||
0x62,0x8a,0x6b,0x00,0xf6,0xb4,0xac,0x23,0x01,0x00,0x00 | ||
|
||
# ATT: mulxq 291(%r28,%r29,4), %r19, %r23 | ||
# INTEL: mulx r23, r19, qword ptr [r28 + 4*r29 + 291] | ||
0x62,0x8a,0xe3,0x00,0xf6,0xbc,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## pdep | ||
|
||
# ATT: pdepl %ecx, %edx, %r10d | ||
# INTEL: pdep r10d, edx, ecx | ||
0x62,0x72,0x6f,0x08,0xf5,0xd1 | ||
|
||
# ATT: pdepq %r9, %r15, %r11 | ||
# INTEL: pdep r11, r15, r9 | ||
0x62,0x52,0x87,0x08,0xf5,0xd9 | ||
|
||
# ATT: pdepl 123(%rax,%rbx,4), %ecx, %edx | ||
# INTEL: pdep edx, ecx, dword ptr [rax + 4*rbx + 123] | ||
0x62,0xf2,0x77,0x08,0xf5,0x54,0x98,0x7b | ||
|
||
# ATT: pdepq 123(%rax,%rbx,4), %r9, %r15 | ||
# INTEL: pdep r15, r9, qword ptr [rax + 4*rbx + 123] | ||
0x62,0x72,0xb7,0x08,0xf5,0x7c,0x98,0x7b | ||
|
||
# ATT: pdepl %r18d, %r22d, %r26d | ||
# INTEL: pdep r26d, r22d, r18d | ||
0x62,0x6a,0x4f,0x00,0xf5,0xd2 | ||
|
||
# ATT: pdepq %r19, %r23, %r27 | ||
# INTEL: pdep r27, r23, r19 | ||
0x62,0x6a,0xc7,0x00,0xf5,0xdb | ||
|
||
# ATT: pdepl 291(%r28,%r29,4), %r18d, %r22d | ||
# INTEL: pdep r22d, r18d, dword ptr [r28 + 4*r29 + 291] | ||
0x62,0x8a,0x6b,0x00,0xf5,0xb4,0xac,0x23,0x01,0x00,0x00 | ||
|
||
# ATT: pdepq 291(%r28,%r29,4), %r19, %r23 | ||
# INTEL: pdep r23, r19, qword ptr [r28 + 4*r29 + 291] | ||
0x62,0x8a,0xe3,0x00,0xf5,0xbc,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## pext | ||
|
||
# ATT: pextl %ecx, %edx, %r10d | ||
# INTEL: pext r10d, edx, ecx | ||
0x62,0x72,0x6e,0x08,0xf5,0xd1 | ||
|
||
# ATT: pextq %r9, %r15, %r11 | ||
# INTEL: pext r11, r15, r9 | ||
0x62,0x52,0x86,0x08,0xf5,0xd9 | ||
|
||
# ATT: pextl 123(%rax,%rbx,4), %ecx, %edx | ||
# INTEL: pext edx, ecx, dword ptr [rax + 4*rbx + 123] | ||
0x62,0xf2,0x76,0x08,0xf5,0x54,0x98,0x7b | ||
|
||
# ATT: pextq 123(%rax,%rbx,4), %r9, %r15 | ||
# INTEL: pext r15, r9, qword ptr [rax + 4*rbx + 123] | ||
0x62,0x72,0xb6,0x08,0xf5,0x7c,0x98,0x7b | ||
|
||
# ATT: pextl %r18d, %r22d, %r26d | ||
# INTEL: pext r26d, r22d, r18d | ||
0x62,0x6a,0x4e,0x00,0xf5,0xd2 | ||
|
||
# ATT: pextq %r19, %r23, %r27 | ||
# INTEL: pext r27, r23, r19 | ||
0x62,0x6a,0xc6,0x00,0xf5,0xdb | ||
|
||
# ATT: pextl 291(%r28,%r29,4), %r18d, %r22d | ||
# INTEL: pext r22d, r18d, dword ptr [r28 + 4*r29 + 291] | ||
0x62,0x8a,0x6a,0x00,0xf5,0xb4,0xac,0x23,0x01,0x00,0x00 | ||
|
||
# ATT: pextq 291(%r28,%r29,4), %r19, %r23 | ||
# INTEL: pext r23, r19, qword ptr [r28 + 4*r29 + 291] | ||
0x62,0x8a,0xe2,0x00,0xf5,0xbc,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## rorx | ||
|
||
# ATT: rorxl $123, %ecx, %edx | ||
# INTEL: rorx edx, ecx, 123 | ||
0x62,0xf3,0x7f,0x08,0xf0,0xd1,0x7b | ||
|
||
# ATT: rorxq $123, %r9, %r15 | ||
# INTEL: rorx r15, r9, 123 | ||
0x62,0x53,0xff,0x08,0xf0,0xf9,0x7b | ||
|
||
# ATT: rorxl $123, 123(%rax,%rbx,4), %ecx | ||
# INTEL: rorx ecx, dword ptr [rax + 4*rbx + 123], 123 | ||
0x62,0xf3,0x7f,0x08,0xf0,0x8c,0x98,0x7b,0x00,0x00,0x00,0x7b | ||
|
||
# ATT: rorxq $123, 123(%rax,%rbx,4), %r9 | ||
# INTEL: rorx r9, qword ptr [rax + 4*rbx + 123], 123 | ||
0x62,0x73,0xff,0x08,0xf0,0x8c,0x98,0x7b,0x00,0x00,0x00,0x7b | ||
|
||
# ATT: rorxl $123, %r18d, %r22d | ||
# INTEL: rorx r22d, r18d, 123 | ||
0x62,0xeb,0x7f,0x08,0xf0,0xf2,0x7b | ||
|
||
# ATT: rorxq $123, %r19, %r23 | ||
# INTEL: rorx r23, r19, 123 | ||
0x62,0xeb,0xff,0x08,0xf0,0xfb,0x7b | ||
|
||
# ATT: rorxl $123, 291(%r28,%r29,4), %r18d | ||
# INTEL: rorx r18d, dword ptr [r28 + 4*r29 + 291], 123 | ||
0x62,0x8b,0x7b,0x08,0xf0,0x94,0xac,0x23,0x01,0x00,0x00,0x7b | ||
|
||
# ATT: rorxq $123, 291(%r28,%r29,4), %r19 | ||
# INTEL: rorx r19, qword ptr [r28 + 4*r29 + 291], 123 | ||
0x62,0x8b,0xfb,0x08,0xf0,0x9c,0xac,0x23,0x01,0x00,0x00,0x7b | ||
|
||
## sarx | ||
|
||
# ATT: sarxl %ecx, %edx, %r10d | ||
# INTEL: sarx r10d, edx, ecx | ||
0x62,0x72,0x76,0x08,0xf7,0xd2 | ||
|
||
# ATT: sarxl %ecx, 123(%rax,%rbx,4), %edx | ||
# INTEL: sarx edx, dword ptr [rax + 4*rbx + 123], ecx | ||
0x62,0xf2,0x76,0x08,0xf7,0x94,0x98,0x7b,0x00,0x00,0x00 | ||
|
||
# ATT: sarxq %r9, %r15, %r11 | ||
# INTEL: sarx r11, r15, r9 | ||
0x62,0x52,0xb6,0x08,0xf7,0xdf | ||
|
||
# ATT: sarxq %r9, 123(%rax,%rbx,4), %r15 | ||
# INTEL: sarx r15, qword ptr [rax + 4*rbx + 123], r9 | ||
0x62,0x72,0xb6,0x08,0xf7,0xbc,0x98,0x7b,0x00,0x00,0x00 | ||
|
||
# ATT: sarxl %r18d, %r22d, %r26d | ||
# INTEL: sarx r26d, r22d, r18d | ||
0x62,0x6a,0x6e,0x00,0xf7,0xd6 | ||
|
||
# ATT: sarxl %r18d, 291(%r28,%r29,4), %r22d | ||
# INTEL: sarx r22d, dword ptr [r28 + 4*r29 + 291], r18d | ||
0x62,0x8a,0x6a,0x00,0xf7,0xb4,0xac,0x23,0x01,0x00,0x00 | ||
|
||
# ATT: sarxq %r19, %r23, %r27 | ||
# INTEL: sarx r27, r23, r19 | ||
0x62,0x6a,0xe6,0x00,0xf7,0xdf | ||
|
||
# ATT: sarxq %r19, 291(%r28,%r29,4), %r23 | ||
# INTEL: sarx r23, qword ptr [r28 + 4*r29 + 291], r19 | ||
0x62,0x8a,0xe2,0x00,0xf7,0xbc,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## shlx | ||
|
||
# ATT: shlxl %ecx, %edx, %r10d | ||
# INTEL: shlx r10d, edx, ecx | ||
0x62,0x72,0x75,0x08,0xf7,0xd2 | ||
|
||
# ATT: shlxl %ecx, 123(%rax,%rbx,4), %edx | ||
# INTEL: shlx edx, dword ptr [rax + 4*rbx + 123], ecx | ||
0x62,0xf2,0x75,0x08,0xf7,0x94,0x98,0x7b,0x00,0x00,0x00 | ||
|
||
# ATT: shlxq %r9, %r15, %r11 | ||
# INTEL: shlx r11, r15, r9 | ||
0x62,0x52,0xb5,0x08,0xf7,0xdf | ||
|
||
# ATT: shlxq %r9, 123(%rax,%rbx,4), %r15 | ||
# INTEL: shlx r15, qword ptr [rax + 4*rbx + 123], r9 | ||
0x62,0x72,0xb5,0x08,0xf7,0xbc,0x98,0x7b,0x00,0x00,0x00 | ||
|
||
# ATT: shlxl %r18d, %r22d, %r26d | ||
# INTEL: shlx r26d, r22d, r18d | ||
0x62,0x6a,0x6d,0x00,0xf7,0xd6 | ||
|
||
# ATT: shlxl %r18d, 291(%r28,%r29,4), %r22d | ||
# INTEL: shlx r22d, dword ptr [r28 + 4*r29 + 291], r18d | ||
0x62,0x8a,0x69,0x00,0xf7,0xb4,0xac,0x23,0x01,0x00,0x00 | ||
|
||
# ATT: shlxq %r19, %r23, %r27 | ||
# INTEL: shlx r27, r23, r19 | ||
0x62,0x6a,0xe5,0x00,0xf7,0xdf | ||
|
||
# ATT: shlxq %r19, 291(%r28,%r29,4), %r23 | ||
# INTEL: shlx r23, qword ptr [r28 + 4*r29 + 291], r19 | ||
0x62,0x8a,0xe1,0x00,0xf7,0xbc,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## shrx | ||
|
||
# ATT: shrxl %ecx, %edx, %r10d | ||
# INTEL: shrx r10d, edx, ecx | ||
0x62,0x72,0x77,0x08,0xf7,0xd2 | ||
|
||
# ATT: shrxl %ecx, 123(%rax,%rbx,4), %edx | ||
# INTEL: shrx edx, dword ptr [rax + 4*rbx + 123], ecx | ||
0x62,0xf2,0x77,0x08,0xf7,0x94,0x98,0x7b,0x00,0x00,0x00 | ||
|
||
# ATT: shrxq %r9, %r15, %r11 | ||
# INTEL: shrx r11, r15, r9 | ||
0x62,0x52,0xb7,0x08,0xf7,0xdf | ||
|
||
# ATT: shrxq %r9, 123(%rax,%rbx,4), %r15 | ||
# INTEL: shrx r15, qword ptr [rax + 4*rbx + 123], r9 | ||
0x62,0x72,0xb7,0x08,0xf7,0xbc,0x98,0x7b,0x00,0x00,0x00 | ||
|
||
# ATT: shrxl %r18d, %r22d, %r26d | ||
# INTEL: shrx r26d, r22d, r18d | ||
0x62,0x6a,0x6f,0x00,0xf7,0xd6 | ||
|
||
# ATT: shrxl %r18d, 291(%r28,%r29,4), %r22d | ||
# INTEL: shrx r22d, dword ptr [r28 + 4*r29 + 291], r18d | ||
0x62,0x8a,0x6b,0x00,0xf7,0xb4,0xac,0x23,0x01,0x00,0x00 | ||
|
||
# ATT: shrxq %r19, %r23, %r27 | ||
# INTEL: shrx r27, r23, r19 | ||
0x62,0x6a,0xe7,0x00,0xf7,0xdf | ||
|
||
# ATT: shrxq %r19, 291(%r28,%r29,4), %r23 | ||
# INTEL: shrx r23, qword ptr [r28 + 4*r29 + 291], r19 | ||
0x62,0x8a,0xe3,0x00,0xf7,0xbc,0xac,0x23,0x01,0x00,0x00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# RUN: llvm-mc --disassemble %s -triple=x86_64 | FileCheck %s --check-prefixes=ATT | ||
# RUN: llvm-mc --disassemble %s -triple=x86_64 -x86-asm-syntax=intel --output-asm-variant=1 | FileCheck %s --check-prefixes=INTEL | ||
|
||
## wrssd | ||
|
||
# ATT: wrssd %ecx, 123(%rax,%rbx,4) | ||
# INTEL: wrssd dword ptr [rax + 4*rbx + 123], ecx | ||
0x62,0xf4,0x7c,0x08,0x66,0x4c,0x98,0x7b | ||
|
||
# ATT: wrssd %r18d, 291(%r28,%r29,4) | ||
# INTEL: wrssd dword ptr [r28 + 4*r29 + 291], r18d | ||
0x62,0x8c,0x78,0x08,0x66,0x94,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## wrssq | ||
|
||
# ATT: wrssq %r9, 123(%rax,%rbx,4) | ||
# INTEL: wrssq qword ptr [rax + 4*rbx + 123], r9 | ||
0x62,0x74,0xfc,0x08,0x66,0x4c,0x98,0x7b | ||
|
||
# ATT: wrssq %r19, 291(%r28,%r29,4) | ||
# INTEL: wrssq qword ptr [r28 + 4*r29 + 291], r19 | ||
0x62,0x8c,0xf8,0x08,0x66,0x9c,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## wrussd | ||
|
||
# ATT: wrussd %ecx, 123(%rax,%rbx,4) | ||
# INTEL: wrussd dword ptr [rax + 4*rbx + 123], ecx | ||
0x62,0xf4,0x7d,0x08,0x65,0x4c,0x98,0x7b | ||
|
||
# ATT: wrussd %r18d, 291(%r28,%r29,4) | ||
# INTEL: wrussd dword ptr [r28 + 4*r29 + 291], r18d | ||
0x62,0x8c,0x79,0x08,0x65,0x94,0xac,0x23,0x01,0x00,0x00 | ||
|
||
## wrussq | ||
|
||
# ATT: wrussq %r9, 123(%rax,%rbx,4) | ||
# INTEL: wrussq qword ptr [rax + 4*rbx + 123], r9 | ||
0x62,0x74,0xfd,0x08,0x65,0x4c,0x98,0x7b | ||
|
||
# ATT: wrussq %r19, 291(%r28,%r29,4) | ||
# INTEL: wrussq qword ptr [r28 + 4*r29 + 291], r19 | ||
0x62,0x8c,0xf9,0x08,0x65,0x9c,0xac,0x23,0x01,0x00,0x00 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.