Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 480 Bytes
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
float x = 0.5f;
float y = 1.0f;
float z = 1000.0f;
int main()
{
printf("%f\n", z);
__asm__ __volatile__(
" mov %0, %2\n" /* presunuti prvniho vstupniho operandu na vystup */
: "=r" (z) /* vystupni operand */
: "r" (x), "r" (y) /* vstupni operandy */
: /* registry pouzivane uvnitr kodu */
);
printf("%f\n", z);
return 0;
}