-
Notifications
You must be signed in to change notification settings - Fork 15k
AMDGPU: Ensure both wavesize features are not set #159234
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 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
619f48d
AMDGPU: Ensure both wavesize features are not set
arsenm 3b4d5a3
Convert wave_any test to update_mc_test_checks
arsenm 86f3a94
update wave_any test
arsenm 3fb0340
replace xor
arsenm 5363f0a
Test disassemble with both modes active
arsenm 48ea8fe
Preserve multiple set assembler behavior with assembler-only handling
arsenm 294ce1d
inline
arsenm 8e65760
Fix comments
arsenm 36f07bf
Update llvm/test/MC/AMDGPU/wavesize-feature-unsupported-target.s
arsenm 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| // RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=+wavefrontsize64 -o - %s | FileCheck -check-prefix=GFX1250 %s | ||
| // RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -mattr=+wavefrontsize32 -o - %s | FileCheck -check-prefix=GFX900 %s | ||
|
|
||
| // Both sure setting both modes is supported at the same time. | ||
arsenm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| // RUN: llvm-mc -triple=amdgcn -mcpu=gfx1010 -mattr=+wavefrontsize32,+wavefrontsize64 %s | FileCheck -check-prefixes=GFX10 %s | ||
|
|
||
| // Test that there is no assertion when using an explicit | ||
| // wavefrontsize attribute on a target which does not support it. | ||
|
|
||
| // GFX1250: v_add_f64_e32 v[0:1], 1.0, v[0:1] | ||
| // GFX900: v_add_f64 v[0:1], 1.0, v[0:1] | ||
| // GFX10: v_add_f64 v[0:1], 1.0, v[0:1] | ||
| v_add_f64 v[0:1], 1.0, v[0:1] | ||
|
|
||
| // GFX1250: v_cmp_eq_u32_e64 s[0:1], 1.0, s1 | ||
| // GFX900: v_cmp_eq_u32_e64 s[0:1], 1.0, s1 | ||
| // GFX10: v_cmp_eq_u32_e64 s[0:1], 1.0, s1 | ||
| v_cmp_eq_u32_e64 s[0:1], 1.0, s1 | ||
|
|
||
| // GFX1250: v_cndmask_b32_e64 v1, v2, v3, s[0:1] | ||
| // GFX900: v_cndmask_b32_e64 v1, v2, v3, s[0:1] | ||
| // GFX10: v_cndmask_b32_e64 v1, v2, v3, s[0:1] | ||
| v_cndmask_b32 v1, v2, v3, s[0:1] | ||
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,13 @@ | ||
| # RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -mattr=+wavefrontsize64 -disassemble -o - %s | FileCheck %s | ||
|
|
||
| # Make sure there's no assertion when trying to use an unsupported | ||
| # wave64 on a wave32-only target | ||
|
|
||
| # CHECK: v_add_f64_e32 v[0:1], 1.0, v[0:1] | ||
| 0xf2,0x00,0x00,0x04 | ||
|
|
||
| # CHECK: v_cmp_eq_u32_e64 s[0:1], 1.0, s1 | ||
| 0x00,0x00,0x4a,0xd4,0xf2,0x02,0x00,0x00 | ||
|
|
||
| # CHECK: v_cndmask_b32_e64 v1, v2, v3, s[0:1] | ||
| 0x01,0x00,0x01,0xd5,0x02,0x07,0x02,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,13 @@ | ||
| # RUN: llvm-mc -triple=amdgcn -mcpu=gfx900 -mattr=+wavefrontsize32 -disassemble -o - %s | FileCheck %s | ||
|
|
||
| # Make sure there's no assertion when trying to use an unsupported | ||
| # wave32 on a wave64-only target | ||
|
|
||
| # CHECK: v_add_f64 v[0:1], 1.0, v[0:1] | ||
| 0x00,0x00,0x80,0xd2,0xf2,0x00,0x02,0x00 | ||
|
|
||
| # CHECK: v_cmp_eq_u32_e64 s[0:1], 1.0, s1 | ||
| 0x00,0x00,0xca,0xd0,0xf2,0x02,0x00,0x00 | ||
|
|
||
| # CHECK: v_cndmask_b32_e64 v1, v2, v3, s[0:1] | ||
| 0x01,0x00,0x00,0xd1,0x02,0x07,0x02,0x00 |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Both sure setting"???