-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[AMDGPU][True16][MC] true16 for minimummaximum/max/min/max3/min3 #124184
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1947,9 +1947,6 @@ multiclass VOP3Only_Realtriple_gfx12<bits<10> op, bit isSingle = 0> : | |
multiclass VOP3Only_Real_Base_gfx12<bits<10> op> : | ||
VOP3_Real_Base<GFX12Gen, op, NAME, 1/*IsSingle*/>; | ||
|
||
multiclass VOP3Only_Realtriple_t16_gfx12<bits<10> op> : | ||
VOP3Only_Realtriple<GFX12Gen, op>; | ||
|
||
multiclass VOP3_Realtriple_t16_gfx12<bits<10> op, string asmName, string opName = NAME, | ||
string pseudo_mnemonic = "", bit isSingle = 0> : | ||
VOP3_Realtriple_with_name<GFX12Gen, op, opName, asmName, pseudo_mnemonic, isSingle>; | ||
|
@@ -1960,6 +1957,16 @@ multiclass VOP3_Realtriple_t16_and_fake16_gfx12<bits<10> op, string asmName, str | |
defm _fake16:VOP3_Realtriple_t16_gfx12<op, asmName, opName#"_fake16", pseudo_mnemonic, isSingle>; | ||
} | ||
|
||
multiclass VOP3Only_Realtriple_t16_gfx12<bits<10> op, string asmName, | ||
string opName = NAME, string pseudo_mnemonic = ""> | ||
: VOP3_Realtriple_t16_gfx12<op, asmName, opName, pseudo_mnemonic, 1>; | ||
|
||
multiclass VOP3Only_Realtriple_t16_and_fake16_gfx12<bits<10> op, string asmName, | ||
string opName = NAME, string pseudo_mnemonic = ""> { | ||
defm _t16 : VOP3Only_Realtriple_t16_gfx12<op, asmName, opName#"_t16", pseudo_mnemonic>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For now "t16_and_fake16" define t16 and fake16 together. In the end the fake16 will be removed and the change will be something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, I see. |
||
defm _fake16 : VOP3Only_Realtriple_t16_gfx12<op, asmName, opName#"_fake16", pseudo_mnemonic>; | ||
} | ||
|
||
multiclass VOP3be_Real_with_name_gfx12<bits<10> op, string opName, | ||
string asmName, bit isSingle = 0> { | ||
defvar ps = !cast<VOP3_Pseudo>(opName#"_e64"); | ||
|
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.
Nit: As Matt suggested, you could do something like
Register NewDst = MRI.createVirtualRegister(MRI->getNamedOperand(NewOpcode, AMDGPU::vdst).getRegClass())). However, we still can't combine the 16 and 32 bit switch cases due to the opsel0 operand.