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
1420 printf(fmt "\n", ++a);\1420 printf(fmt "\n", ++a);\
1421 printf(fmt "\n", a++);\1421 printf(fmt "\n", a++);\
1422 printf(fmt "\n", a);\1422 printf(fmt "\n", a);\
1423 b = 0;\
1424 printf("%d %d\n", !a, !b);\
1423}\1425}\
1424void prefix ## fcast(type a)\1426void prefix ## fcast(type a)\
1425{\1427{\
@@ -1583,6 +1585,8 @@ void lloptest(long long a, long long b) · 157 unmodified lines
1583 printf("arith2: %Ld %Ld\n", a++, b++);1585 printf("arith2: %Ld %Ld\n", a++, b++);
1584 printf("arith2: %Ld %Ld\n", --a, --b);1586 printf("arith2: %Ld %Ld\n", --a, --b);
1585 printf("arith2: %Ld %Ld\n", a, b);1587 printf("arith2: %Ld %Ld\n", a, b);
1588 b = ub = 0;
1589 printf("not: %d %d %d %d\n", !a, !ua, !b, !ub);
1586}1590}
1587 1591
1588void llshift(long long a, int b)1592void 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
888 gsym(vtop->c.i);888 gsym(vtop->c.i);
889 }889 }
890 } else {890 } else {
891 /* XXX: not tested */
892 if (is_float(vtop->type.t) ||891 if (is_float(vtop->type.t) ||
893 (vtop->type.t & VT_BTYPE) == VT_LLONG) {892 (vtop->type.t & VT_BTYPE) == VT_LLONG) {
894 vpushi(0);893 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