--- /dev/null
+#as: -mcpu=ck807f
+#objdump: -d
+
+
+.*: +file format .*csky.*
+
+Disassembly of section \.text:
+
+00000000 <\.text>:
+[ ]+[0-9a-f]+:[ ]+f4003910[ ]+flrwd[ ]+fr0, 8\.721012e\+150
+[ ]+[0-9a-f]+:[ ]+417f3259[ ]+\.long[ ]+0x417f3259
+[ ]+[0-9a-f]+:[ ]+5f45504f[ ]+\.long[ ]+0x5f45504f
--- /dev/null
+flrwd fr0, 8.721012e+150
Disassembly of section \.text:
#...
-\s*[0-9a-f]*:\s*f4003882\s*flrws\s*fr2,\s*3\.140000
-\s*[0-9a-f]*:\s*f50b1c02\s*fmovis\s*fr2,\s*1\.500000
-\s*[0-9a-f]*:\s*f51b1c02\s*fmovis\s*fr2,\s*-1\.500000
-\s*[0-9a-f]*:\s*f48a1c02\s*fmovis\s*fr2,\s*2\.500000
+\s*[0-9a-f]*:\s*f4003882\s*flrws\s*fr2,\s*3\.14
+\s*[0-9a-f]*:\s*f50b1c02\s*fmovis\s*fr2,\s*1\.5
+\s*[0-9a-f]*:\s*f51b1c02\s*fmovis\s*fr2,\s*-1\.5
+\s*[0-9a-f]*:\s*f48a1c02\s*fmovis\s*fr2,\s*2\.5
#...
-\s*[0-9a-f]*:\s*f4003952\s*flrwd\s*fr2,\s*3\.140000
-\s*[0-9a-f]*:\s*f48a1e02\s*fmovid\s*fr2,\s*2\.500000
-\s*[0-9a-f]*:\s*f49a1e02\s*fmovid\s*fr2,\s*-2\.500000
-\s*[0-9a-f]*:\s*f51b1e02\s*fmovid\s*fr2,\s*-1\.500000
+\s*[0-9a-f]*:\s*f4003952\s*flrwd\s*fr2,\s*3\.14
+\s*[0-9a-f]*:\s*f48a1e02\s*fmovid\s*fr2,\s*2\.5
+\s*[0-9a-f]*:\s*f49a1e02\s*fmovid\s*fr2,\s*-2\.5
+\s*[0-9a-f]*:\s*f51b1e02\s*fmovid\s*fr2,\s*-1\.5
\s*[0-9a-f]*:\s*4048f5c3\s*\.long\s*0x4048f5c3
\s*[0-9a-f]*:\s*51eb851f\s*\.long\s*0x51eb851f
\s*[0-9a-f]*:\s*40091eb8\s*\.long\s*0x40091eb8
? &floatformat_ieee_double_big
: &floatformat_ieee_double_little),
ibytes, &f);
- sprintf (buf, "%f", f);
+ sprintf (buf, "%.7g", f);
}
else
{
floatformat_to_double (&floatformat_ieee_double_little, valbytes,
&fvalue);
- sprintf (buf, "%f", fvalue);
+ sprintf (buf, "%.7g", fvalue);
strcat (str, buf);
break;
}
float f = 0;
memcpy (&f, &value, sizeof (float));
- sprintf (buf, "%f\t// imm9:%4d, imm4:%2d", f, imm8, imm4);
+ sprintf (buf, "%.7g\t// imm9:%4d, imm4:%2d", f, imm8, imm4);
strcat (str, buf);
break;
}
double d = 0;
memcpy (&d, &dvalue, sizeof (double));
- sprintf (buf, "%lf\t// imm9:%4ld, imm4:%2ld", d, (long) imm8, (long) imm4);
+ sprintf (buf, "%.7g\t// imm9:%4ld, imm4:%2ld", d, (long) imm8, (long) imm4);
strcat (str, buf);
break;