Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/compile: linux/ppc64: internal compiler error: 'acosh': value v38 has an AuxInt that encodes a NaN #38880

Closed
josharian opened this issue May 5, 2020 · 1 comment

Comments

@josharian
Copy link
Contributor

Reproduce:

GOOS=linux GOARCH=ppc64 go build -a -gcflags=all=-d=ssa/check/seed=6419 std cmd

Result:

# math
math/acosh.go:51:13: internal compiler error: 'acosh': value v38 has an AuxInt that encodes a NaN

goroutine 1 [running]:
runtime/debug.Stack(0x1945c20, 0xc0000ac008, 0x0)
	/Users/josh/go/tip/src/runtime/debug/stack.go:24 +0x9f
cmd/compile/internal/gc.Fatalf(0xc00058f290, 0x2f, 0xc000747f20, 0x2, 0x2)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/subr.go:193 +0x1b0
cmd/compile/internal/gc.(*ssafn).Fatalf(0xc00017bad0, 0x330d000000003, 0x185b258, 0x29, 0xc000416780, 0x1, 0x1)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/ssa.go:6839 +0x1a5
cmd/compile/internal/ssa.(*Func).Fatalf(...)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/func.go:625
cmd/compile/internal/ssa.checkFunc(0xc000637340)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/check.go:161 +0x22eb
cmd/compile/internal/ssa.Compile(0xc000637340)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/compile.go:135 +0xa90
cmd/compile/internal/gc.buildssa(0xc000490dc0, 0x0, 0x0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/ssa.go:460 +0xd25
cmd/compile/internal/gc.compileSSA(0xc000490dc0, 0x0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:296 +0x5d
cmd/compile/internal/gc.compile(0xc000490dc0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:275 +0x349
cmd/compile/internal/gc.funccompile(0xc000490dc0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:220 +0xc5
cmd/compile/internal/gc.Main(0x1868960)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/main.go:747 +0x344f
main.main()
	/Users/josh/go/tip/src/cmd/compile/main.go:52 +0xb1

# runtime
runtime/runtime1.go:208:62: internal compiler error: 'check': value v243 has an AuxInt that encodes a NaN

goroutine 1 [running]:
runtime/debug.Stack(0x1945c20, 0xc0000ac008, 0x0)
	/Users/josh/go/tip/src/runtime/debug/stack.go:24 +0x9f
cmd/compile/internal/gc.Fatalf(0xc00534c480, 0x2f, 0xc000f0c440, 0x2, 0x2)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/subr.go:193 +0x1b0
cmd/compile/internal/gc.(*ssafn).Fatalf(0xc005632e40, 0xd03e100000055, 0x185b258, 0x29, 0xc005289ba0, 0x1, 0x1)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/ssa.go:6839 +0x1a5
cmd/compile/internal/ssa.(*Func).Fatalf(...)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/func.go:625
cmd/compile/internal/ssa.checkFunc(0xc0051abce0)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/check.go:161 +0x22eb
cmd/compile/internal/ssa.Compile(0xc0051abce0)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/compile.go:135 +0xa90
cmd/compile/internal/gc.buildssa(0xc001a709a0, 0x0, 0x0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/ssa.go:460 +0xd25
cmd/compile/internal/gc.compileSSA(0xc001a709a0, 0x0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:296 +0x5d
cmd/compile/internal/gc.compile(0xc001a709a0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:275 +0x349
cmd/compile/internal/gc.funccompile(0xc001a709a0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:220 +0xc5
cmd/compile/internal/gc.Main(0x1868960)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/main.go:747 +0x344f
main.main()
	/Users/josh/go/tip/src/cmd/compile/main.go:52 +0xb1

linux/ppc64le
# math
math/acosh.go:51:13: internal compiler error: 'acosh': value v38 has an AuxInt that encodes a NaN

goroutine 1 [running]:
runtime/debug.Stack(0x1945c20, 0xc0000ac008, 0x0)
	/Users/josh/go/tip/src/runtime/debug/stack.go:24 +0x9f
cmd/compile/internal/gc.Fatalf(0xc0000aaf90, 0x2f, 0xc000762a40, 0x2, 0x2)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/subr.go:193 +0x1b0
cmd/compile/internal/gc.(*ssafn).Fatalf(0xc0003d0f00, 0x330d000000003, 0x185b258, 0x29, 0xc000411c70, 0x1, 0x1)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/ssa.go:6839 +0x1a5
cmd/compile/internal/ssa.(*Func).Fatalf(...)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/func.go:625
cmd/compile/internal/ssa.checkFunc(0xc000109080)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/check.go:161 +0x22eb
cmd/compile/internal/ssa.Compile(0xc000109080)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/compile.go:135 +0xa90
cmd/compile/internal/gc.buildssa(0xc0000626e0, 0x0, 0x0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/ssa.go:460 +0xd25
cmd/compile/internal/gc.compileSSA(0xc0000626e0, 0x0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:296 +0x5d
cmd/compile/internal/gc.compile(0xc0000626e0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:275 +0x349
cmd/compile/internal/gc.funccompile(0xc0000626e0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:220 +0xc5
cmd/compile/internal/gc.Main(0x1868960)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/main.go:747 +0x344f
main.main()
	/Users/josh/go/tip/src/cmd/compile/main.go:52 +0xb1

# runtime
runtime/runtime1.go:208:62: internal compiler error: 'check': value v243 has an AuxInt that encodes a NaN

goroutine 1 [running]:
runtime/debug.Stack(0x1945c20, 0xc0000ac008, 0x0)
	/Users/josh/go/tip/src/runtime/debug/stack.go:24 +0x9f
cmd/compile/internal/gc.Fatalf(0xc0041b6210, 0x2f, 0xc0000d3700, 0x2, 0x2)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/subr.go:193 +0x1b0
cmd/compile/internal/gc.(*ssafn).Fatalf(0xc0056233b0, 0xd03e100000055, 0x185b258, 0x29, 0xc002e0a420, 0x1, 0x1)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/ssa.go:6839 +0x1a5
cmd/compile/internal/ssa.(*Func).Fatalf(...)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/func.go:625
cmd/compile/internal/ssa.checkFunc(0xc0058b5760)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/check.go:161 +0x22eb
cmd/compile/internal/ssa.Compile(0xc0058b5760)
	/Users/josh/go/tip/src/cmd/compile/internal/ssa/compile.go:135 +0xa90
cmd/compile/internal/gc.buildssa(0xc0007ec9a0, 0x0, 0x0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/ssa.go:460 +0xd25
cmd/compile/internal/gc.compileSSA(0xc0007ec9a0, 0x0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:296 +0x5d
cmd/compile/internal/gc.compile(0xc0007ec9a0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:275 +0x349
cmd/compile/internal/gc.funccompile(0xc0007ec9a0)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/pgen.go:220 +0xc5
cmd/compile/internal/gc.Main(0x1868960)
	/Users/josh/go/tip/src/cmd/compile/internal/gc/main.go:747 +0x344f
main.main()
	/Users/josh/go/tip/src/cmd/compile/main.go:52 +0xb1

linux/s390x

Related: #36755, #36756, #36723

cc @randall77

@gopherbot
Copy link

Change https://golang.org/cl/232859 mentions this issue: cmd/compile: don't store NaN in ppc64 floating point constant ops

@golang golang locked and limited conversation to collaborators May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants