-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[AARCH64] Add assembly/disassembly for FMMLA instructions #113313
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 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a9b15e3
[AARCH64] Add assembly/disassembly for FMMLA instructions
Lukacma 27aeedb
Remove unnecessary ElementSize property and clean-up tests
Lukacma ee2f9e8
Cleaned up more tests
Lukacma 57188ca
Merge branch 'main' into sve-fmmla
Lukacma 963e26b
Merge branch 'main' into sve-fmmla
Lukacma 15e117e
Merge branch 'main' into sve-fmmla
Lukacma efaa4a8
fix test
Lukacma 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
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
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
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,18 @@ | ||
| // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve-f16f32mm 2>&1 < %s | FileCheck %s | ||
|
|
||
| // --------------------------------------------------------------------------// | ||
| // FMMLA (SVE) | ||
|
|
||
| // Invalid element size | ||
|
|
||
| fmmla z0.s, z1.b, z2.b | ||
| // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction requires: f8f32mm | ||
| fmmla z0.d, z1.h, z2.h | ||
| // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width | ||
|
|
||
| // Mis-matched element size | ||
|
|
||
| fmmla z0.s, z1.h, z2.s | ||
| // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width | ||
| fmmla z0.s, z1.d, z2.h | ||
| // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width |
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,41 @@ | ||
|
|
||
| // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve,+sve-f16f32mm < %s \ | ||
| // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST | ||
| // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ | ||
| // RUN: | FileCheck %s --check-prefix=CHECK-ERROR | ||
| // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve,+sve-f16f32mm < %s \ | ||
| // RUN: | llvm-objdump -d --mattr=+sve,+sve-f16f32mm - | FileCheck %s --check-prefix=CHECK-INST | ||
| // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve,+sve-f16f32mm < %s \ | ||
| // RUN: | llvm-objdump -d --mattr=-sve2p1 - | FileCheck %s --check-prefix=CHECK-UNKNOWN | ||
| // Disassemble encoding and check the re-encoding (-show-encoding) matches. | ||
| // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve,+sve-f16f32mm < %s \ | ||
| // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \ | ||
| // RUN: | llvm-mc -triple=aarch64 -mattr=+sve,+sve-f16f32mm -disassemble -show-encoding \ | ||
| // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST | ||
|
|
||
|
|
||
jthackray marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| movprfx z23, z31 | ||
| fmmla z23.s, z13.h, z8.h // 01100100-00101000-11100101-10110111 | ||
| // CHECK-INST: movprfx z23, z31 | ||
| // CHECK-INST: fmmla z23.s, z13.h, z8.h | ||
| // CHECK-ENCODING: [0xb7,0xe5,0x28,0x64] | ||
| // CHECK-ERROR: instruction requires: sve-f16f32mm | ||
| // CHECK-UNKNOWN: 6428e5b7 <unknown> | ||
|
|
||
| fmmla z0.s, z0.h, z0.h // 01100100-00100000-11100100-00000000 | ||
| // CHECK-INST: fmmla z0.s, z0.h, z0.h | ||
| // CHECK-ENCODING: [0x00,0xe4,0x20,0x64] | ||
| // CHECK-ERROR: instruction requires: sve-f16f32mm | ||
| // CHECK-UNKNOWN: 6420e400 <unknown> | ||
|
|
||
| fmmla z23.s, z13.h, z8.h // 01100100-00101000-11100101-10110111 | ||
| // CHECK-INST: fmmla z23.s, z13.h, z8.h | ||
| // CHECK-ENCODING: [0xb7,0xe5,0x28,0x64] | ||
| // CHECK-ERROR: instruction requires: sve-f16f32mm | ||
| // CHECK-UNKNOWN: 6428e5b7 <unknown> | ||
|
|
||
| fmmla z31.s, z31.h, z31.h // 01100100-00111111-11100111-11111111 | ||
| // CHECK-INST: fmmla z31.s, z31.h, z31.h | ||
| // CHECK-ENCODING: [0xff,0xe7,0x3f,0x64] | ||
| // CHECK-ERROR: instruction requires: sve-f16f32mm | ||
| // CHECK-UNKNOWN: 643fe7ff <unknown> | ||
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,24 @@ | ||
| // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+f8f16mm 2>&1 < %s| FileCheck %s | ||
|
|
||
| // ------------------------------------------------------------------------- // | ||
| // Invalid element width | ||
|
|
||
| fmmla z21.b, z10.b, z21.b | ||
| // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width | ||
| // CHECK-NEXT: fmmla z21.b, z10.b, z21.b | ||
| // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
|
||
| fmmla z21.d, z10.b, z21.b | ||
| // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width | ||
| // CHECK-NEXT: fmmla z21.d, z10.b, z21.b | ||
| // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
|
||
| fmmla z21.s, z10.h, z21.h | ||
| // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction requires: sve-f16f32mm | ||
| // CHECK-NEXT: fmmla z21.s, z10.h, z21.h | ||
| // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: | ||
|
|
||
| fmmla z21.s, z10.s, z21.s | ||
| // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction requires: f32mm | ||
| // CHECK-NEXT: fmmla z21.s, z10.s, z21.s | ||
| // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: |
Oops, something went wrong.
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.