-
-
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
Wrong output when code contains asm directives. #1470
Comments
This is an issue in the assembly output parser, but it may not be a trivial issue to fix. If you turn off the assembly directive filtering (button labeled Your The I don't know how frequently |
Fair enough. As I said, I reckon this is really a corner case which probably don't affect the vast majority of users. I could suggest implementing a simple parser for It's a shame that, as far as I'm aware, there's no "as preprocessor" that could be used by CE to process the directives. Also, feel free to close the issue if you see the "fix" as not worth doing. |
This is an interesting case! I think it'd be fun to support the conditionals as a special "don't filter them" case. |
On second thought, given the backlog, I'm going to close this. I wouldn't be against it, but it's niche enough not to even be on the "maybe one day" pile; sorry! |
I was playing with an idea given in [1] which uses asm directives. In summary:
Given the
.ifnc
/.else
directives, the output should show either the 1stmull
instruction or the 2nd one. It shows both. The complete example can be seen in [2]. Notice that when the code is compiled and disassembled (i.e., option 11010 is selected) the output is as expected. Therefore, it seems to be a bug in CE's parser.I reckon this issue is a corner case but I hope this helps anyway.
[1] https://stackoverflow.com/questions/13617962/can-gcc-emit-different-instruction-mnemonics-when-choosing-between-multiple-alte
[2] https://godbolt.org/z/Zen61D
The text was updated successfully, but these errors were encountered: