Skip to content

Commit 1da6468

Browse files
committed
test/codegen: fix compilation of bitfield tests
The codegen tests are currently skipped (see #48247) and the bitfield tests do not actually compile due to a duplicate function name (sbfiz5) added in CL 267602. Renaming the function fixes the issue. Updates #48247. Change-Id: I626fd5ef13732dc358e73ace9ddcc4cbb6ae5b21 Reviewed-on: https://go-review.googlesource.com/c/go/+/348391 Trust: Michael Munday <[email protected]> Run-TryBot: Michael Munday <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent fdc2072 commit 1da6468

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/codegen/bitfield.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,6 @@ func sbfiz5(x int32) int32 {
9999
return (x << 4) >> 3
100100
}
101101

102-
func sbfiz5(x int32) int64 {
103-
return int64(x+1) << 40 // arm64:"SBFIZ\t[$]40, R[0-9]+, [$]24",-"LSL"
104-
}
105-
106102
func sbfiz6(x int16) int64 {
107103
return int64(x+1) << 3 // arm64:"SBFIZ\t[$]3, R[0-9]+, [$]16",-"LSL"
108104
}
@@ -111,6 +107,10 @@ func sbfiz7(x int8) int64 {
111107
return int64(x+1) << 62 // arm64:"SBFIZ\t[$]62, R[0-9]+, [$]2",-"LSL"
112108
}
113109

110+
func sbfiz8(x int32) int64 {
111+
return int64(x+1) << 40 // arm64:"SBFIZ\t[$]40, R[0-9]+, [$]24",-"LSL"
112+
}
113+
114114
// sbfx
115115
func sbfx1(x int64) int64 {
116116
return (x << 3) >> 4 // arm64:"SBFX\t[$]1, R[0-9]+, [$]60",-"LSL",-"ASR"

0 commit comments

Comments
 (0)