mirror of
https://github.com/golang/go
synced 2024-11-24 16:00:12 -07:00
8214257347
The codegen tests are currently skipped (see #48247). The test added in CL 346050 did not compile because it was in the main package but did not contain a main function. Changing the package to 'codegen' fixes the issue. Updates #48247. Change-Id: I0a0eaca8e6a7d7b335606d2c76a204ac0c12e6d5 Reviewed-on: https://go-review.googlesource.com/c/go/+/348392 Trust: Michael Munday <mike.munday@lowrisc.org> Run-TryBot: Michael Munday <mike.munday@lowrisc.org> Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
32 lines
464 B
Go
32 lines
464 B
Go
// asmcheck
|
|
|
|
// Copyright 2021 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package codegen
|
|
|
|
func a(n string) bool {
|
|
// arm64:"CBZ"
|
|
if len(n) > 0 {
|
|
return true
|
|
}
|
|
return false
|
|
}
|
|
|
|
func a2(n []int) bool {
|
|
// arm64:"CBZ"
|
|
if len(n) > 0 {
|
|
return true
|
|
}
|
|
return false
|
|
}
|
|
|
|
func a3(n []int) bool {
|
|
// amd64:"TESTQ"
|
|
if len(n) < 1 {
|
|
return true
|
|
}
|
|
return false
|
|
}
|