• Todd Neal's avatar
    cmd/compile: fix half multiply issue · 765c0f37
    Todd Neal authored
    In walkdiv, an OMUL node was created and passed to typecheck,
    before the op was changed back to OHMUL.  In some instances,
    the node that came back was an evaluated literal constant that
    occurred with a full multiply.  The end result was a literal node
    with a non-shifted value and an OHMUL op. This change causes code
    to be generated for the OHMUL.
    
    Fixes #11358
    Fixes #11369
    
    Change-Id: If42a98c6830d07fe065d5ca57717704fb8cfbd33
    Reviewed-on: https://go-review.googlesource.com/11400Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
    765c0f37
issue11369.go 567 Bytes