3
// Test for 6g register move bug. The optimizer gets confused
4
// about 32- vs 64-bit moves during splitContractIndex.
11
const c = 0x123400005678
12
index, offset := splitContractIndex(c)
13
if index != (c&0xffffffff)>>5 || offset != c+1 {
14
println("BUG", index, offset)
18
func splitContractIndex(ce uint64) (index uint32, offset uint64) {