Commit a58edbde authored by Matthias Braun's avatar Matthias Braun
Browse files

more asm trickery

parent 886df45f
/*$ -fomit-frame-pointer $*/
int main(void)
int in = 42;
int out;
"xorl %%eax,%%eax\n"
"xorl %%ebx,%%ebx\n"
"xorl %%ecx,%%ecx\n"
"xorl %%edx,%%edx\n"
"xorl %%esi,%%esi\n"
"xorl %%edi,%%edi\n"
"movl %1,%0\n"
"incl %0\n"
: "=r" (out) : "r" (in)
: "eax", "ebx", "ecx", "edx", "esi", "edi", "cc"
return out != 43;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment