]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: mention the AuxInt field for bounded shifts
authorKeith Randall <khr@google.com>
Mon, 7 May 2018 20:42:28 +0000 (13:42 -0700)
committerKeith Randall <khr@golang.org>
Mon, 7 May 2018 21:13:49 +0000 (21:13 +0000)
This comment needs updating after moving the "bounded" mark from
Aux to AuxInt.

Change-Id: I924fb22a81fffcd6944b93f0e3357c3aa2c4c49e
Reviewed-on: https://go-review.googlesource.com/111880
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/gen/genericOps.go

index a0a0afe779234d91f8ae480e7aa4029c08976f33..13581452e733701244f12e793f63cbd5217675c3 100644 (file)
@@ -100,7 +100,7 @@ var genericOps = []opData{
        // For shifts, AxB means the shifted value has A bits and the shift amount has B bits.
        // Shift amounts are considered unsigned.
        // If arg1 is known to be less than the number of bits in arg0,
-       // then aux may be set to true.
+       // then auxInt may be set to 1.
        // This enables better code generation on some platforms.
        {name: "Lsh8x8", argLength: 2, aux: "Bool"}, // arg0 << arg1
        {name: "Lsh8x16", argLength: 2, aux: "Bool"},