tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] MinGW tcctest.c issue- tcc/mingw results differ from tcc/


From: Thomas Harning Jr.
Subject: [Tinycc-devel] MinGW tcctest.c issue- tcc/mingw results differ from tcc/linux and gcc/linux
Date: Mon, 17 Jan 2005 03:00:17 -0500

I have recently run tcctest.c through gcc and tcc on linux [with
identical results] and found that tcc/mingw results aren't the same. 
In one area due to printf not recognizing 64-bit operands I assume.
Here's the diff -u output between the linux and mingw versions.
... hopefully there's a good way to fix this.. or at least prevent
such cases where the errors may cause problems.
================================================
--- tccUni.out  2005-01-16 22:35:30.000000000 -0500
+++ testWin32.out       2005-01-16 22:30:22.000000000 -0500
@@ -91,7 +91,7 @@
 vaarg1=2
 vaarg1=1 2
 func='macro_test'
-INT64_MIN=-9223372036854775808
+INT64_MIN=0
 a=2
 a=8
 hi
@@ -299,11 +299,11 @@
 2.000000
 2.000000
 3.000000
-ftof: 234.600006 234.600006 234.600006
+ftof: 234.600006 234.600006
-32107281218048222000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
 ftoi: 234 234
 itof: -1234.000000
 utof: 2166572288.000000
-ftof: -2334.600098 -2334.600098 -2334.600098
+ftof: -2334.600098 -2334.600098 -0.000000
 ftoi: -2334 4294964962
 itof: -1234.000000
 utof: 2166572288.000000
@@ -323,38 +323,38 @@
 2.000000
 2.000000
 3.000000
-ftof: 234.600006 234.600000 234.600000
+ftof: 234.600006 234.600000
-32105321664722134000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
 ftoi: 234 234
 itof: -1234.000000
 utof: 2166572288.000000
-ftof: -2334.600098 -2334.600000 -2334.600000
+ftof: -2334.600098 -2334.600000 -0.000000
 ftoi: -2334 4294964962
 itof: -1234.000000
 utof: 2166572288.000000
 testing 'long double'
 0 1 1 0 0 1
-1.000000 2.500000 3.500000 -1.500000 2.500000 0.400000 -1.000000
-2.000000
-2.000000
-3.000000
+0.000000 0.000000 0.000000
-26815615859885194000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
0.000000 -1.#QNAN0 -0.000000
+0.000000
+0.000000
+-2.000000
 0 1 0 1 1 0
-2.000000 1.500000 3.500000 0.500000 3.000000 1.333333 -2.000000
-3.000000
-3.000000
-4.000000
+0.000000 0.000000 0.000000
-26815615859885194000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
0.000000 -1.#QNAN0 -2.000000
+-2.000000
+-2.000000
+0.000000
 1 0 0 0 1 1
-1.000000 1.000000 2.000000 0.000000 1.000000 1.000000 -1.000000
-2.000000
-2.000000
-3.000000
-ftof: 234.600006 234.600000 234.600000
+0.000000 0.000000 0.000000 0.000000 0.000000 -1.#QNAN0 0.000000
+0.000000
+0.000000
+-2.000000
+ftof: 234.600006 234.600000
-32105321664722134000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
 ftoi: 234 234
-itof: -1234.000000
-utof: 2166572288.000000
-ftof: -2334.600098 -2334.600000 -2334.600000
+itof: -0.000000
+utof: -0.000000
+ftof: -2334.600098 -2334.600000 -0.000000
 ftoi: -2334 4294964962
-itof: -1234.000000
-utof: 2166572288.000000
+itof: -0.000000
+utof: -0.000000
 1.200000 3.400000 -5.600000
 2.120000 0.500000 23000000000.000000
 da=123.000000
@@ -363,64 +363,64 @@
 db = 4000000000.000000
 longlong_test:
 sizeof(long long) = 8
--1 4294967294
-1 -2 1 1234567812345679
+-1 -1
+1 0 -2 ffffffff
 -6
-arith: 1023 977 23000
-arith1: 43 11
-bin: 0 1023 1023
+arith: 1023 0 977
+arith1: 43 0
+bin: 0 0 1023
 test: 0 1 0 1 1 0
 utest: 0 1 0 1 1 0
-arith2: 1001 24
-arith2: 1001 24
-arith2: 1001 24
-arith2: 1001 24
-arith: 4915 -4405 1188300
-arith1: 0 255
-bin: 52 4863 4811
+arith2: 1001 0
+arith2: 1001 0
+arith2: 1001 0
+arith2: 1001 0
+arith: 4915 0 -4405
+arith1: 0 0
+bin: 52 0 4863
 test: 0 1 1 0 0 1
 utest: 0 1 1 0 0 1
-arith2: 256 4661
-arith2: 256 4661
-arith2: 256 4661
-arith2: 256 4661
-arith: -782639107 782639101 2347917312
-arith1: 0 -3
-bin: -782639104 -3 782639101
+arith2: 256 0
+arith2: 256 0
+arith2: 256 0
+arith2: 256 0
+arith: -782639107 -1 782639101
+arith1: 0 0
+bin: -782639104 -1 -3
 test: 0 1 0 1 1 0
 utest: 0 1 0 1 1 0
-arith2: -2 -782639103
-arith2: -2 -782639103
-arith2: -2 -782639103
-arith2: -2 -782639103
-shift: 9 9 9312
-shiftc: 36 36 2328
-shiftc: 0 0 9998683865088
-shift: 576460752303423487 -1 -736
-shiftc: 2305843009213693949 -3 -184
-shiftc: 536870911 -1 -790273982464
-shift: 0 0 -1152921504606846976
-shiftc: 245252176896 245252176896 15696139321344
-shiftc: 57 57 -8444530776296390656
-la=320255972942661 ula=16458594985017606144
-lltof: 320255981256704.000000 320255972942661.000000 320255972942661.000000
-ftoll: 320255981256704 320255972942661 320255972942661
-ulltof: 16458595053737082880.000000 16458594985017606144.000000
16458594985017606144.000000
-ftoull: 16458595053737082880 16458594985017606144 16458594985017606144
+arith2: -2 -1
+arith2: -2 -1
+arith2: -2 -1
+arith2: -2 -1
+shift: 9 0 9
+shiftc: 36 0 36
+shiftc: 0 0 0
+shift: -1 134217727 -1
+shiftc: -3 536870911 -3
+shiftc: 536870911 0 -1
+shift: 0 0 0
+shiftc: 439041024 57 439041024
+shiftc: 57 0 57
+la=1736516421 ula=74565
+lltof: 320255981256704.000000 320255972942661.000000 -0.000000
+ftoll: 1744830464 74565 1736516421
+ulltof: 16458595053737083000.000000 16458594985017606000.000000
-48824083998609665000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.000000
+ftoull: 0 3832065280 0
 12345677
 3
-arith: 2147483648 2147483648 0
-bin: 0 2147483648 2147483648
+arith: -2147483648 0 -2147483648
+bin: 0 0 -2147483648
 test: 0 1 0 1 1 0
 utest: 0 1 0 1 1 0
-arith2: 2147483649 1
-arith2: 2147483649 1
-arith2: 2147483649 1
-arith2: 2147483649 1
+arith2: -2147483647 0
+arith2: -2147483647 0
+arith2: -2147483647 0
+arith2: -2147483647 0
 2
 1 2 3
 1.000000 2 3.000000
-1234567891234 987654321986 3 1234.000000
+1912277282 -188156094 3 1234.000000
 whitspace:
 N=2
 aaa=3
@@ -457,8 +457,8 @@
 a=2
 inline asm:
 hello wo
-mul64=0xc378af6c6ce0060
-inc64=0x1234567900000000
+mul64=0xc6ce0060
+inc64=0x0
 set=0x1080fd
 swab32(0x01020304) = 0x4030201
 __builtin_types_compatible_p(int, int) = 1
================================================================

-- 
Thomas Harning Jr.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]