diff options
| author | Shinichiro Hamaji <shinichiro.hamaji _at_ gmail.com> | 2009-04-13 04:02:52 +0900 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:01 +0200 |
| commit | 0e239e2ba5b38f99fd0b849f03fc82db7c2d56b7 (patch) | |
| tree | 3c4b6cb75f0b65e9d56ab19929e1828534e02e6c | |
| parent | fcf2e5981fe5e37e3aee633b414486311e54bc8e (diff) | |
| download | tinycc-0e239e2ba5b38f99fd0b849f03fc82db7c2d56b7.tar.gz tinycc-0e239e2ba5b38f99fd0b849f03fc82db7c2d56b7.tar.bz2 | |
Improve the test coverage: !val for float/double/long long f.
| -rw-r--r-- | tcctest.c | 4 | ||||
| -rw-r--r-- | x86_64-gen.c | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -1420,6 +1420,8 @@ void prefix ## cmp(type a, type b)\ printf(fmt "\n", ++a);\ printf(fmt "\n", a++);\ printf(fmt "\n", a);\ + b = 0;\ + printf("%d %d\n", !a, !b);\ }\ void prefix ## fcast(type a)\ {\ @@ -1583,6 +1585,8 @@ void lloptest(long long a, long long b) printf("arith2: %Ld %Ld\n", a++, b++); printf("arith2: %Ld %Ld\n", --a, --b); printf("arith2: %Ld %Ld\n", a, b); + b = ub = 0; + printf("not: %d %d %d %d\n", !a, !ua, !b, !ub); } void llshift(long long a, int b) diff --git a/x86_64-gen.c b/x86_64-gen.c index 1d0d8db..1227f41 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -888,7 +888,6 @@ int gtst(int inv, int t) gsym(vtop->c.i); } } else { - /* XXX: not tested */ if (is_float(vtop->type.t) || (vtop->type.t & VT_BTYPE) == VT_LLONG) { vpushi(0); |
