Skip to content

cmd/compile: ICE due to bad ORL constant [1.15] #42753

Closed
@randall77

Description

@randall77
package main

func f() uint32 {
	s := "\x01"
	x := -int32(s[0])
	return uint32(x) & 0x7fffffff
}

Compile with

go tool compile -d=ssa/check/on test.go

Generates

test.go:6:21: internal compiler error: 'f': bad int32 AuxInt value for v20

Ok at tip. Breaks for 1.15 and 1.14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions