Add qemu 2.4.0
[kvmfornfv.git] / qemu / tests / tcg / openrisc / test_lf_mul.c
1 #include <stdio.h>
2
3 int main(void)
4 {
5     float a, b, c;
6     float result;
7
8     b = 1.5;
9     c = 4.0;
10     result = 6.0;
11     __asm
12     ("lf.mul.s   %0, %1, %2\n\t"
13      : "=r"(a)
14      : "r"(b), "r"(c)
15     );
16     if (a != result) {
17         printf("lf.mul.s error\n");
18         return -1;
19     }
20
21     return 0;
22 }