/*
* An example of using placeholders
*
* 使用占位符
*/
#include <stdio.h>
int main()
{
int data1 = 10;
int data2 = 20;
int result = 0;
__asm("imull %1, %2\n\t"
"movl %2, %0\n\t"
:"=r"(result)
: "r"(data1), "r"(data2));
printf("The result is %d\n", result);
return 0;
}