]> Cypherpunks repositories - gostls13.git/commit
test/codegen: add bitwise operation combination tests
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Thu, 15 Jan 2026 08:30:30 +0000 (16:30 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Fri, 30 Jan 2026 00:48:45 +0000 (16:48 -0800)
commit5aa006dee0fae19cea85843cb0c83636a3181e0e
tree42c47029044d84c8cc1c434a86f6cae5d6bbb6c9
parentbae9486d07706bcc216961f504e75d1fb5c5aec8
test/codegen: add bitwise operation combination tests

This commit adds two test functions, bitsOptXor1 and bitsOptXor2,
to verify that the compiler correctly optimizes certain bitwise
expression patterns in future CLs.

Change-Id: Idf5bd1ff8653f8fa218604d857639e063546d8e7
Reviewed-on: https://go-review.googlesource.com/c/go/+/736540
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
test/codegen/bits.go