net: Convert net filter code to use object property iterators
[qemu/ar7.git] / tests / tcg / openrisc / test_divu.c
blobbff9e3ea590b408d700a880939bd2624c111f2fb
1 #include <stdio.h>
3 int main(void)
5 int a, b, c;
6 int result;
8 b = 0x120;
9 c = 0x4;
10 result = 0x48;
12 __asm
13 ("l.divu %0, %1, %2\n\t"
14 : "=r"(a)
15 : "r"(b), "r"(c)
17 if (a != result) {
18 printf("divu error\n");
19 return -1;
22 result = 0x4;
23 __asm
24 ("l.divu %0, %1, %0\n\t"
25 : "+r"(a)
26 : "r"(b)
28 if (a != result) {
29 printf("divu error\n");
30 return -1;
33 return 0;