Skip to content

math/big: Int.Lsh gives wrong results on s390x for n>=128 #42838

@mdempsky

Description

@mdempsky

The dev.regabi branch has switched cmd/compile to using go/constant to represent compile-time constants, and it appears to be causing one of package math's unit tests to fail only on s390x: https://build.golang.org/log/0af0cbb9e4d7754d6f16f93a8ea452e265037a40

--- FAIL: TestPow10 (0.00s)
    all_test.go:2840: Pow10(200) = 3.027621884171472e+200, want 1e+200
FAIL
FAIL	math	0.004s

/cc @mundaym @griesemer

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