修复cortex-m4硬件浮点出栈错误的问题

This commit is contained in:
zhangzheng
2023-12-23 23:28:31 +08:00
parent 1a17a7a9a3
commit cbc1245d26
8 changed files with 26 additions and 49 deletions

View File

@@ -7,8 +7,13 @@ void printf_test(void)
printf("print test2.\n");
float a = 1.1;
float b = 1.2;
float c = a + b;
printf("%c %d %f\n", 'a', 1234, 1.1);
c = c;
printf("%c %d %lf\n", 'a', 1234, 1.1);
float c;
while (1)
{
c = a + b;
printf("%c %d %f\n", 'a', 1234, 1.1);
c = c;
printf("%c %d %lf\n", 'a', 1234, 1.1);
}
}