mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-05 04:40:06 +08:00
fix abitest.c for x86_64 bug
This commit is contained in:
parent
deaee6c249
commit
89f7aea980
@ -138,8 +138,6 @@ static int ret_longdouble_test_callback2(void *ptr) {
|
||||
ret_longdouble_test_type a = {10};
|
||||
ret_longdouble_test_type r;
|
||||
r = f(a);
|
||||
printf("%Lf \n", a.x);
|
||||
printf("%Lf \n", r.x);
|
||||
return ((r.x == a.x*5) && (f(a).x == a.x*5)) ? 0 : -1;
|
||||
}
|
||||
|
||||
|
@ -981,7 +981,7 @@ static X86_64_Mode classify_x86_64_inner(CType *ty)
|
||||
return x86_64_mode_memory;
|
||||
|
||||
mode = x86_64_mode_none;
|
||||
for (; f; f = f->next)
|
||||
for (f = f->next; f; f = f->next)
|
||||
mode = classify_x86_64_merge(mode, classify_x86_64_inner(&f->type));
|
||||
|
||||
return mode;
|
||||
|
Loading…
Reference in New Issue
Block a user