target-i386: Use mulu2 and muls2
[qemu/pbrook.git] / tests / tcg / openrisc / test_lf_rem.c
blobbd6090d6948aca3287fa7224a8bcaeb720fcce75
1 #include <stdio.h>
3 int main(void)
5 float a, b, c;
6 float result;
8 b = 101.5;
9 c = 10;
10 result = 1.5;
11 /* __asm
12 ("lf.rem.d %0, %1, %2\n\t"
13 : "=r"(a)
14 : "r"(b), "r"(c)
16 if (a != result) {
17 printf("lf.rem.d error\n");
18 return -1;
19 }*/
21 __asm
22 ("lf.rem.s %0, %1, %2\n\t"
23 : "=r"(a)
24 : "r"(b), "r"(c)
26 if (a != result) {
27 printf("lf.rem.s error\n");
28 return -1;
31 return 0;