History

Improve the test coverage: !val for float/double/long long f.

Shinichiro Hamaji committed 17 years ago

Commit 0e239e21 parent fcf2e592 files · +4 −1Browse files

Unified · Split

2 files
  1. tcctest.c +4 −0
  2. x86_64-gen.c +0 −1
tcctest.c+4−0
@@ -1420,6 +1420,8 @@ void prefix ## cmp(type a, type b)\ · 1419 unmodified lines
14201420 printf(fmt "\n", ++a);\
14211421 printf(fmt "\n", a++);\
14221422 printf(fmt "\n", a);\
1423+ b = 0;\
1424+ printf("%d %d\n", !a, !b);\
14231425 }\
14241426 void prefix ## fcast(type a)\
14251427 {\
@@ -1583,6 +1585,8 @@ void lloptest(long long a, long long b) · 157 unmodified lines
15831585 printf("arith2: %Ld %Ld\n", a++, b++);
15841586 printf("arith2: %Ld %Ld\n", --a, --b);
15851587 printf("arith2: %Ld %Ld\n", a, b);
1588+ b = ub = 0;
1589+ printf("not: %d %d %d %d\n", !a, !ua, !b, !ub);
15861590 }
15871591
15881592 void llshift(long long a, int b)
x86_64-gen.c+0−1
@@ -888,7 +888,6 @@ int gtst(int inv, int t) · 887 unmodified lines
888888 gsym(vtop->c.i);
889889 }
890890 } else {
891− /* XXX: not tested */
892891 if (is_float(vtop->type.t) ||
893892 (vtop->type.t & VT_BTYPE) == VT_LLONG) {
894893 vpushi(0);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t