-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[BUG]: ICX Assembly comments for AVX2 Intrinsics are missing when using cmake #6550
Comments
When I click the Green Checkmark to see the compilation options used the compiler on the left shows: and the compiler on the right shows: Sadly, if I add Another thing that is interesting is the compiler section on the left has slightly different assembly for the vfmadd213pd instruction: It's decimal vs hex. I'm not sure if that is related to this bug or not, or if I somehow enabled some formatting feature. |
ASM shown when using CMake, is equivalent to using 'Link to binary' when compiling a file directly. (It is compiled and then the executable is disassembled with objdump) There is no equivalent to |
Sure you can.
Hope that helps. Should I file a new bug or can this one be re-opened? Thanks. |
You're free to send a PR |
Sadly, due to my job I'm not allowed to contribute to open source projects. I wish I could. Could the 'wont-fix' flag be removed? Thanks. |
Describe the bug
If I set up source editor to use
icx-2023.1.0
with some C code that usesAVX2 Intrinsics
there will be comments next to some of the corresponding assembly instructions. i.e.# AlignMOV convert to UnAlignMOV
,# ymm0 = (ymm1 * ymm0) + mem
or the ever important# 32-byte Spill
.But if I build the same exact code with cmake these comments are missing. Maybe I'm missing a flag in the CMakeLists.txt to enable this feature in Compiler Explorer?
Steps to reproduce
Expected behavior
Both compiler sections should show identical content, including the assembly comments.
square:
vmovupd ymm1, ymmword ptr [rdi] # AlignMOV convert to UnAlignMOV
vmovupd ymm0, ymmword ptr [rdi + 8] # AlignMOV convert to UnAlignMOV
vfmadd213pd ymm0, ymm1, ymmword ptr [rdi + 16] # ymm0 = (ymm1 * ymm0) + mem
Reproduction link
https://godbolt.org/z/v7zqfv9vd
Screenshots
Operating System
macOS 14.5
Browser version
Safari 17.5
The text was updated successfully, but these errors were encountered: