Skip to content

cmd/compile: ppc64le: Invalid n or b for CLRLSLDI: 30 28 #41683

@ianlancetaylor

Description

@ianlancetaylor

On current tip (874b313, CL 247477) this valid code gets an incorrect compilation error with GOARCH=ppc64le.

I believe this is due to CL 252097. CC @laboger @ceseo @pmur

package p

func F(s int32, n uint64) uint64 {
	c := (s >> 1) & 0xffffff
	return uint64(c)<<48
}

This is the compilation error with GOARCH=ppc64le. Note the missing %v message.

foo.go:5:2: Invalid n or b for CLRLSLDI: 30 28
%!v(MISSING)

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.release-blocker

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions