xgopilot
|
8a451eef09
|
test: Add issue #961 examples to _cmptest for Go vs LLGo comparison
Created _cmptest/issue961/typeconv.go with 15 test cases covering:
- Integer overflow wrapping (int8, int16)
- Signed/unsigned conversions
- Float-to-int conversions
- Sign extension and zero extension
- Type truncation
- Edge cases (negation overflow, division by -1)
Test reveals 9 differences between Go and LLGo output, confirming
the bugs reported in issue #961:
1. int8(127) + 1: LLGo outputs 128 instead of -128
2. int8(100) + int8(50): LLGo outputs 150 instead of -106
3. int8(64) * 2: LLGo outputs 128 instead of -128
4. Float conversion: LLGo outputs 0 instead of -2147483648
5. uint32->int32: LLGo outputs 4294967295 instead of -1
6. Sign extension: LLGo outputs 4294967295 instead of -1
7. Negation overflow: LLGo outputs 128 instead of -128
8. Division edge: LLGo outputs 0 instead of -128
9. int16 overflow: LLGo outputs 32768 instead of -32768
Note: CI integration for `llgo cmptest` needs to be added manually
to .github/workflows/llgo.yml (cannot modify workflow files via bot).
Related to #961
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: cpunion <cpunion@users.noreply.github.com>
|
2025-10-22 05:49:18 +00:00 |
|
xushiwei
|
9f26d12a3e
|
_cmptest: mathbigdemo
|
2025-04-28 01:03:13 +08:00 |
|
xushiwei
|
d9d813db56
|
go/parser demo
|
2025-04-28 00:35:45 +08:00 |
|
tsingbx
|
df37f80c8e
|
add big.Int Lsh and Rsh and test it
|
2024-08-08 13:33:14 +08:00 |
|
tsingbx
|
0a8bad46b5
|
add big.Int Set, Abs, Neg and add test it
|
2024-08-08 08:31:03 +08:00 |
|
xushiwei
|
a2b5b9f97e
|
library (todo): crypto/hmac, internal/fmtsort
|
2024-08-06 17:03:22 +08:00 |
|
tsingbx
|
6a05aa4e53
|
llgo support crypto hmac (#663)
* llgo support crypto/hmac
|
2024-08-06 16:47:51 +08:00 |
|
赵英杰
|
3a68dee850
|
library: net/url
|
2024-08-05 18:00:27 +08:00 |
|
xushiwei
|
5f92c3b3fc
|
library: io/ioutil
|
2024-08-02 14:26:13 +08:00 |
|
xushiwei
|
2e4b1d8c2b
|
library: math/big.Int (mini-impl for _cmptest/bigintdemo)
|
2024-08-01 00:32:21 +08:00 |
|
xushiwei
|
85509c777d
|
library: crypto
|
2024-07-31 18:59:25 +08:00 |
|
tsingbx
|
8882d75132
|
fix test error
|
2024-07-31 14:36:42 +08:00 |
|
tsingbx
|
f67b15b926
|
fix test fail
|
2024-07-31 14:28:15 +08:00 |
|
tsingbx
|
2d7958f726
|
add crypto sha1, sha256, sha512
|
2024-07-31 13:56:42 +08:00 |
|
xushiwei
|
5082ba7102
|
library: go/parser (todo)
|
2024-07-31 12:29:09 +08:00 |
|
xushiwei
|
4c70651b81
|
library: go/{token, scanner}
|
2024-07-31 11:33:15 +08:00 |
|
xushiwei
|
af6e4abe84
|
library: crypto/rand
|
2024-07-31 10:26:18 +08:00 |
|
xushiwei
|
a3ff845a14
|
c/openssl: rand
|
2024-07-31 01:27:08 +08:00 |
|
xushiwei
|
cacd52f81d
|
library: math/rand
|
2024-07-30 21:41:26 +08:00 |
|
xushiwei
|
1eaf124d4e
|
library: hash/{crc32, adler32}
|
2024-07-30 19:36:36 +08:00 |
|
xushiwei
|
aae7af2194
|
library: hash, hash/crc64
|
2024-07-30 18:26:33 +08:00 |
|
xushiwei
|
c0e84043c9
|
library: os.ReadFile
|
2024-07-30 17:14:59 +08:00 |
|
xushiwei
|
d480bb3ecd
|
library: crypto/md5
|
2024-07-30 02:07:19 +08:00 |
|
xushiwei
|
42352d9f57
|
library: c/openssl
|
2024-07-30 01:35:49 +08:00 |
|
xushiwei
|
cc37097164
|
library: bufio, encoding/csv
|
2024-07-30 00:44:03 +08:00 |
|
xushiwei
|
679e2d0f6b
|
library: encoding/hex
|
2024-07-30 00:33:44 +08:00 |
|
xushiwei
|
ad1a42d6a5
|
library: encoding/base32
|
2024-07-30 00:30:58 +08:00 |
|
xushiwei
|
afdf31a66c
|
library: encoding/{binary, base64}
|
2024-07-30 00:28:04 +08:00 |
|
xushiwei
|
2d5e991eaf
|
library: bytes, regexp, regexp/syntax
|
2024-07-29 16:31:59 +08:00 |
|
xushiwei
|
e0e3664fdb
|
cmptest: regexdemo (todo)
|
2024-07-29 11:44:49 +08:00 |
|
xushiwei
|
cbd891785e
|
library: os.Expand
|
2024-07-29 11:06:33 +08:00 |
|
xushiwei
|
53c2558d26
|
cmptest: jsondemo (todo)
|
2024-07-29 01:56:39 +08:00 |
|
xushiwei
|
4cd1629118
|
reflect.Value: Uint fix
|
2024-07-29 01:26:56 +08:00 |
|
xushiwei
|
8a13fc7cd9
|
osexec: llvm bindir
|
2024-07-29 00:17:53 +08:00 |
|
xushiwei
|
4df478316c
|
library: fmt.(*pp).doPrint; syscall.forkAndExecInChild
|
2024-07-29 00:02:30 +08:00 |
|
xushiwei
|
3a8642b1e0
|
syscall: forkAndExecInChild
|
2024-07-28 22:27:26 +08:00 |
|
xushiwei
|
bf773df099
|
_cmptest: pipedemo
|
2024-07-27 16:03:22 +08:00 |
|
xushiwei
|
c5d18d9046
|
pipedemo: todo
|
2024-07-26 16:49:23 +08:00 |
|
xushiwei
|
12b6abe6a3
|
cmptest/_osexec
|
2024-07-19 23:20:55 +08:00 |
|
xushiwei
|
a8e1fd1054
|
library os: StartProcess/Wait
|
2024-07-18 22:27:00 +08:00 |
|
xushiwei
|
85a90b62b7
|
mv flagdemo => _cmptest
|
2024-07-18 00:09:21 +08:00 |
|
xushiwei
|
172b396dc9
|
pkg: flag, strings
|
2024-07-16 22:36:38 +08:00 |
|
xushiwei
|
7d3a672c2b
|
mv _demo/chandemo
|
2024-07-13 12:33:37 +08:00 |
|
xushiwei
|
0e371930e6
|
cmptest: ctxcancel
|
2024-07-09 14:26:02 +08:00 |
|
xushiwei
|
d369a6429e
|
README
|
2024-07-07 15:12:20 +08:00 |
|
xushiwei
|
23da63767c
|
patch fmt: printArg
|
2024-07-04 17:39:02 +08:00 |
|
xushiwei
|
ab1d05642e
|
patch fmt: fmt.Printf
|
2024-07-04 17:05:26 +08:00 |
|
xushiwei
|
dc5fc6bdc2
|
README: chan
|
2024-07-02 21:04:34 +08:00 |
|
xushiwei
|
437edefa0c
|
runtime: chan
|
2024-07-02 16:00:43 +08:00 |
|
xushiwei
|
48a1384197
|
patch: fmt, os, runtime, syscall, time
|
2024-06-26 17:17:10 +08:00 |
|