forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86][MC] Support Enc/Dec for EGPR for promoted AMX-TILE instruction (l…
…lvm#76210) R16-R31 was added into GPRs in llvm#70958, This patch supports the encoding/decoding for promoted AMX-TILE instruction in EVEX space. RFC: https://discourse.llvm.org/t/rfc-design-for-apx-feature-egpr-and-ndd-support/73031/4
- Loading branch information
Showing
4 changed files
with
106 additions
and
29 deletions.
There are no files selected for viewing
This file contains 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 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,22 @@ | ||
# 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 | ||
|
||
# ATT: ldtilecfg 291(%r28,%r29,4) | ||
# INTEL: ldtilecfg [r28 + 4*r29 + 291] | ||
0x62,0x9a,0x78,0x08,0x49,0x84,0xac,0x23,0x01,0x00,0x00 | ||
|
||
# ATT: sttilecfg 291(%r28,%r29,4) | ||
# INTEL: sttilecfg [r28 + 4*r29 + 291] | ||
0x62,0x9a,0x79,0x08,0x49,0x84,0xac,0x23,0x01,0x00,0x00 | ||
|
||
# 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 | ||
|
||
# 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 | ||
|
||
# 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 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,24 @@ | ||
# RUN: llvm-mc -triple x86_64 --show-encoding %s | FileCheck %s | ||
# RUN: not llvm-mc -triple i386 -show-encoding %s 2>&1 | FileCheck %s --check-prefix=ERROR | ||
|
||
# ERROR-COUNT-5: error: | ||
# ERROR-NOT: error: | ||
# CHECK: ldtilecfg 291(%r28,%r29,4) | ||
# CHECK: encoding: [0x62,0x9a,0x78,0x08,0x49,0x84,0xac,0x23,0x01,0x00,0x00] | ||
ldtilecfg 291(%r28,%r29,4) | ||
|
||
# CHECK: sttilecfg 291(%r28,%r29,4) | ||
# CHECK: encoding: [0x62,0x9a,0x79,0x08,0x49,0x84,0xac,0x23,0x01,0x00,0x00] | ||
sttilecfg 291(%r28,%r29,4) | ||
|
||
# CHECK: tileloadd 291(%r28,%r29,4), %tmm6 | ||
# CHECK: encoding: [0x62,0x9a,0x7b,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00] | ||
tileloadd 291(%r28,%r29,4), %tmm6 | ||
|
||
# CHECK: tileloaddt1 291(%r28,%r29,4), %tmm6 | ||
# CHECK: encoding: [0x62,0x9a,0x79,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00] | ||
tileloaddt1 291(%r28,%r29,4), %tmm6 | ||
|
||
# CHECK: tilestored %tmm6, 291(%r28,%r29,4) | ||
# CHECK: encoding: [0x62,0x9a,0x7a,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00] | ||
tilestored %tmm6, 291(%r28,%r29,4) |
This file contains 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,21 @@ | ||
# RUN: llvm-mc -triple x86_64 -x86-asm-syntax=intel -output-asm-variant=1 --show-encoding %s | FileCheck %s | ||
|
||
# CHECK: ldtilecfg [r28 + 4*r29 + 291] | ||
# CHECK: encoding: [0x62,0x9a,0x78,0x08,0x49,0x84,0xac,0x23,0x01,0x00,0x00] | ||
ldtilecfg [r28 + 4*r29 + 291] | ||
|
||
# CHECK: sttilecfg [r28 + 4*r29 + 291] | ||
# CHECK: encoding: [0x62,0x9a,0x79,0x08,0x49,0x84,0xac,0x23,0x01,0x00,0x00] | ||
sttilecfg [r28 + 4*r29 + 291] | ||
|
||
# CHECK: tileloadd tmm6, [r28 + 4*r29 + 291] | ||
# CHECK: encoding: [0x62,0x9a,0x7b,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00] | ||
tileloadd tmm6, [r28 + 4*r29 + 291] | ||
|
||
# CHECK: tileloaddt1 tmm6, [r28 + 4*r29 + 291] | ||
# CHECK: encoding: [0x62,0x9a,0x79,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00] | ||
tileloaddt1 tmm6, [r28 + 4*r29 + 291] | ||
|
||
# CHECK: tilestored [r28 + 4*r29 + 291], tmm6 | ||
# CHECK: encoding: [0x62,0x9a,0x7a,0x08,0x4b,0xb4,0xac,0x23,0x01,0x00,0x00] | ||
tilestored [r28 + 4*r29 + 291], tmm6 |