-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fixed Instruction Selection Patterns for CoreV SIMD Insert and SIMD E… #91
Fixed Instruction Selection Patterns for CoreV SIMD Insert and SIMD E… #91
Conversation
…xtract Instructions
can you add a crash testcase? |
|
- cv.insert.h - cv.insert.b - cv.extract.h - cv.extract.b - cv.extractu.h - cv.extractu.b - Changes to be committed: new file: simd-extract.ll modified: simd-insert.ll
done |
I don't know why your patch isn't out triggering CI. maybe @PaoloS02 help approve to trigger CI. I don't have permission. |
Sorry for the delay, we've had the chance to have a hard look at the patch and from what I see in the patch we are silently truncating the parameter to 6 bits. I don't think that's very developer friendly. It would technically be better to let the compiler crash if someone passes a number that is not 6 bits as there wouldn't be an instruction to match that. A compiler crash is not a good thing either so it is better to error earlier. Would it be possible to split this patch so that here you correct the sign of the operand of insert/extract in the pattern matching as you are already doing but without the truncation |
Yes, sure. |
Hi, @PaoloS02 @ChunyuLiao I have reverted the unwanted changes and fixed the sign of immediate operand in the instruction selection pattern. For the generation of clang errors, I have done a separate PR just like you mentioned. |
Looks good! I'll now review the related PR #93 |
…xtract Instructions