Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: internal compiler error: not lowered: v94, Int64Make INT64 INT32 UINT32 #21517
go version devel +59413d34c9 Fri Aug 18 06:59:48 2017 +0000 linux/amd64
Checkout github.com/google/syzkaller on 172189e9551b768d48c6d5c038fbf3d5cd88aa8e, run:
The code is simply:
That line indication is misleading, it's not the
I can reproduce this with tip and with go1.9rc2. Not with go1.8.3
It is this code
that causes problem.
Normally 64-bit div/mod is turned into runtime calls on 32-bit arch, but the front end leaves power-of-two constant division and hopes the SSA backend turns into a shift or AND. The SSA rule is
But isPowerOfTwo returns true only for possitive int64
In this case, however, c==1<<63, doesn't trigger the rule...