blob: 59c4edfbcd251deffc7214cd18a716862423284c [file] [log] [blame]
Aleksei Sidorin9e447e92016-09-28 11:04:42 +00001
2unsigned char asmFunc(unsigned char a, unsigned char b) {
3 unsigned int la = a;
4 unsigned int lb = b;
5 unsigned int bigres;
6 unsigned char res;
7 __asm__ ("0:\n1:\n" : [bigres] "=la"(bigres) : [la] "0"(la), [lb] "c"(lb) :
8 "edx", "cc");
9 res = bigres;
10 return res;
11}