-
Notifications
You must be signed in to change notification settings - Fork 409
WIP: Implement vectorized s2m on PPC #7901
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: master
Are you sure you want to change the base?
Conversation
08f39f7
to
b3884df
Compare
0d7be95
to
df618e2
Compare
you can describe more clearly what needs to be done. expected input and expected output, bit-based conversion or byte-based conversion, or others. otherwise, it can be reviewed with speculations of the semantic. |
c979367
to
49a374e
Compare
afe0e7c
to
20a7fd0
Compare
a7a8726
to
cc68f2b
Compare
2ef9b4c
to
5a30c08
Compare
73a8b65
to
e61c7c1
Compare
8e57923
to
96cfe5b
Compare
8901887
to
8a4209a
Compare
Signed-off-by: midronij <[email protected]>
generateTrg1Src1Imm2Instruction(cg, TR::InstOpCode::rldimi, node, tmpGPR, srcReg, 32, 0x000000FF00000000); | ||
} else { | ||
generateTrg1Src1Imm2Instruction(cg, TR::InstOpCode::rldicr, node, tmpGPR, srcReg, 24, 0xFFFFFFFF00000000); | ||
generateTrg1Src1Imm2Instruction(cg, TR::InstOpCode::rlwimi, node, tmpGPR, srcReg, 0, 0x000000FF); |
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.
rldimi
is more appropriate here, since rlwimi clears the top 32bits automatically.
Implement PPC codegen for
s2m
(Short to Mask) on P8+. This operation accepts two byte elements of a given boolean array (read from memory using a halfword load) and converts it into a two-element LongVector mask with the corresponding boolean values.