hw/dma/xilinx_axidma: remove dead code
[qemu/ar7.git] / tests / tcg / openrisc / test_lf_add.c
blobe00212dad659d02d916878595f687b833d16cefe
1 #include <stdio.h>
3 int main(void)
5 float a, b;
6 float res2;
8 a = 1.5;
9 b = 2.5;
10 res2 = 4.0;
11 __asm
12 ("lf.add.s %0, %0, %1\n\t"
13 : "+r"(a)
14 : "r"(b)
16 if (a != res2) {
17 printf("lf.add.s error, %f\n", a);
18 return -1;
21 /* double c, d;
22 double res1;
24 c = 1.5;
25 d = 1.5;
26 res1 = 3.00;
27 __asm
28 ("lf.add.d %0, %1, %2\n\t"
29 : "+r"(c)
30 : "r"(d)
33 if ((e - res1) > 0.002) {
34 printf("lf.add.d error, %f\n", e - res1);
35 return -1;
36 }*/
38 return 0;