-
Notifications
You must be signed in to change notification settings - Fork 396
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
Check feature instead of Flag for VFE1 facility #6615
Conversation
Check the feature query for VFE1 when checking if opcode is supported for SIMD or not instead of flags, which are not maintained and would be cleaned up. Signed-off-by: Rahil Shah <rahil@ca.ibm.com>
@joransiu Can I please get your review on this? While collecting performance results for Vector API JEP on Linux on Z15, I was seeing an issue where the @Spencer-Comin changes in eclipse-openj9/openj9#14535 might be falling victim of same issue, can you check, if you are getting VFMA generated for Float on Z14? [1]. https://github.com/eclipse/omr/blob/edf2ae5033cb412348dbeb74d31bab2d26fe933d/compiler/z/env/OMRCPU.cpp#L516-L535 |
This is quite odd. It's not just VectorFacilityEnhancement1 that doesn't set the respective _flags. The other setSupports h/w facility seemed orphaned too. I tried going back in history, and see that prior to migration of the CPU features from OpenJ9 to OMR, we set the flags : https://github.com/eclipse-openj9/openj9/blob/4acd33ce24d2148092e4a750a0ad9603717ef740/runtime/compiler/z/env/J9CPU.cpp#L333-L336 That said, now we set the cpu We probably should clean up the stale getSupports/setSupports H/W features from OMRCPU.cpp to avoid future confusion. |
@joransiu Looking at the code base, we only used the getSupport facility for the VFE1, all of the other places we were using [1]. #4339 |
Looks like it's using
From instruction selection in log:
|
@Spencer-Comin just to confirm, you tried this on Linux on Z14 right? Where we should be using VFMA ? |
@Spencer-Comin if this is the same case, then Can I request you to fix the Math.fma evaluators test it out? If everything is OK, please open up PR with the fix. |
Jenkins build zlinux zos |
@0xdaryl Can I request you to merge this change as now jenkins builds are done and Joran has reviewed changes? |
Check the feature query for VFE1 when checking if opcode is supported
for SIMD or not instead of flags, which are not maintained and would be
cleaned up.
Signed-off-by: Rahil Shah rahil@ca.ibm.com