Skip to content

Commit 7307e86

Browse files
committed
test/codegen: go fmt
Fixes #42445 Change-Id: I9653ef094dba2a1ac2e3daaa98279d10df17a2a1 Reviewed-on: https://go-review.googlesource.com/c/go/+/268257 Trust: Alberto Donizetti <[email protected]> Trust: Martin Möhrmann <[email protected]> Run-TryBot: Alberto Donizetti <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Martin Möhrmann <[email protected]>
1 parent afe7c8d commit 7307e86

File tree

2 files changed

+38
-38
lines changed

2 files changed

+38
-38
lines changed

test/codegen/bits.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ func bitSetTest(x int) bool {
344344
// mask contiguous one bits
345345
func cont1Mask64U(x uint64) uint64 {
346346
// s390x:"RISBGZ\t[$]16, [$]47, [$]0,"
347-
return x&0x0000ffffffff0000
347+
return x & 0x0000ffffffff0000
348348
}
349349

350350
// mask contiguous zero bits
351351
func cont0Mask64U(x uint64) uint64 {
352352
// s390x:"RISBGZ\t[$]48, [$]15, [$]0,"
353-
return x&0xffff00000000ffff
353+
return x & 0xffff00000000ffff
354354
}

test/codegen/compare_and_branch.go

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -155,52 +155,52 @@ func ui32x8() {
155155

156156
// Signed 64-bit comparison with unsigned 8-bit immediate.
157157
func si64xu8(x chan int64) {
158-
// s390x:"CLGIJ\t[$]8, R[0-9]+, [$]128, "
159-
for <-x == 128 {
160-
dummy()
161-
}
162-
163-
// s390x:"CLGIJ\t[$]6, R[0-9]+, [$]255, "
164-
for <-x != 255 {
165-
dummy()
166-
}
158+
// s390x:"CLGIJ\t[$]8, R[0-9]+, [$]128, "
159+
for <-x == 128 {
160+
dummy()
161+
}
162+
163+
// s390x:"CLGIJ\t[$]6, R[0-9]+, [$]255, "
164+
for <-x != 255 {
165+
dummy()
166+
}
167167
}
168168

169169
// Signed 32-bit comparison with unsigned 8-bit immediate.
170170
func si32xu8(x chan int32) {
171-
// s390x:"CLIJ\t[$]8, R[0-9]+, [$]255, "
172-
for <-x == 255 {
173-
dummy()
174-
}
175-
176-
// s390x:"CLIJ\t[$]6, R[0-9]+, [$]128, "
177-
for <-x != 128 {
178-
dummy()
179-
}
171+
// s390x:"CLIJ\t[$]8, R[0-9]+, [$]255, "
172+
for <-x == 255 {
173+
dummy()
174+
}
175+
176+
// s390x:"CLIJ\t[$]6, R[0-9]+, [$]128, "
177+
for <-x != 128 {
178+
dummy()
179+
}
180180
}
181181

182182
// Unsigned 64-bit comparison with signed 8-bit immediate.
183183
func ui64xu8(x chan uint64) {
184-
// s390x:"CGIJ\t[$]8, R[0-9]+, [$]-1, "
185-
for <-x == ^uint64(0) {
186-
dummy()
187-
}
188-
189-
// s390x:"CGIJ\t[$]6, R[0-9]+, [$]-128, "
190-
for <-x != ^uint64(127) {
191-
dummy()
192-
}
184+
// s390x:"CGIJ\t[$]8, R[0-9]+, [$]-1, "
185+
for <-x == ^uint64(0) {
186+
dummy()
187+
}
188+
189+
// s390x:"CGIJ\t[$]6, R[0-9]+, [$]-128, "
190+
for <-x != ^uint64(127) {
191+
dummy()
192+
}
193193
}
194194

195195
// Unsigned 32-bit comparison with signed 8-bit immediate.
196196
func ui32xu8(x chan uint32) {
197-
// s390x:"CIJ\t[$]8, R[0-9]+, [$]-128, "
198-
for <-x == ^uint32(127) {
199-
dummy()
200-
}
201-
202-
// s390x:"CIJ\t[$]6, R[0-9]+, [$]-1, "
203-
for <-x != ^uint32(0) {
204-
dummy()
205-
}
197+
// s390x:"CIJ\t[$]8, R[0-9]+, [$]-128, "
198+
for <-x == ^uint32(127) {
199+
dummy()
200+
}
201+
202+
// s390x:"CIJ\t[$]6, R[0-9]+, [$]-1, "
203+
for <-x != ^uint32(0) {
204+
dummy()
205+
}
206206
}

0 commit comments

Comments
 (0)