qapi/error: Check format string argument in error_*prepend()
[qemu/armbru.git] / tests / tcg / openrisc / test_lf_mul.c
blobbc8ad800c74dd0ee3b3cc6bb745482a2028cccb0
1 #include <stdio.h>
3 int main(void)
5 float a, b, c;
6 float result;
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)
16 if (a != result) {
17 printf("lf.mul.s error\n");
18 return -1;
21 return 0;