Created
March 6, 2018 09:10
-
-
Save kaityo256/2a3628b77f9a396e57d718691f287d01 to your computer and use it in GitHub Desktop.
A sample code causing SIGILL on MacOS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int main(void) { | |
| __asm__("movl $0, 0(%rbp,%rdx,4)"); | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above code causes SIGILL on MacOS X (High Sierra 10.13.3).
Here is a result for g++.
Clang++ has the same problem.