]> Cypherpunks repositories - gostls13.git/commitdiff
test/codegen: go fmt
authorAlberto Donizetti <alb.donizetti@gmail.com>
Sun, 8 Nov 2020 08:44:33 +0000 (09:44 +0100)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Sun, 8 Nov 2020 12:19:55 +0000 (12:19 +0000)
Fixes #42445

Change-Id: I9653ef094dba2a1ac2e3daaa98279d10df17a2a1
Reviewed-on: https://go-review.googlesource.com/c/go/+/268257
Trust: Alberto Donizetti <alb.donizetti@gmail.com>
Trust: Martin Möhrmann <moehrmann@google.com>
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
test/codegen/bits.go
test/codegen/compare_and_branch.go

index 56e0f3474e196f7ba29f33601649c3a02784da39..4508eba487793b7190df14ed5808c74d413dc8fb 100644 (file)
@@ -344,11 +344,11 @@ func bitSetTest(x int) bool {
 // mask contiguous one bits
 func cont1Mask64U(x uint64) uint64 {
        // s390x:"RISBGZ\t[$]16, [$]47, [$]0,"
-       return x&0x0000ffffffff0000
+       return x & 0x0000ffffffff0000
 }
 
 // mask contiguous zero bits
 func cont0Mask64U(x uint64) uint64 {
        // s390x:"RISBGZ\t[$]48, [$]15, [$]0,"
-       return x&0xffff00000000ffff
+       return x & 0xffff00000000ffff
 }
index 696a2d5f1c55a61f321b9bbf726bdff513ddb841..f7515064b08b9ab7f78f7ef2bba52004fb31678d 100644 (file)
@@ -155,52 +155,52 @@ func ui32x8() {
 
 // Signed 64-bit comparison with unsigned 8-bit immediate.
 func si64xu8(x chan int64) {
-        // s390x:"CLGIJ\t[$]8, R[0-9]+, [$]128, "
-        for <-x == 128 {
-                dummy()
-        }
-
-        // s390x:"CLGIJ\t[$]6, R[0-9]+, [$]255, "
-        for <-x != 255 {
-                dummy()
-        }
+       // s390x:"CLGIJ\t[$]8, R[0-9]+, [$]128, "
+       for <-x == 128 {
+               dummy()
+       }
+
+       // s390x:"CLGIJ\t[$]6, R[0-9]+, [$]255, "
+       for <-x != 255 {
+               dummy()
+       }
 }
 
 // Signed 32-bit comparison with unsigned 8-bit immediate.
 func si32xu8(x chan int32) {
-        // s390x:"CLIJ\t[$]8, R[0-9]+, [$]255, "
-        for <-x == 255 {
-                dummy()
-        }
-
-        // s390x:"CLIJ\t[$]6, R[0-9]+, [$]128, "
-        for <-x != 128 {
-                dummy()
-        }
+       // s390x:"CLIJ\t[$]8, R[0-9]+, [$]255, "
+       for <-x == 255 {
+               dummy()
+       }
+
+       // s390x:"CLIJ\t[$]6, R[0-9]+, [$]128, "
+       for <-x != 128 {
+               dummy()
+       }
 }
 
 // Unsigned 64-bit comparison with signed 8-bit immediate.
 func ui64xu8(x chan uint64) {
-        // s390x:"CGIJ\t[$]8, R[0-9]+, [$]-1, "
-        for <-x == ^uint64(0) {
-                dummy()
-        }
-
-        // s390x:"CGIJ\t[$]6, R[0-9]+, [$]-128, "
-        for <-x != ^uint64(127) {
-                dummy()
-        }
+       // s390x:"CGIJ\t[$]8, R[0-9]+, [$]-1, "
+       for <-x == ^uint64(0) {
+               dummy()
+       }
+
+       // s390x:"CGIJ\t[$]6, R[0-9]+, [$]-128, "
+       for <-x != ^uint64(127) {
+               dummy()
+       }
 }
 
 // Unsigned 32-bit comparison with signed 8-bit immediate.
 func ui32xu8(x chan uint32) {
-        // s390x:"CIJ\t[$]8, R[0-9]+, [$]-128, "
-        for <-x == ^uint32(127) {
-                dummy()
-        }
-
-        // s390x:"CIJ\t[$]6, R[0-9]+, [$]-1, "
-        for <-x != ^uint32(0) {
-                dummy()
-        }
+       // s390x:"CIJ\t[$]8, R[0-9]+, [$]-128, "
+       for <-x == ^uint32(127) {
+               dummy()
+       }
+
+       // s390x:"CIJ\t[$]6, R[0-9]+, [$]-1, "
+       for <-x != ^uint32(0) {
+               dummy()
+       }
 }