-
Notifications
You must be signed in to change notification settings - Fork 14.6k
[PowerPC] Implement vector uncompress instructions #150702
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
base: main
Are you sure you want to change the base?
Changes from all commits
f9e2d2b
95870ef
6a0dc87
8c921fb
5b58786
3486f50
962ff02
49fe55f
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 |
---|---|---|
|
@@ -45,6 +45,20 @@ multiclass XOForm_RTAB5_L1r<bits<6> opcode, bits<9> xo, dag OOL, dag IOL, | |
} | ||
} | ||
|
||
class VXForm_VRTAB5<bits<11> xo, dag OOL, dag IOL, string asmstr, | ||
list<dag> pattern> : I<4, OOL, IOL, asmstr, NoItinerary> { | ||
bits<5> VRT; | ||
bits<5> VRA; | ||
bits<5> VRB; | ||
|
||
let Pattern = pattern; | ||
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. nit: since the value of the 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. this should be kept so we can easily add patterns to these instructions definitions in the future when we define intrinsic or identify specific patterns that should be matched to these. |
||
|
||
let Inst{6 -10} = VRT; | ||
let Inst{11 -15} = VRA; | ||
let Inst{16 -20} = VRB; | ||
let Inst{21 -31} = xo; | ||
} | ||
|
||
let Predicates = [IsISAFuture] in { | ||
defm SUBFUS : XOForm_RTAB5_L1r<31, 72, (outs g8rc:$RT), | ||
(ins g8rc:$RA, g8rc:$RB, u1imm:$L), | ||
|
@@ -85,4 +99,21 @@ let Predicates = [HasVSX, IsISAFuture] in { | |
(ins vsrprc:$XTp, memr:$RA, g8rc:$RB), | ||
"stxvprll $XTp, $RA, $RB", IIC_LdStLFD, []>; | ||
} | ||
|
||
def VUCMPRHN : VXForm_VRTAB5<3, (outs vrrc:$VRT), (ins vrrc:$VRA, vrrc:$VRB), | ||
"vucmprhn $VRT, $VRA, $VRB", []>; | ||
def VUCMPRLN : VXForm_VRTAB5<67, (outs vrrc:$VRT), (ins vrrc:$VRA, vrrc:$VRB), | ||
"vucmprln $VRT, $VRA, $VRB", []>; | ||
def VUCMPRHB | ||
: VXForm_VRTAB5<131, (outs vrrc:$VRT), (ins vrrc:$VRA, vrrc:$VRB), | ||
"vucmprhb $VRT, $VRA, $VRB", []>; | ||
def VUCMPRLB | ||
: VXForm_VRTAB5<195, (outs vrrc:$VRT), (ins vrrc:$VRA, vrrc:$VRB), | ||
"vucmprlb $VRT, $VRA, $VRB", []>; | ||
def VUCMPRHH | ||
: VXForm_VRTAB5<259, (outs vrrc:$VRT), (ins vrrc:$VRA, vrrc:$VRB), | ||
"vucmprhh $VRT, $VRA, $VRB", []>; | ||
def VUCMPRLH | ||
: VXForm_VRTAB5<323, (outs vrrc:$VRT), (ins vrrc:$VRA, vrrc:$VRB), | ||
"vucmprlh $VRT, $VRA, $VRB", []>; | ||
} |
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.
I am curious that there is no opCode in the new define instruction ?
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.
part of the the class it's inheriting from
: I<4,...>
. The opcode for this class of instructions is 4.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.
thanks , I see